Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Is it possible to retrieve an LDAP specific attribute and make it available for other pam module ? #47

Open
Mixlu101 opened this issue Jun 18, 2021 · 2 comments

Comments

@Mixlu101
Copy link

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.

@gregharvey
Copy link

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.

@arthurdejong
Copy link
Owner

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants