public class LdapManager extends Object
| Modifier and Type | Class and Description |
|---|---|
protected class |
LdapManager.DirContextHolder |
| Modifier and Type | Field and Description |
|---|---|
protected ThreadLocal<LdapManager.DirContextHolder> |
contextLocal |
protected boolean |
isBind |
| Constructor and Description |
|---|
LdapManager() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
addGroupAttributes(BasicAttributes entry,
Group group,
FessConfig fessConfig) |
protected void |
addRoleAttributes(BasicAttributes entry,
Role user,
FessConfig fessConfig) |
protected void |
addUserAttributes(BasicAttributes entry,
User user,
FessConfig fessConfig) |
void |
apply(Group group) |
void |
apply(User user) |
boolean |
changePassword(String username,
String password) |
protected Hashtable<String,String> |
createAdminEnv() |
protected Hashtable<String,String> |
createEnvironment(String initialContextFactory,
String securityAuthentication,
String providerUrl,
String principal,
String credntials) |
protected LdapUser |
createLdapUser(String username,
Hashtable<String,String> env) |
protected Hashtable<String,String> |
createSearchEnv() |
protected Hashtable<String,String> |
createSearchEnv(String username,
String password) |
void |
delete(Group group) |
void |
delete(Role role) |
protected void |
delete(String entryDN,
Supplier<Hashtable<String,String>> envSupplier) |
void |
delete(User user) |
protected List<Object> |
getAttributeValueList(List<SearchResult> result,
String name) |
protected LdapManager.DirContextHolder |
getDirContext(Supplier<Hashtable<String,String>> envSupplier) |
String[] |
getRoles(LdapUser ldapUser,
String bindDn,
String accountFilter) |
void |
insert(Group group) |
void |
insert(Role role) |
protected void |
insert(String entryDN,
Attributes entry,
Supplier<Hashtable<String,String>> envSupplier) |
void |
insert(User user) |
org.dbflute.optional.OptionalEntity<FessUser> |
login(String username) |
org.dbflute.optional.OptionalEntity<FessUser> |
login(String username,
String password) |
protected void |
modify(String dn,
List<ModificationItem> modifyList,
Supplier<Hashtable<String,String>> envSupplier) |
protected void |
modifyAddEntry(List<ModificationItem> modifyList,
String name,
String value) |
protected void |
modifyDeleteEntry(List<ModificationItem> modifyList,
String name,
Object value) |
protected void |
modifyGroupAttributes(Group group,
Supplier<Hashtable<String,String>> adminEnv,
String entryDN,
List<SearchResult> result,
FessConfig fessConfig) |
protected void |
modifyReplaceEntry(List<ModificationItem> modifyList,
String name,
String value) |
protected void |
modifyUserAttributes(User user,
Supplier<Hashtable<String,String>> adminEnv,
String userDN,
List<SearchResult> result,
FessConfig fessConfig) |
protected void |
processSearchRoles(List<SearchResult> result,
BiConsumer<String,String> consumer) |
protected void |
search(String baseDn,
String filter,
String[] returningAttrs,
Supplier<Hashtable<String,String>> envSupplier,
org.codelibs.fess.ldap.LdapManager.SearcConsumer consumer) |
protected void |
setAttributeValue(List<SearchResult> result,
String name,
Consumer<Object> consumer) |
void |
updateConfig() |
protected boolean |
validate() |
protected ThreadLocal<LdapManager.DirContextHolder> contextLocal
protected volatile boolean isBind
protected Hashtable<String,String> createEnvironment(String initialContextFactory, String securityAuthentication, String providerUrl, String principal, String credntials)
protected Hashtable<String,String> createSearchEnv(String username, String password)
public void updateConfig()
protected boolean validate()
protected void processSearchRoles(List<SearchResult> result, BiConsumer<String,String> consumer) throws NamingException
NamingExceptionprotected void setAttributeValue(List<SearchResult> result, String name, Consumer<Object> consumer)
protected List<Object> getAttributeValueList(List<SearchResult> result, String name)
public void apply(User user)
public void insert(User user)
protected void modifyUserAttributes(User user, Supplier<Hashtable<String,String>> adminEnv, String userDN, List<SearchResult> result, FessConfig fessConfig)
protected void addUserAttributes(BasicAttributes entry, User user, FessConfig fessConfig)
public void delete(User user)
public void insert(Role role)
protected void addRoleAttributes(BasicAttributes entry, Role user, FessConfig fessConfig)
public void delete(Role role)
public void apply(Group group)
public void insert(Group group)
protected void modifyGroupAttributes(Group group, Supplier<Hashtable<String,String>> adminEnv, String entryDN, List<SearchResult> result, FessConfig fessConfig)
protected void addGroupAttributes(BasicAttributes entry, Group group, FessConfig fessConfig)
public void delete(Group group)
protected void insert(String entryDN, Attributes entry, Supplier<Hashtable<String,String>> envSupplier)
protected void search(String baseDn, String filter, String[] returningAttrs, Supplier<Hashtable<String,String>> envSupplier, org.codelibs.fess.ldap.LdapManager.SearcConsumer consumer)
protected void modifyAddEntry(List<ModificationItem> modifyList, String name, String value)
protected void modifyReplaceEntry(List<ModificationItem> modifyList, String name, String value)
protected void modifyDeleteEntry(List<ModificationItem> modifyList, String name, Object value)
protected void modify(String dn, List<ModificationItem> modifyList, Supplier<Hashtable<String,String>> envSupplier)
protected LdapManager.DirContextHolder getDirContext(Supplier<Hashtable<String,String>> envSupplier)
Copyright © 2009–2017 CodeLibs. All rights reserved.