Simple method name change in the authn_spacewalk.py file.

We can't call the regular login() method because that actually calls back to cobbler to setup a ticket for the session which creates an infinite loop.

Mike
--
Mike McCune
mmccune AT redhat.com
Engineering               | Portland, OR
RHN Satellite             | 650.567.9039x79248
>From d8701ceb51b583a1f8009c2252285ef37dd855cc Mon Sep 17 00:00:00 2001
From: Mike McCune <[EMAIL PROTECTED]>
Date: Fri, 17 Oct 2008 15:34:00 -0700
Subject: [PATCH] switching to cobbler specific login method that doesn't 
attempt to re-login
 back to cobbler causing an infinite loop of login attemps.

---
 cobbler/modules/authn_spacewalk.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/cobbler/modules/authn_spacewalk.py 
b/cobbler/modules/authn_spacewalk.py
index 2636400..958120c 100644
--- a/cobbler/modules/authn_spacewalk.py
+++ b/cobbler/modules/authn_spacewalk.py
@@ -48,7 +48,7 @@ def authenticate(api_handle,username,password):
 
     client = xmlrpclib.Server(spacewalk_url, verbose=0)
 
-    key = client.auth.login(username,password)
+    key = client.auth.loginAndSkipIntegrationAuth(username,password)
     if key is None:
         return False
 
-- 
1.5.6.5

_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler

Reply via email to