Bug 23442 - Fehlermeldungen im Passwort Sync
Fehlermeldungen im Passwort Sync
Status: CLOSED DUPLICATE of bug 22862
Product: UCS
Classification: Unclassified
Component: Samba4
UCS 3.0
Other Linux
: P5 normal (vote)
: UCS 3.0 - RC
Assigned To: Arvid Requate
Stefan Gohmann
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-08-29 09:19 CEST by Stefan Gohmann
Modified: 2011-12-13 15:51 CET (History)
0 users

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments
connector-s4.log (467.50 KB, text/plain)
2011-08-29 09:21 CEST, Stefan Gohmann
Details
connector-s4-tracebacks.log (17.16 KB, text/plain)
2011-08-29 09:21 CEST, Stefan Gohmann
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Stefan Gohmann univentionstaff 2011-08-29 09:19:27 CEST
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'
Comment 1 Stefan Gohmann univentionstaff 2011-08-29 09:20:02 CEST
(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
Comment 2 Stefan Gohmann univentionstaff 2011-08-29 09:21:11 CEST
Created attachment 3482 [details]
connector-s4.log
Comment 3 Stefan Gohmann univentionstaff 2011-08-29 09:21:59 CEST
Created attachment 3483 [details]
connector-s4-tracebacks.log
Comment 4 Arvid Requate univentionstaff 2011-10-05 14:00:37 CEST
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 ***
Comment 5 Stefan Gohmann univentionstaff 2011-11-05 09:47:08 CET
Funktioniert
Comment 6 Sönke Schwardt-Krummrich univentionstaff 2011-12-13 15:51:23 CET
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"