WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-api

[Xen-API] Re: Authentication Issues

To: xen-api@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-API] Re: Authentication Issues
From: Robert Navarro <rnavarro@xxxxxxxxxx>
Date: Fri, 24 Jul 2009 21:12:51 -0700
Delivery-date: Fri, 24 Jul 2009 21:13:17 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
In-reply-to: <35e229a50907240100o75196addr8d70a2c4239116e0@xxxxxxxxxxxxxx>
List-help: <mailto:xen-api-request@lists.xensource.com?subject=help>
List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>
List-post: <mailto:xen-api@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-api>, <mailto:xen-api-request@lists.xensource.com?subject=unsubscribe>
References: <35e229a50907240100o75196addr8d70a2c4239116e0@xxxxxxxxxxxxxx>
Sender: xen-api-bounces@xxxxxxxxxxxxxxxxxxx
Hey Guys,

Figured this one out. I had to create another user because the PyPAM module won't authenticate against the root user.

On a related note, I was running Centos 5.3 and had a VERY hard time finding the python-pam/PyPAM modules. I eventually found a copy and mirror it here: http://phiivo.com/misc/PyPAM-0.4.2-20.el5.i386.rpm

On Fri, Jul 24, 2009 at 1:00 AM, Robert Navarro <rnavarro@xxxxxxxxxx> wrote:
Hello Everyone,

I'm having some issues authenticating with the api. I keep getting a "SESSION_AUTHENTICATION_FAILED". No matter what user/pass combination I try.

When authenticating against pam does the users' group matter or will the authentication work against any user?

In my xend-config.sxp
(xen-api-server ((4464 pam)))

I have installed PyPAM and that got rid of this message:
[2009-07-22 07:27:47 4927] WARNING (XendAuthSessions:81) python-pam is required for XenAPI support.

I ran a trace on xend and that spit back this when attempting to hit the xmlrpc interface:
[2009-07-22 08:31:30 6013] ERROR (xmlrpclib2:166) Internal error handling session.login_with_password
Traceback (most recent call last):
  File "/usr/lib/python2.4/site-packages/xen/util/xmlrpclib2.py", line 131, in _marshaled_dispatch
    response = self._dispatch(method, params)
  File "/usr/lib/python2.4/SimpleXMLRPCServer.py", line 406, in _dispatch
    return func(*params)
  File "/usr/lib/python2.4/site-packages/xen/xend/XendAPI.py", line 756, in session_login_with_password
    session = ((self.auth == AUTH_NONE and
  File "/usr/lib/python2.4/site-packages/xen/xend/XendAuthSessions.py", line 52, in login_with_password
    if self.is_authorized(username, password):
  File "/usr/lib/python2.4/site-packages/xen/xend/XendAuthSessions.py", line 104, in is_authorized
    try:
  File "/usr/lib/python2.4/site-packages/xen/xend/XendAuthSessions.py", line 104, in is_authorized
    try:
  File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDaemon.py", line 296, in trace
    self.print_trace("%4d %s" %
  File "/usr/lib/python2.4/site-packages/xen/xend/server/SrvDaemon.py", line 258, in print_trace
    for i in range(self.traceindent):
TypeError: argument 2 must be string, not function


I am sending a request formatted as follows:
<?xml version="1.0"?>
<methodCall>
<methodName>session.login_with_password</methodName>
<params>
<param>
<value><string>root</string></value>
</param>
<param>
<value><string>S0mepassw0rd</string></value>
</param>
</params>
</methodCall>
Any help with this would be greatly appreciated! And if you need any more logs or info don't hesitate to ask.

--
~Robert Navarro



--
~Robert Navarro
_______________________________________________
xen-api mailing list
xen-api@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/mailman/listinfo/xen-api
<Prev in Thread] Current Thread [Next in Thread>