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

Env vars not set correctly #1

Open
marcelhollerbach opened this issue Sep 11, 2015 · 1 comment
Open

Env vars not set correctly #1

marcelhollerbach opened this issue Sep 11, 2015 · 1 comment

Comments

@marcelhollerbach
Copy link

Hi, I am using your pam-auth module, I have one problem, env vars set by a pam_module are not available in the process,

for example in pam_systemd, pam_misc_setenv(... "XDG_SESSION_ID" ...) I am never seeing this envvar in my process, but pam_systemd has called it.
Ref: https://github.com/systemd/systemd/blob/master/src/login/pam_systemd.c#L445

Any idea why this could happen? Or where I should search what is going wrong?

@1wilkens
Copy link
Owner

Hey, sorry for the late response.

To be honest I created this module without any prior knowledge of PAM and just tried to get basic authentication working. I took inspiration from https://github.com/gsingh93/display-manager and was happy enough when I was able to open a session.

That said I am not 100% sure whether it is the module's responsibility to manage environment variables. All the code does is call pam_putenv(..) to set the basic user variables which should do the same thing as pam_misc_setenv (see: http://linux.die.net/man/3/pam_misc_setenv). Could it be an issue with the pam.d file of your application?

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

2 participants