This bit of java code will allow you to authenticate with kerberos against an Active Directory domain.