public class DefaultLdapUserProvider extends Object implements LdapUserProvider
LdapUserProvider.
With this class you can search for a LdapUser on the LDAP/AD
directory| Constructor and Description |
|---|
DefaultLdapUserProvider(String baseDN,
String searchFilter)
Constructor...
|
DefaultLdapUserProvider(String baseDN,
String searchFilter,
org.apache.shiro.realm.ldap.LdapContextFactory ldapContextFactory)
Constructor...
|
| Modifier and Type | Method and Description |
|---|---|
Optional<LdapUser> |
search(String principal)
The method to call when you need to bind a user in the LDAP/AD repository
|
void |
setLdapContextFactory(org.apache.shiro.realm.ldap.LdapContextFactory ldapContextFactory)
The Shiro
LdapContextFactory to use for creating connections to
the LDAP/AD repository in this provider |
public DefaultLdapUserProvider(String baseDN, String searchFilter)
baseDN - the base DN account searchsearchFilter - the search fielter to be usedpublic DefaultLdapUserProvider(String baseDN, String searchFilter, org.apache.shiro.realm.ldap.LdapContextFactory ldapContextFactory)
baseDN - the base DN account searchsearchFilter - the search fielter to be usedldapContextFactory - Shiro LdapContextFactory to be used to
get LDAP/AD connectionspublic Optional<LdapUser> search(String principal)
search in interface LdapUserProviderprincipal - public void setLdapContextFactory(org.apache.shiro.realm.ldap.LdapContextFactory ldapContextFactory)
LdapContextFactory to use for creating connections to
the LDAP/AD repository in this providersetLdapContextFactory in interface LdapUserProviderldapContextFactory - Copyright © 2018 Arthur Gregorio. All rights reserved.