setDefaultTimeLimitwhich "Set the default time limit be used in searches if not explicitly specified."
1ms but we are not getting the expected
javax.naming.directory.SearchControlsbut it seems not to work
This seems to work:
final Map<String, Object> baseEnv = new Hashtable<>(); baseEnv.put("com.sun.jndi.ldap.connect.timeout", "5000"); baseEnv.put("com.sun.jndi.ldap.read.timeout", "5000"); final LdapContextSource ldapContextSource = new LdapContextSource(); ldapContextSource.setBaseEnvironmentProperties(baseEnv);
if I pass this to the
LdapTemplate I get connect/read timeouts eventually.
LdapTemplate#setDefaultTimeLimitdoes not seem to do anything.
Hey guys, I don't know if you already have a problem looking on the LDAP server, an attribute called 'memberOf', I can't get any results by doing this type of filter:
(& (objectClass = user) (MemberOf ~ = GS_Customer_Registration_CO))
This user has this specification:
cn = GS_Customer_Registration_CO, OU = Groups, OU = Informatica - ICT, OU = Central Workshop, DC = co, DC = example, DC = com
'' LdapQuery ldapQuery = query() .searchScope(SearchScope.SUBTREE) .where("objectClass").is("user") .and("memberOf").like("GS_Customer_Re*"); ''
I'm using the spring criteria above:
But I can't bring any results, does anyone know about it or have you had any problems of this kind?