public class LdapHelper
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
DIRECTORY_ROOT_DN |
Constructor and Description |
---|
LdapHelper() |
Modifier and Type | Method and Description |
---|---|
static void |
addLdapEntry(org.apache.directory.ldap.client.api.LdapConnection ldapCon,
org.apache.directory.api.ldap.model.entry.Entry ldapEntry) |
static org.apache.directory.ldap.client.api.LdapConnection |
connectConfigDirectory(ItemValue<Server> ldapHost) |
static org.apache.directory.ldap.client.api.LdapConnection |
connectDirectory(ItemValue<Server> ldapHost) |
static void |
deleteTree(org.apache.directory.ldap.client.api.LdapConnection ldapCon,
java.lang.String dn) |
static java.util.List<org.apache.directory.api.ldap.model.entry.Entry> |
getLdapEntryFromUid(org.apache.directory.ldap.client.api.LdapConnection ldapCon,
ItemValue<Domain> domain,
java.lang.String uid,
java.lang.String... attrs) |
static void |
modifyLdapEntry(org.apache.directory.ldap.client.api.LdapConnection ldapCon,
org.apache.directory.api.ldap.model.message.ModifyRequest modifyRequest) |
public static final java.lang.String DIRECTORY_ROOT_DN
public static org.apache.directory.ldap.client.api.LdapConnection connectDirectory(ItemValue<Server> ldapHost) throws ServerFault
ServerFault
public static org.apache.directory.ldap.client.api.LdapConnection connectConfigDirectory(ItemValue<Server> ldapHost) throws ServerFault
ServerFault
public static void addLdapEntry(org.apache.directory.ldap.client.api.LdapConnection ldapCon, org.apache.directory.api.ldap.model.entry.Entry ldapEntry) throws ServerFault
ServerFault
public static void deleteTree(org.apache.directory.ldap.client.api.LdapConnection ldapCon, java.lang.String dn) throws ServerFault
ServerFault
public static java.util.List<org.apache.directory.api.ldap.model.entry.Entry> getLdapEntryFromUid(org.apache.directory.ldap.client.api.LdapConnection ldapCon, ItemValue<Domain> domain, java.lang.String uid, java.lang.String... attrs) throws org.apache.directory.api.ldap.model.exception.LdapException, org.apache.directory.api.ldap.model.cursor.CursorException
org.apache.directory.api.ldap.model.exception.LdapException
org.apache.directory.api.ldap.model.cursor.CursorException
public static void modifyLdapEntry(org.apache.directory.ldap.client.api.LdapConnection ldapCon, org.apache.directory.api.ldap.model.message.ModifyRequest modifyRequest) throws ServerFault
ServerFault
Copyright © 2021. All Rights Reserved.