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

PAM ENV variables for auth script #18

Open
GoogleCodeExporter opened this issue Mar 24, 2015 · 0 comments
Open

PAM ENV variables for auth script #18

GoogleCodeExporter opened this issue Mar 24, 2015 · 0 comments

Comments

@GoogleCodeExporter
Copy link

Hi!

I'm trying for 2 days now to write a custom PAM script which authenticates with 
sys user and pass.
I made examples in C, python and perl but I have the same problem with all of 
them.

When I test the script in my shell everything works well.
I test them with 

# ./script;echo $?

And get 0 or 1 back.

But as soon as I try to use it with mod_authz_external and Apache it stops 
working.
Even with a valid user I get an 1 back and are not able to log in.

It seems that there is a problem with PAM and maybe the Apache environment.
I read somewhere that I have to set the environment variables to use PAM but I 
have no clue how.

I attached examples in C, Perl and Python.
Choose whatever you like, they work all the same... returning the exit code 0 
or 1.

Every help or hint would be appreciated!

Thanks!

Original issue reported on code.google.com by [email protected] on 7 Feb 2014 at 11:45

Attachments:

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

No branches or pull requests

1 participant