Univention Bugzilla – Bug 27853
LDAP-Fehler beim anlegen eines Posix-only-Benutzers: displayName
Last modified: 2013-02-25 12:23:33 CET
1. Benutzer anlegen: 1.1 dabei alle Optionen bis auf Posix deaktivieren 1.2 Benutname, UID, password vergeben 1.3 Anlegen 2. Fehler: Das UDM-Objekt konnte nicht gespeichert werden: LDAP-Fehler # ucr search --brief '^version/' version/erratalevel: 93 version/patchlevel: 1 version/version: 3.0 # tail /var/log/univention/management-console-module-udm.log | grep ldapError 09.07.12 11:20:35.566 MODULE ( WARN ) : Failed to create LDAP object: ldapError: Object class violation: attribute 'displayName' not allowed
./univention-directory-manager-modules/modules/univention/admin/handlers/users/user.py ... options={ ... 'displayName': univention.admin.property( options=['posix'], ... def _ldap_addlist(self): ... if 'posix' in self.options: ocs.extend(['posixAccount', 'shadowAccount']) ... $ ldapsearch -xLLLb 'cn=Subschema' -s base objectClasses | ldapsearch-wrapper | egrep "NAME '(posix|shadow)Account'" objectClasses: ( 1.3.6.1.1.1.2.0 NAME 'posixAccount' DESC 'Abstraction of an account with POSIX attributes' SUP top AUXILIARY MUST ( cn $ uid $ uidNumber $ gidNumber $ homeDirectory ) MAY ( userPassword $ loginShell $ gecos $ description ) ) objectClasses: ( 1.3.6.1.1.1.2.1 NAME 'shadowAccount' DESC 'Additional attributes for shadow passwords' SUP top AUXILIARY MUST uid MAY ( userPassword $ shadowLastChange $ shadowMin $ shadowMax $ shadowWarning $ shadowInactive $ shadowExpire $ shadowFlag $ description ) )
$ ldapsearch -xLLLb 'cn=Subschema' -s base objectClasses | ldapsearch-wrapper | egrep displayName | grep --only "NAME '[^']*'" NAME 'sambaGroupMapping' NAME 'inetOrgPerson' NAME 'univentionUserTemplate' NAME 'sambaSamAccount'
Created attachment 4520 [details] bind displayName to person|samba instead of posix + moderization
UCS 3.1 will be the next release.
(In reply to comment #3) > bind displayName to person|samba instead of posix Das behebt das Problem. univention-directory-manager-modules (8.0.72-1) unstable; urgency=low * bind attribute "displayName" to options "samba|person" instead of posix (Bug #27853) svn 36615
Konnte nachvollzogen werden, nach dem Update tritt der Fehler nicht mehr auf. Changelog okay. VERIFIED.
*** Bug 25168 has been marked as a duplicate of this bug. ***
UCS 3.1-0 has been released: http://forum.univention.de/viewtopic.php?f=54&t=2125 If this error occurs again, please use "Clone This Bug".