On Sat, Dec 17, 2016 at 5:46 PM, Selva Nair <[email protected]> wrote:

> 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
>
>
Thank you this helps.

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/

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.




> 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

Reply via email to