A simple custom AuthScheme example. The included auth scheme is meant
for demonstration purposes only. It does not actually implement a usable
authentication method.
Login Configuration file bcsLogin.conf for JAAS.
-----------------------------------------------
com.sun.security.jgss.initiate {
com.sun.security.auth.module.Krb5LoginModule
required
client=TRUE
useTicketCache="true"
ticketCache="${user.krb5cc}"
debug=true;
};
com.sun.security.jgss.accept {
com.sun.security.auth.module.Krb5LoginModule
required
client=TRUE
useTicketCache="true"
ticketCache="${user.krb5cc}"
debug=true;
};
-----------------------------------------------
java -Djava.security.krb5.realm=REALM \
-Djava.security.krb5.kdc=kdc.domain \
-Djavax.security.auth.useSubjectCredsOnly=false \
-Djava.security.auth.login.config=src/conf/bcsLogin.conf \
-Duser.krb5cc="$KRB5CCNAME" \
-classpath $CP \
CustomAuthenticationNegotiateExample "http://localhost/gsstest/"
|