On 18/12/16 06:06, Jeff Sadowski wrote: > On Sat, Dec 17, 2016 at 5:46 PM, Selva Nair <[email protected] > <mailto:[email protected]>> wrote: > > Hi, > > On Sat, Dec 17, 2016 at 5:57 PM, Jeff Sadowski > <[email protected] <mailto:[email protected]>> wrote: > > I am able to validate with local users using the following > configs. However if I try a domain user it fails to authenticate. > > The same domain user authenticates with freeradius. > > > Makes sense based on the pam config which uses only pam_unix.so for > authentication. > > > > /etc/pam.d/openvpn > ----------------------- > auth required pam_unix.so > account required pam_unix.so > password required pam_ldap.so > session required pam_ldap.so > > > In pam, the auth module is consulted for authentication, password > module is used for changing the password. You are not using pam_ldap > to authenticate. What one would normally add to /etc/pam.d/openvpn > is a series of stacked auth statements, to conditionally or in > combination use various forms of authentication as needed. For example: > > auth sufficient pam_unix.so > auth sufficient pam_ldap.so use_first_pass config=<path> > auth required pam_deny.so > > > Thank you this helps.
(Disregard my previous mail, Selva is on a far better track!) > I'm using Fedora > I'm guessing the pam_*.so file needs to be with the rest of the pam_*.so > files. > I found the pam_*.so files in /usr/lib/security/ Yes, this is correct. But perhaps /usr/lib64/security/ ... The PAM modules on Fedora/RHEL are named pam_*.so > > I don't see pam_ldap.so I don't see an option to install it either with > "dnf list pam_*" > I think I may be looking more for a winbind option anyways like I use > for freeradius. > But I don't see anything relevant. As you are on Fedora, try looking into SSSD instead. This provides a safer approach which also allows you to have a local copy of hashed passwords of user(s) who have logged into the computer. This is especially useful when you configure this on laptops. This way you'll have a way to authenticate users if the LDAP server is unavailable. Both SSSD and FreeIPA have some reasonable documentation on how to configure /etc/sssd/sssd.conf locally. And you will need to play a bit with authconfig as well, to enable sssd in PAM. This way you don't need to hack to much around with your own PAM config. -- kind regards, David Sommerseth OpenVPN Technologies, Inc
signature.asc
Description: OpenPGP digital signature
------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, SlashDot.org! http://sdm.link/slashdot
_______________________________________________ Openvpn-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/openvpn-users
