Kerberos

Kerberos Active Directory

http://docs.oracle.com/javase/7/docs/technotes/guides/security/jgss/tutorials/KerberosReq.html

System properties:

If you set values for these properties, then they override the default realm and KDC values specified in krb5.conf.

Interfaces:

Classes:

Sample JAAS config for Krb5LoginModule

https://docs.oracle.com/javase/8/docs/technotes/guides/security/jgss/tutorials/LoginConfigFile.html https://docs.oracle.com/javase/8/docs/technotes/guides/security/jgss/tutorials/AcnOnly.html

File jaas.conf:

JaasSample { com.sun.security.auth.module.Krb5LoginModule required; };

Sample Java ...

LoginContext lc = new LoginContext("JaasSample",   new TextCallbackHandler());

* java -Djava.security.krb5.realm=<your_realm> -Djava.security.krb5.kdc=<your_kdc> -Djava.security.auth.login.config=jaas.conf JaasAcn

Java/Kerberos (last edited 2015-04-24 21:44:43 by 188)