标题翻译
LDAP connect SASL
问题
我有以下代码,它能够正常工作。
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.SECURITY_AUTHENTICATION, "Simple");
env.put(Context.PROVIDER_URL, server);
env.put(Context.SECURITY_PRINCIPAL, user);
env.put(Context.SECURITY_CREDENTIALS, pass);
ctx = new InitialLdapContext(env, null);
但现在我的客户告诉我他们将把安全性更改为SASL。
我应该如何进行更改?我是否需要一个证书?
英文翻译
I have bellow code and it's works.
Hashtable env = new Hashtable();
env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
env.put(Context.SECURITY_AUTHENTICATION, "Simple");
env.put(Context.PROVIDER_URL, server);
env.put(Context.SECURITY_PRINCIPAL, user);
env.put(Context.SECURITY_CREDENTIALS, pass);
ctx = new InitialLdapContext(env, null);
But now my client told me that they will change his security to SASL.
How can I change it? , will I need a certificate?
专注分享java语言的经验与见解,让所有开发者获益!
评论