Using Kerberos keytab to authenticate LDAP resolver with idp 4.0.x
This is a quick write-up for using Kerberos keytab to authenticate LDAP resolver with idp 4.0.x,
along with the configuration comparison with idp 3.4.x.
Special thanks to Daniel Fisher for making this possible.
Summary
In jaas.conf, change from com.sun.security.jgss.initiate to GSSAPIBindRequest
In attribute-resolver.conf, change from LDAPProperty to SASLConfig
Our java parameters for this look like,
-Djavax.security.auth.useSubjectCredsOnly=false
-Djava.security.auth.login.config=${CONF_PATH}/jaas.conf
-Djava.security.krb5.conf=/etc/krb5.conf
Configuration differences between v3 and v4
idp/config | v3.4.x | v4.0.x |
|---|---|---|
jaas.conf | com.sun.security.jgss.initiate { | GSSAPIBindRequest { |
attribute-resolver.xml | <DataConnector id="suLDAP" xsi:type="LDAPDirectory" <LDAPProperty name="javax.security.sasl.qop" | <DataConnector id="suLDAP" xsi:type="LDAPDirectory" <SASLConfig mechanism="GSSAPI" > |
|
|
|