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

getUserName() returns the input username and not the correct name #5

Open
Horcrux7 opened this issue Jun 7, 2013 · 0 comments
Open

Comments

@Horcrux7
Copy link

Horcrux7 commented Jun 7, 2013

The method UnixUser.getUserName() returns the same string that was pass in the method PAM.authenticate(). That the writing depends from the input. Expected is the right writing of the USER from pamlib.

A possible fix can be to replace the line:

return new UnixUser(userName,pwd);

with:

return new UnixUser(pwd.getPwName(),pwd);

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

1 participant