1

Is there a sensible way to get the *nix PAM rules from Java?

I'm writing an application that has to ensure that passwords adhere to an organizations PAM rules, and I have no idea how to get them in order to adhere to them.

1

1 Answer 1

1

There are already some implementations bringing PAM to Java. For example:

There are also some works around implementations of javax.security.auth.spi.LoginModule for PAM. For example:

You can also relatively easy write your own. In the end you just have to cross the Java-native boundary.

However I'm not sure whether it will solve your problem. Because what seems to be major point here is to check whether password conforms to the rules. I don't know how to do that with PAM. So it is not about doing it from Java but about knowing what to actually do.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.