Bug 638182

Summary: User create is not checking for duplicate user names
Product: [Retired] Pulp Reporter: Preethi Thomas <pthomas>
Component: z_otherAssignee: Sayli Karmarkar <skarmark>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: medium Docs Contact:
Priority: high    
Version: unspecifiedCC: cperry, skarmark
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: 2011-08-16 14:02:27 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: 641987    

Description Preethi Thomas 2010-09-28 13:00:21 UTC
Description of problem:


User create is letting you create duplicate users



[root@preethi ~]# pulp-admin user create --newusername=user-test --newpassword=redhat
 Successfully created User [ user-test ] with name [  ]
[root@preethi ~]# pulp-admin user create --newusername=user-test --newpassword=redhat
 Successfully created User [ user-test ] with name [  ]
[root@preethi ~]# 
[root@preethi ~]# 
[root@preethi ~]# pulp-admin user create --newusername=user-test --newpassword=redhat
 Successfully created User [ user-test ] with name [  ]
[root@preethi ~]# pulp-admin user list
+-------------------------------------------+
             Available Users                 
+-------------------------------------------+

Login :                 admin                        
Name  :                 None                     


Login :                 preethi                      
Name  :                 preethi                  


Login :                 user-test                    
Name  :                                          


Login :                 user-test                    
Name  :                                          


Login :                 user-test                    
Name  :

Comment 1 Sayli Karmarkar 2010-09-29 00:28:28 UTC
Fixed. 

$ sudo pulp-admin -u admin -p admin user create --newusername=sayli --newpassword=***** --name=lea
 Successfully created User [ sayli ] with name [ lea ]

$ sudo pulp-admin -u admin -p admin user create --newusername=sayli --newpassword=***** --name=lea
"A user with the login, sayli, already exists"

Comment 2 Preethi Thomas 2010-10-01 18:19:32 UTC
verified
[root@preethi ~]# pulp-admin user create --newusername=test-user1 --newpassword=redhat
 Successfully created User [ test-user1 ] with name [  ]
[root@preethi ~]# pulp-admin user create --newusername=test-user1 --newpassword=redhat
"A user with the login, test-user1, already exists"
[root@preethi ~]# pulp-admin user create --newusername=test-user1 --newpassword=redhat
"A user with the login, test-user1, already exists"
[root@preethi ~]# pulp-admin user create --newusername=test-user1 --newpassword=redhat1
"A user with the login, test-user1, already exists"
[root@preethi ~]# pulp-admin user create --newusername=test-user2 --newpassword=redhat
 Successfully created User [ test-user2 ] with name [  ]
[root@preethi ~]# pulp-admin user list
+-------------------------------------------+
             Available Users                 
+-------------------------------------------+

Login :               	admin                        
Name  :               	None                     


Login :               	test-user1                   
Name  :               	                         


Login :               	test-user2                   
Name  :

Comment 3 Preethi Thomas 2011-08-16 14:02:27 UTC
Closing with Community Release 15

pulp-0.0.223-4.