Skip to Main Content

Java Security

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

Java Kerberos authentication using Active Directory User Principal Name

user10622254Dec 21 2015 — edited Dec 21 2015

I'm trying to switch from Simple LDAP authentication to GSSAPI authentication.

I'm using Krb5LoginModule to perform the authentication when setting username to user's UPN which looks like user@suffix where suffix is not domain name.

Authentication fails as Krb5LoginModule assumes that the name format is principal@realm.

Is there any option to pass the username which contains @ to the Krb5LoginModule so it will use the full user name without extracting realm from the username?

Using samAccountName works but I don't have user's samAccountName but UPN.

User logon to Windows works using UPN and the only difference I see in the network captures is that during Windows login name-type which is used is KRB5-NT-ENTERPRISE-PRINCIPAL and KerberosString includes full UPN name as opposite to KRB5-NT-PRINCIPAL and KerberosString with truncated UPN name sent by Java.

Comments

Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Jan 18 2016
Added on Dec 21 2015
0 comments
1,700 views