Hide Forgot
Description of problem: I have problems adding a user via system-config-users when libuser is configured to use ldap (in my case only ldap module is enabled): # system-config-users File "/usr/share/system-config-users/userWindow.py", line 377, in on_userWin_ok_button_clicked self.parent.ADMIN.addUser(userEnt) RuntimeError: error creating a LDAP directory entry: Invalid syntax Version-Release number of selected component (if applicable): system-config-users-1.2.51-4.el5 How reproducible: 100% Steps to Reproduce: 1. Configure ldap server and libuser.conf to use it 2. start system-config-users 3. Try to add a user Actual results: Traceback - see description Expected results: No traceback Additional info: Adding user works without issues using luseradd
This is actually a bug in libuser. As a workaround, you can fill in any value in the "real name" ("gecos") field. In LDAP, gecos is an IA5String which allows empty strings, and "commonName" is a DirectoryString which does not allow empty strings. libuser automatically initializes commonName from gecos if commonName is not provided by the application, but it does not handle the case when gecos is empty.
This request was evaluated by Red Hat Product Management for inclusion in the current release of Red Hat Enterprise Linux. Because the affected component is not scheduled to be updated in the current release, Red Hat is unfortunately unable to address this request at this time. Red Hat invites you to ask your support representative to propose this request, if appropriate and relevant, in the next release of Red Hat Enterprise Linux.
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2012-1144.html