Bug 670279

Summary: Traceback when adding user via ldap
Product: Red Hat Enterprise Linux 5 Reporter: Miroslav Vadkerti <mvadkert>
Component: libuserAssignee: Miloslav Trmač <mitr>
Status: CLOSED ERRATA QA Contact: BaseOS QE Security Team <qe-baseos-security>
Severity: low Docs Contact:
Priority: medium    
Version: 5.7CC: dspurek, jronto, mitr, pvrabec
Target Milestone: rc   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 670151 Environment:
Last Closed: 2012-08-07 08:20:21 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Bug Depends On: 670151    
Bug Blocks:    

Description Miroslav Vadkerti 2011-01-17 19:02:16 UTC
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

Comment 1 Miloslav Trmač 2011-01-20 13:22:02 UTC
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.

Comment 3 RHEL Program Management 2011-05-31 13:44:17 UTC
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.

Comment 12 errata-xmlrpc 2012-08-07 08:20:21 UTC
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