LDAP连接SASL

huangapple 未分类评论59阅读模式
标题翻译

LDAP connect SASL

问题

我有以下代码,它能够正常工作。

  1. Hashtable env = new Hashtable();
  2. env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
  3. env.put(Context.SECURITY_AUTHENTICATION, "Simple");
  4. env.put(Context.PROVIDER_URL, server);
  5. env.put(Context.SECURITY_PRINCIPAL, user);
  6. env.put(Context.SECURITY_CREDENTIALS, pass);
  7. ctx = new InitialLdapContext(env, null);

但现在我的客户告诉我他们将把安全性更改为SASL。

我应该如何进行更改?我是否需要一个证书?

英文翻译

I have bellow code and it's works.

  1. Hashtable env = new Hashtable();
  2. env.put(Context.INITIAL_CONTEXT_FACTORY, "com.sun.jndi.ldap.LdapCtxFactory");
  3. env.put(Context.SECURITY_AUTHENTICATION, "Simple");
  4. env.put(Context.PROVIDER_URL, server);
  5. env.put(Context.SECURITY_PRINCIPAL, user);
  6. env.put(Context.SECURITY_CREDENTIALS, pass);
  7. 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?

huangapple
  • 本文由 发表于 2020年3月16日 16:11:44
  • 转载请务必保留本文链接:https://java.coder-hub.com/60702366.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定