[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-API] Re: Authentication Issues


  • To: xen-api@xxxxxxxxxxxxxxxxxxx
  • From: Robert Navarro <rnavarro@xxxxxxxxxx>
  • Date: Fri, 24 Jul 2009 21:12:51 -0700
  • Delivery-date: Fri, 24 Jul 2009 21:13:17 -0700
  • List-id: Discussion of API issues surrounding Xen <xen-api.lists.xensource.com>

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

 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.