Package: lprng
Version: 3.8.A~rc2-1
Tags: patch

In versions of lprng before the kerberos4 authtype was deprecated, authtypes of the form "kerberos*" for * different from 4 were handled as the standard "kerberos" authtype; below is part of the diff between the current Lenny and Sid versions in common/user_auth.c:

 # if defined(MIT_KERBEROS4)
        { "kerberos4", "kerberos", IP_SOCKET_ONLY, Send_krb4_auth, 0,0,0 },
 # endif
-       { "kerberos*", "kerberos", IP_SOCKET_ONLY, 0,           Krb5_send, 0, 
Krb5_receive },
+       { "kerberos", "kerberos", IP_SOCKET_ONLY, 0,           Krb5_send, 0, 
Krb5_receive },
+       { "kerberos5", "kerberos", IP_SOCKET_ONLY, 0,           Krb5_send, 0, 
Krb5_receive },
+       { "k5conn", "kerberos", IP_SOCKET_ONLY, 0,           Krb5_send_nocrypt, 
0, Krb5_receive_nocrypt },
 #endif

        { "test",      "test",     0,              0,           Test_send, 0, 
Test_receive },

This change breals printcap entries that specify authtype "kerberos5", which used to work and was a reasonable parallel to the now-deprecated authtype "kerberos4".

Attached is a small patch to cause authtype "kerberos5" to restore support for the "kerberos5" authtype.

        -Tim Abbott
diff -ur lprng-3.8.A~rc2-orig/src/common/user_auth.c 
lprng-3.8.A~rc2/src/common/user_auth.c
--- lprng-3.8.A~rc2-orig/src/common/user_auth.c 2008-01-17 06:16:27.000000000 
-0500
+++ lprng-3.8.A~rc2/src/common/user_auth.c      2008-01-27 01:01:11.000000000 
-0500
@@ -1797,6 +1797,7 @@
        { "kerberos4", "kerberos", IP_SOCKET_ONLY, Send_krb4_auth, 0,0,0 },
 # endif
        { "kerberos", "kerberos", IP_SOCKET_ONLY, 0,           Krb5_send, 0, 
Krb5_receive },
+       { "kerberos5", "kerberos", IP_SOCKET_ONLY, 0,           Krb5_send, 0, 
Krb5_receive },
        { "k5conn", "kerberos", IP_SOCKET_ONLY, 0,           Krb5_send_nocrypt, 
0, Krb5_receive_nocrypt },
 #endif
 

Reply via email to