UnboundID LDAP SDK를 사용하여 사용자 ID와 LDAP에서 DN을 얻는 방법을 사용자의 (하나 이상이 될 수 있음) 당신이 볼 수 있듯이 내가 UnboundID LDAP SDK를 사용하고 있습니다 :나는 DN을 얻으려고
public String getCustomerAdminDN(String uid)
{
String result =null;
String filter = "uid=" +uid;
try {
SearchResult searchResult = this.ldapConnection.search("",SearchScope.SUB,filter);
result = searchResult.getMatchedDN();
} catch (LDAPSearchException e) {
throw new RuntimeException("Error in the searching query :" + e.getMessage());
}
return result;
}
이의 내 UID가 머리