JNDI ldap使用userPrincipalName的原理是什么
http://www.cnblogs.com/haore147/p/4806485.html
Hashtable HashEnv = new Hashtable();
String LDAP_URL = "ldap://192.168.1.***:389";
String adminName = "Administrator@***.cn";
String adminPassword = "****";
HashEnv.put(Context.SECURITY_AUTHENTICATION, "simple");
HashEnv.put(Context.SECURITY_PRINCIPAL, adminName);
而通常的用法是设置DN,JNDI是直接把userPrincipalName发给LDAP服务器的么?
有或者是怎么把userPrincipalName(即Administrator@***.cn)转化为DN(即CN=张三,CN=Users,DC=microsoft,DC=com'的?