Univention Bugzilla – Bug 23442
Fehlermeldungen im Passwort Sync
Last modified: 2011-12-13 15:51:23 CET
Wenn ich einen Benutzer per samba4-tool anlege (), dann bekomme ich die folgenden Tracebacks in der s4-connector-tracebacks Logdatei: Fri Aug 26 18:30:37 2011 failed in post_con_modify_functions Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/s4connector/__init__.py", line 1021, in sync_to_ucs f(self, property_type, object) File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/password.py", line 612, in password_sync_s4_to_ucs s4connector.lo.lo.modify(ucs_object['dn'], modlist) File "/usr/lib/pymodules/python2.6/univention/uldap.py", line 488, in modify self.lo.modify_s(dn, ml) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 322, in modify_s return self.result(msgid,all=1,timeout=self.timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 422, in result res_type,res_data,res_msgid = self.result2(msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 426, in result2 res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 432, in result3 ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout) File "/usr/lib/python2.6/dist-packages/ldap/ldapobject.py", line 96, in _ldap_call result = func(*args,**kwargs) TYPE_OR_VALUE_EXISTS: {'info': 'krb5Key: value #3 provided more than once', 'desc': 'Type or value exists'} Fri Aug 26 18:30:37 2011 sync failed, saved as rejected Traceback (most recent call last): File "/usr/lib/pymodules/python2.6/univention/s4connector/__init__.py", line 573, in __sync_file_from_ucs or (not old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, old_dn))): File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/__init__.py", line 1896, in sync_from_ucs f(self, property_type, object) File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/password.py", line 458, in password_sync_ucs_to_s4 newpwdlastset = str(univention.s4connector.s4.samba2s4_time(sambaPwdLastSet)) File "/usr/lib/pymodules/python2.6/univention/s4connector/s4/__init__.py", line 134, in samba2s4_time return long(time.mktime(time.gmtime(l+3600)))*10000000+d TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'
(In reply to comment #0) > Wenn ich einen Benutzer per samba4-tool anlege (), dann bekomme ich die > folgenden Tracebacks in der s4-connector-tracebacks Logdatei: Der Befehl zum Anlegen: samba-tool newuser testuser-1 univention
Created attachment 3482 [details] connector-s4.log
Created attachment 3483 [details] connector-s4-tracebacks.log
Da wurde sambaPwdLastSet=None an samba2s4_time übergeben. Fixed durch commit r26496 für Bug 22862 (siehe Punkt 4 der QA für Bug 22862#c6). *** This bug has been marked as a duplicate of bug 22862 ***
Funktioniert
UCS 3.0-0 wurde veröffentlicht. Sollte der hier beschriebene Bug mit einer neueren Version von UCS erneut auftreten, so sollte dieser Bug dupliziert werden: "Clone This Bug"