Bug 18446 - Traceback nach Ändern des SamAccountName eines Benutzers
Traceback nach Ändern des SamAccountName eines Benutzers
Status: RESOLVED WONTFIX
Product: UCS
Classification: Unclassified
Component: AD Connector
UCS 2.4
Other Linux
: P5 normal (vote)
: ---
Assigned To: Bugzilla Mailingliste
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2010-05-20 11:46 CEST by Daniel Hofmann
Modified: 2016-04-25 07:51 CEST (History)
1 user (show)

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

Note You need to log in before you can comment on or make changes to this bug.
Description Daniel Hofmann univentionstaff 2010-05-20 11:46:25 CEST
Wird auf AD-Seite das Attribut sAMAccountName eines Benutzerobjekts (Prä-Windows2000-Anmeldename) geändert, so erscheint im Tracebacklog des AD-Connectors folgender Traceback:

Thu Apr 15 04:21:03 2010
failed in post_con_modify_functions
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/univention/connector/__init__.py", line 1017, in sync_to_ucs
    f(self, property_type, object)
  File "/usr/lib/python2.4/site-packages/univention/connector/ad/password.py", line 251, in password_sync
    res=connector.lo.search(base=ucs_object['dn'], attr=['sambaPwdMustChange', 'sambaPwdLastSet','sambaNTPassword', 'sambaLMPasswor
  File "/usr/lib/python2.4/site-packages/univention/admin/uldap.py", line 301, in search
    raise univention.admin.uexceptions.noObject, msg[0]['desc']
noObject: No such object

Ich konnte allerdings keine negativen Auswirkungen davon feststellen, d.h. der sAMAccountName wird soweit ich das beurteilen kann vollständig nach UCS synchronisiert, dn und Benutzername des entsprechenden Benutzerobjekts also angepasst. Auch das Login via smbclient mit dem geänderten Accountname sowohl am UCS- als auch am AD-Server funktioniert nach wie vor.
Comment 1 Ingo Steuwer univentionstaff 2012-01-11 14:02:00 CET
Ich bekomme mit UCS 2.4-3 diesen Traceback beim Ändern des samAccounName im AD:

sync failed, saved as rejected
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/univention/connector/__init__.py", line 568, in __sync_file_from_ucs
    if ((old_dn and not self.sync_from_ucs(key, object, premapped_ucs_dn, unicode(old_dn,'utf8')))
  File "/usr/lib/python2.4/site-packages/univention/connector/ad/__init__.py", line 1856, in sync_from_ucs
    self.lo_ad.lo.modify_s(compatible_modstring(object['dn']), compatible_modlist(modlist))
  File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 328, in modify_s
    return self.result(msgid,all=1,timeout=self.timeout)
  File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 428, in result
    res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
  File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 432, in result2
    res_type, res_data, res_msgid, srv_ctrls = self.result3(msgid,all,timeout)
  File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 438, in result3
    ldap_result = self._ldap_call(self._l.result3,msgid,all,timeout)
  File "/usr/lib/python2.4/site-packages/ldap/ldapobject.py", line 96, in _ldap_call
    result = func(*args,**kwargs)
ALREADY_EXISTS: {'info': '00000526: UpdErr: DSID-031A119B, problem 6005 (ENTRY_EXISTS), data 0\n', 'desc': 'Already exists'}


Der Unterschied könnte vom ursprünglichen Posting abweichen, weil in meinem Fall der samAccountName Groß- und Kleinbuchstaben enthält.
Comment 2 Ingo Steuwer univentionstaff 2012-01-11 14:05:00 CET
(In reply to comment #1)
> Ich bekomme mit UCS 2.4-3 diesen Traceback beim Ändern des samAccounName im AD:
[..]
> Der Unterschied könnte vom ursprünglichen Posting abweichen, weil in meinem
> Fall der samAccountName Groß- und Kleinbuchstaben enthält.

Die UID des Users ist in UCS anschließend aber korrekt geändert.
Comment 3 Stefan Gohmann univentionstaff 2016-04-25 07:51:57 CEST
This issue has been filed against UCS 2.4.

UCS 2.4 is out of maintenance and many UCS components have vastly changed in
later releases. Thus, this issue is now being closed.

If this issue still occurs in newer UCS versions, please use "Clone this bug".
In this case please provide detailed information on how this issue is affecting
you.