Hi,
On Sat, Dec 17, 2016 at 5:57 PM, Jeff Sadowski <[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
You will also need account line(s) depending on who to allow/deny --
account is checked after a successful auth. Openvpn pam plugin does not use
pam password and session management.
The above is just an example and may not be suitable for your setup. Check
pam docs.
Selva
------------------------------------------------------------------------------
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