Bug 433067 - traceback when creating a new user with a login name of "4"
Summary: traceback when creating a new user with a login name of "4"
Keywords:
Status: CLOSED DUPLICATE of bug 432136
Alias: None
Product: freeIPA
Classification: Retired
Component: ipa-admintools
Version: unspecified
Hardware: All
OS: Linux
low
low
Target Milestone: ---
Assignee: Rob Crittenden
QA Contact: Chandrasekar Kannan
URL:
Whiteboard:
Depends On:
Blocks: 429034
TreeView+ depends on / blocked
 
Reported: 2008-02-15 22:04 UTC by Michael Gregg
Modified: 2015-01-04 23:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2008-02-20 21:10:41 UTC
Embargoed:


Attachments (Terms of Use)

Description Michael Gregg 2008-02-15 22:04:11 UTC
Description of problem:
See summary and steps to reproduce.

How reproducible:
always

Steps to Reproduce:
1. configure a client to connect to a ipa server. 
2. As root, kinit as admin.
3. run ipa-adduser
4. specify firstname: 1
5. lastname: 2
6. Login name: 3
7. Password: 4

Actual results:
Traceback (most recent call last):
  File "/usr/share/ipa/ipaserver/ipaxmlrpc.py", line 171, in _marshaled_dispatch
    response = self._dispatch(method, params)
  File "/usr/share/ipa/ipaserver/ipaxmlrpc.py", line 204, in _dispatch
    ret = func(*args)
  File "/usr/lib/python2.4/site-packages/ipaserver/funcs.py", line 492, in add_user
    dn="uid=%s,%s,%s" % (ldap.dn.escape_dn_chars(user['uid']),
KeyError: 'uid'

Expected results:
If this is expected behavior as the login name is very short, throw a error
message that states this to the console, or the log, or both.

Comment 1 Rob Crittenden 2008-02-20 21:10:41 UTC
This was fixed in 432136.

The difference is that bug reported it in the UI and this one the CLI, same
issue though.

Fixed in changeset 642

*** This bug has been marked as a duplicate of 432136 ***


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