From: Marcel Ritter Subject: PAM auth problems Date: Fri, 25 May 2007 13:41:29 +0200 Message-ID: <4656CB69.1000904@rrze.uni-erlangen.de> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xensource.com Errors-To: xen-devel-bounces@lists.xensource.com To: xen-devel@lists.xensource.com List-Id: xen-devel@lists.xenproject.org Hi there! I've been playing arount with Xen 3.1.0 and I tried to use PAM authentication 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. Bye, Marcel PS: Keep on the great work!