if (variable == null || !LDAPCitizen.ATTRMAP_C.containsKey(variable)) {
_zone.log().error("LDAPRealm doesn't support search for: "+variable);
return null;
}
PooledConnection connImpl = null;
DirContext ctx = null;
ArrayList result = new ArrayList();
try {
connImpl = getConnection();
ctx = (DirContext)connImpl.getConnection();
String search = "("+LDAPCitizen.ATTRMAP_C.get(variable)+"="+value+")";
SearchControls sc = new SearchControls();
sc.setReturningAttributes(new String[] { "uid" });
NamingEnumeration enu = ctx.search("ou=users", search, sc);