LdapContext ctx = LDAPLogin(“cn=xxxxx, ou=xx, ou=xx, o=xxxx”, “password”, “ldap://ldap.mycompany.com:389″);
……
NamingEnumeration ne = ctx.search(“”,”(&(objectclass=person)(cn=” + doc.getItemValueString(“Mod_Remote_User”) + “))”, constraints);
……
ne.close();
ctx.close();ide
这样我就安心了。代理