I'm using GSSAPI in Java in order to login to an LDAP server using Kerberos authentication. I'm a newbie to Kerberos, so I'm sorry if this is an obvious question, but I couldn't find anything clear enough on the internet.
I perform the following steps:
- Define Login configuration by setting the system property
"java.security.auth.login.config"
to the configuration file path. - Call
LoginContext.login()
with the name of the configuration and a self defined callback handler - In case login succeeded, "pretend to be" the subject (by using
Subject.doAs()
), and connect to the LDAP server by creating a newInitialLDAPContext
with the appropriate environment variables.
Now, My problem is I don't understand which step correlates to which kerberos action? Is it correct to say that after the login action I only have a TGT? When do I get the service specific ticket?
Thanks, Dikla