Bug 433067

Summary: traceback when creating a new user with a login name of "4"
Product: [Retired] freeIPA Reporter: Michael Gregg <mgregg>
Component: ipa-admintoolsAssignee: Rob Crittenden <rcritten>
Status: CLOSED DUPLICATE QA Contact: Chandrasekar Kannan <ckannan>
Severity: low Docs Contact:
Priority: low    
Version: unspecifiedCC: benl
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2008-02-20 21:10:41 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 429034    

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 ***