Bug 713493

Summary: auth login ignores user auth credentials after its first login
Product: [Retired] Pulp Reporter: Pradeep Kilambi <pkilambi>
Component: z_otherAssignee: Pradeep Kilambi <pkilambi>
Status: CLOSED CURRENTRELEASE QA Contact: Preethi Thomas <pthomas>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: unspecifiedCC: skarmark
Target Milestone: ---Keywords: Triaged
Target Release: Sprint 25   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-08-16 12:09:34 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: 647488, 688298    

Description Pradeep Kilambi 2011-06-15 14:42:06 UTC
Description of problem:

Lets login the first time with a known user account:

$ sudo pulp-admin auth login -u admin -p admin
User credentials successfully stored at [/root/.pulp/user-cert.pem]

Now lets try to relogin with a fake user

$ sudo pulp-admin auth login -u foobar
User credentials successfully stored at [/root/.pulp/user-cert.pem]

This is incorrect, auth is still using the previous credentials.

The right behavior should be, auth should tell that there is already a user logged in and should suggest a logout before doing the above.

something like:

$ sudo pulp-admin auth login -u foobar
Error: A user certificate already exists on the system; please logout before re-authenticating a new user.

Comment 1 Pradeep Kilambi 2011-06-17 19:25:44 UTC
fixed! commit 3a73fa795945972e62682fa3a4f39d52aeb172a3

fixed auth login to re-login new credentials; will just replace existing user certs with new ones

$ sudo pulp-admin -u admin -p admin  auth login
User credentials successfully stored at [/root/.pulp/user-cert.pem]

Before fix, password is not prompted, it direclty downloads previous user certs

$ sudo pulp-admin auth login -u prad
User credentials successfully stored at [/root/.pulp/user-cert.pem]

After fix, should download new user credentials

$ sudo pulp-admin auth login -u prad
Enter password: 
User credentials successfully stored at [/root/.pulp/user-cert.pem]

Comment 2 Jeff Ortel 2011-06-17 21:10:08 UTC
build: 0.192

Comment 3 Preethi Thomas 2011-06-20 19:09:26 UTC
[root@preethi ~]# rpm -q pulp
pulp-0.0.192-1.fc14.noarch

[root@preethi ~]# pulp-admin auth login -u admin -p admin
User credentials successfully stored at [/root/.pulp/user-cert.pem]


[root@preethi ~]# pulp-admin auth login -u preethi
Enter password: 
User credentials successfully stored at [/root/.pulp/user-cert.pem]

Comment 4 Preethi Thomas 2011-08-16 12:09:34 UTC
Closing with Community Release 15

pulp-0.0.223-4.

Comment 5 Preethi Thomas 2011-08-16 12:22:00 UTC
Closing with Community Release 15

pulp-0.0.223-4.