Bug 713493 - auth login ignores user auth credentials after its first login
Summary: auth login ignores user auth credentials after its first login
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: Sprint 25
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks: verified-to-close 688298
TreeView+ depends on / blocked
 
Reported: 2011-06-15 14:42 UTC by Pradeep Kilambi
Modified: 2011-08-16 12:22 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-08-16 12:09:34 UTC
Embargoed:


Attachments (Terms of Use)

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.


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