public class LdapUtils
extends java.lang.Object
Constructor and Description |
---|
LdapUtils(javax.naming.directory.DirContext ctx,
java.lang.String baseDn) |
Modifier and Type | Method and Description |
---|---|
java.util.List<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> |
getAttributes(java.lang.String filter,
java.lang.String query,
java.lang.String[] attributes)
Search ldap attributes using the given filter/query
|
public LdapUtils(javax.naming.directory.DirContext ctx, java.lang.String baseDn)
public java.util.List<java.util.Map<java.lang.String,java.util.List<java.lang.String>>> getAttributes(java.lang.String filter, java.lang.String query, java.lang.String[] attributes) throws javax.naming.NamingException
filter
- ldap filter where %q is replaced by queryquery
- replaces %q in filterattributes
- the searched attributes (only first value is returned)javax.naming.NamingException
Copyright © 2021. All Rights Reserved.