Bug 670279 - Traceback when adding user via ldap
Summary: Traceback when adding user via ldap
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Red Hat Enterprise Linux 5
Classification: Red Hat
Component: libuser
Version: 5.7
Hardware: Unspecified
OS: Unspecified
medium
low
Target Milestone: rc
: ---
Assignee: Miloslav Trmač
QA Contact: BaseOS QE Security Team
URL:
Whiteboard:
Depends On: 670151
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-01-17 19:02 UTC by Miroslav Vadkerti
Modified: 2013-04-12 20:48 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of: 670151
Environment:
Last Closed: 2012-08-07 08:20:21 UTC
Target Upstream Version:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHBA-2012:1144 0 normal SHIPPED_LIVE libuser bug fix update 2012-08-07 12:18:20 UTC

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


Note You need to log in before you can comment on or make changes to this bug.