Page 1 of 1

AUTH-PAM verify if CN = USERNAME

Posted: Tue Aug 30, 2011 11:52 am
by tinuro
hy

I need someone who can modify the original plugin auth-pam for verify that USERNAME=CN , if does return 0, either return 1
who can do this please help

sorry for my bad english

Re: AUTH-PAM verify if CN = USERNAME

Posted: Tue Aug 30, 2011 12:30 pm
by janjust
there is no need to modify the auth-pam plugin for this - use a combination of auth-pam and an 'auth-user-pass-verify' script : the auth-pam plugin will fail, but the script can then grant access to users where username=CN

(if that is what you're looking for)

Re: AUTH-PAM verify if CN = USERNAME

Posted: Tue Aug 30, 2011 3:13 pm
by tinuro
I use CHROOT and doesn't work. That's why I need auth-pam to be modified.

Re: AUTH-PAM verify if CN = USERNAME

Posted: Tue Aug 30, 2011 9:04 pm
by janjust
even with '--chroot' you can use an 'auth-user-pass-verify' script, provided that you stick in the right (chrooted) location.

Re: AUTH-PAM verify if CN = USERNAME

Posted: Wed Aug 31, 2011 8:21 am
by tinuro
if you put in there all dependencies for that script... (bash,perl, libraries - stuff like that; and I don;t want that)