Subject: [netatalk-admins] kerberos and papd...
From: Everette G Allen (Everette_Allen@ncsu.edu)
Date: Tue Jul 22 1997 - 15:49:24 EDT
I am having a problem with papd under 1.3.3 not finding the ka#1 entry in
printcap to recognize that it needs to do kerberos authentication. What is
different is that when parsing printcap in main.c for papd a call to
pgetflag is used to look for ka while a series of tests using pgetstr is
used for the rest.
Code follows:
/*
* Must Kerberos authenticate?
*/
syslog(LOG_ERR,"before ka for %s",pr->p_printer);
if ( pgetflag( "ka" ) == 1 ) {
syslog(LOG_ERR,"AUTH = 1");
pr->p_flags |= P_AUTH;
} else {
syslog(LOG_ERR,"AUTH = 0");
pr->p_flags &= ~P_AUTH;
}
(Note: syslog is always getting AUTH=0 in binary)
as opposed to say
/*
* Is accounting on?
*/
a = area;
if ( pgetstr( "af", &a ) == NULL ) {
pr->p_flags &= ~P_ACCOUNT;
} else {
pr->p_flags |= P_ACCOUNT;
}
Why the difference?
Everette Gray Allen Consultant IV
Box 7109 NCState Campus Computing Services
Raleigh, NC 27695-7109 919-515-2517
This archive was generated by hypermail 2b28 : Sat Dec 18 1999 - 16:25:45 EST