Cyrus SASL Hack: Always pass authentication for one host

ram ram at netcore.co.in
Thu Dec 18 09:19:23 EST 2008


I am trying to write a hack into pam and always pass authentication for
a particular host 

So I modified pam_mysql.c , but the issue is for cyrus I am always
getting rhost as null 

This is what I put in pam_mysql.c

....
PAM_EXTERN int pam_sm_authenticate(pam_handle_t * pamh, int flags,
                int argc, const char **argv) {
....
pam_get_item(pamh, PAM_RHOST,(PAM_GET_ITEM_CONST void **)&rhost);
syslog(LOG_INFO,"RHOST  = %s",  rhost);
....





I always get rhost as null. Is there a way I can get rhost set


Thanks
Ram




More information about the Info-cyrus mailing list