nss-pam-ldapd
nss-pam-ldapd copied to clipboard
Is it possible to retrieve an LDAP specific attribute and make it available for other pam module ?
I was wondering if it's possible to retrieve an LDAP specific attribute and make it available to a further pam module.
It could be useful if we need to check for a specific value before accepting the authentication for example. In my mind this verification could be done in a custom pam_script or pam_exec.
This is really similar to the question I came here to ask, which is "can we support U2F public keys?" ... this is actually a more versatile solution, as if you can present other LDAP attributes to PAM then you can basically support U2F devices right there.
In theory it would be possible for a PAM module to set environment variables with pam_putenv() but I'm not 100% sure the values can be passed through to different PAM modules. This is currently not implemented in nss-pam-ldapd though.