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/
Home Products Support Community News


[Xen-devel] PAM auth problems

To: xen-devel@xxxxxxxxxxxxxxxxxxx
Subject: [Xen-devel] PAM auth problems
From: Marcel Ritter <Marcel.Ritter@xxxxxxxxxxxxxxxxxxxx>
Date: Fri, 25 May 2007 13:41:29 +0200
Delivery-date: Fri, 25 May 2007 04:39:54 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/cgi-bin/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
User-agent: Thunderbird (X11/20060911)
Hi there!

I've been playing arount with Xen 3.1.0 and I tried to use PAM
for Xend (XEN-API). This fails on openSuSE 10.2 with PyPAM 0.4.2.

The reason seems to be located in  XendAuthSessions.py:
the function _pam_conv takes 3 arguments, instead
of 2 (as in the example shipped with PyPAM 0.4.2, and PyPAM 0.5.0):

        def _pam_conv(auth, query_list, user_data):

So I changed it to:

        def _pam_conv(auth, query_list, user_data = None):

and PAM auth works fine. I also tried to remove user_data completely,
and it also worked fine (for me, no idea about version 0.5.0)

Does this change break PyPAM 0.5.0 compatibility? If not I hope this
patch gets applied soon.


PS: Keep on the great work!

Xen-devel mailing list

<Prev in Thread] Current Thread [Next in Thread>