java - "No common protection layer between client and server" error when connecting to LDAP using GSSAPI I got -
when connecting ldap using gssapi
hashtable<string, string> env = new hashtable<>(); env.put(context.initial_context_factory, ldapctxfactory.class.getname()); // must use qualified hostname env.put(context.provider_url, ldapuri); // request use of "gssapi" sasl mechanism // authenticate using established kerberos credentials env.put(context.security_authentication, "gssapi");
i got
javax.security.sasl.saslexception: no common protection layer between client , server @ com.sun.security.sasl.gsskerb.gsskrb5client.dofinalhandshake(gsskrb5client.java:251) ~[na:1.8.0_40] @ com.sun.security.sasl.gsskerb.gsskrb5client.evaluatechallenge(gsskrb5client.java:186) ~[na:1.8.0_40] @ com.sun.jndi.ldap.sasl.ldapsasl.saslbind(ldapsasl.java:133) ~[na:1.8.0_40]
you have specify qop
env.put("javax.security.sasl.qop", "auth-conf");
Comments
Post a Comment