kohsuke / libpam4j

libpam4j
http://libpam4j.kohsuke.org/
MIT License
44 stars 47 forks source link

Not able to authenticate when service is running in non-root privileges. #27

Open CodingEarth opened 4 years ago

CodingEarth commented 4 years ago

Hi, My application is running under non-root privileges and when we are trying to authenticate the root user we are getting this exception.

org.jvnet.libpam.PAMException: pam_authenticate failed : Authentication failure at org.jvnet.libpam.PAM.check(PAM.java:110) ~[libpam4j-1.11.jar:?] at org.jvnet.libpam.PAM.authenticate(PAM.java:128) ~[libpam4j-1.11.jar:?]

Thank you in advance.