Bug 634943 - "Authorization failed" Exception if you don't enter -p admin option aon auth login
Summary: "Authorization failed" Exception if you don't enter -p admin option aon auth ...
Keywords:
Status: CLOSED DUPLICATE of bug 624512
Alias: None
Product: Pulp
Classification: Retired
Component: z_other
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
: ---
Assignee: Pradeep Kilambi
QA Contact: Preethi Thomas
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2010-09-17 12:08 UTC by Preethi Thomas
Modified: 2011-07-15 19:30 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2010-09-22 16:01:42 UTC
Embargoed:


Attachments (Terms of Use)

Description Preethi Thomas 2010-09-17 12:08:29 UTC
Description of problem:

pulp.client.connection.RestlibException: 401: "Authorization failed. Check your username and password or your certificate"

if the -p admin option is not entered. It would be better if the user id prompted for password if the -p option was not entered

Or a message like 

[root@preethi certs]# pulp-admin auth login 
username and password are required. Try --help
 would make more sense



[root@preethi certs]# pulp-admin auth login -u admin
Traceback (most recent call last):
  File "/usr/bin/pulp-admin", line 30, in <module>
    pulpcli.PulpCore().main()
  File "/usr/lib/python2.6/site-packages/pulp/client/pulpcli.py", line 108, in main
    cmd.main()
  File "/usr/lib/python2.6/site-packages/pulp/client/core/basecore.py", line 120, in main
    self._do_core()
  File "/usr/lib/python2.6/site-packages/pulp/client/core/core_auth.py", line 64, in _do_core
    self._login()
  File "/usr/lib/python2.6/site-packages/pulp/client/core/core_auth.py", line 74, in _login
    cert_dict = self.authconn.admin_certificate()
  File "/usr/lib/python2.6/site-packages/pulp/client/connection.py", line 519, in admin_certificate
    return self.conn.request_get(method)
  File "/usr/lib/python2.6/site-packages/pulp/client/connection.py", line 121, in request_get
    return self._request("GET", method)
  File "/usr/lib/python2.6/site-packages/pulp/client/connection.py", line 109, in _request
    self.validateResponse(response)
  File "/usr/lib/python2.6/site-packages/pulp/client/connection.py", line 117, in validateResponse
    raise RestlibException(response.status, response.read())
pulp.client.connection.RestlibException: 401: "Authorization failed. Check your username and password or your certificate"
[root@preethi certs]#

Comment 1 Todd Sanders 2010-09-22 16:01:42 UTC

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


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