AUTH-PAM verify if CN = USERNAME

Scripts which allow the use of special authentication methods (LDAP, AD, MySQL/PostgreSQL, etc).

Moderators: TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech, TinCanTech

Post Reply
tinuro
OpenVpn Newbie
Posts: 3
Joined: Tue Aug 30, 2011 11:44 am

AUTH-PAM verify if CN = USERNAME

Post by tinuro » Tue Aug 30, 2011 11:52 am

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

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: AUTH-PAM verify if CN = USERNAME

Post by janjust » Tue Aug 30, 2011 12:30 pm

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)

tinuro
OpenVpn Newbie
Posts: 3
Joined: Tue Aug 30, 2011 11:44 am

Re: AUTH-PAM verify if CN = USERNAME

Post by tinuro » Tue Aug 30, 2011 3:13 pm

I use CHROOT and doesn't work. That's why I need auth-pam to be modified.

User avatar
janjust
Forum Team
Posts: 2703
Joined: Fri Aug 20, 2010 2:57 pm
Location: Amsterdam
Contact:

Re: AUTH-PAM verify if CN = USERNAME

Post by janjust » Tue Aug 30, 2011 9:04 pm

even with '--chroot' you can use an 'auth-user-pass-verify' script, provided that you stick in the right (chrooted) location.

tinuro
OpenVpn Newbie
Posts: 3
Joined: Tue Aug 30, 2011 11:44 am

Re: AUTH-PAM verify if CN = USERNAME

Post by tinuro » Wed Aug 31, 2011 8:21 am

if you put in there all dependencies for that script... (bash,perl, libraries - stuff like that; and I don;t want that)

Post Reply