You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Attempting to leave the 'sponsor' field blank during account creation results in the following error:
Traceback (most recent call last):
File "/usr/local/bin/tardis", line 9, in <module>
load_entry_point('tardis-usertools==2.2', 'console_scripts', 'tardis')()
File "/usr/local/lib/python2.7/dist-packages/tardis_usertools-2.2-py2.7.egg/tardis/interactive.py", line 24, in main
args.func(args)
File "/usr/local/lib/python2.7/dist-packages/tardis_usertools-2.2-py2.7.egg/tardis/commands/adduser.py", line 94, in command
ldap.addUser(args.username, newuser)
File "/usr/local/lib/python2.7/dist-packages/tardis_usertools-2.2-py2.7.egg/tardis/ldaptools.py", line 51, in addUser
self.conn.add_s('uid=%s, ou=People, %s' %(username, self.base), updates)
File "/usr/local/lib/python2.7/dist-packages/ldap/ldapobject.py", line 202, in add_s
return self.result(msgid,all=1,timeout=self.timeout)
File "/usr/local/lib/python2.7/dist-packages/ldap/ldapobject.py", line 465, in result
resp_type, resp_data, resp_msgid = self.result2(msgid,all,timeout)
File "/usr/local/lib/python2.7/dist-packages/ldap/ldapobject.py", line 469, in result2
resp_type, resp_data, resp_msgid, resp_ctrls = self.result3(msgid,all,timeout)
File "/usr/local/lib/python2.7/dist-packages/ldap/ldapobject.py", line 476, in result3
resp_ctrl_classes=resp_ctrl_classes
File "/usr/local/lib/python2.7/dist-packages/ldap/ldapobject.py", line 483, in result4
ldap_result = self._ldap_call(self._l.result4,msgid,all,timeout,add_ctrls,add_intermediates,add_extop)
File "/usr/local/lib/python2.7/dist-packages/ldap/ldapobject.py", line 106, in _ldap_call
result = func(*args,**kwargs)
ldap.INVALID_SYNTAX: {'info': 'sponsors: value #0 invalid per syntax', 'desc': 'Invalid syntax'}
It would be nice to modify the adduser command to validate the 'sponsor' field during input (and prevent the script from continuing if invalid input is entered), rather than accepting invalid values and throwing an LDAP error later.
The text was updated successfully, but these errors were encountered:
Attempting to leave the 'sponsor' field blank during account creation results in the following error:
It would be nice to modify the adduser command to validate the 'sponsor' field during input (and prevent the script from continuing if invalid input is entered), rather than accepting invalid values and throwing an LDAP error later.
The text was updated successfully, but these errors were encountered: