public class LDAPDataUtil extends Object
| Constructor and Description |
|---|
LDAPDataUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getAttributeList(com.unboundid.ldap.sdk.LDAPConnection connection,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
Integer pageSize,
com.unboundid.ldap.sdk.Filter filter,
String attribute)
Returns a list of values of the passed attribute.
|
static List<String> |
getDNResultList(com.unboundid.ldap.sdk.SearchResult res) |
static byte[] |
getObjectID(com.unboundid.ldap.sdk.SearchResultEntry entry) |
static String |
getObjectIDAsString(com.unboundid.ldap.sdk.SearchResultEntry entry) |
static com.unboundid.ldap.sdk.Attribute |
getObjectIDAttribute(com.unboundid.ldap.sdk.SearchResultEntry entry) |
static int |
getTotalCount(com.unboundid.ldap.sdk.LDAPConnection con,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
Integer pageSize,
com.unboundid.ldap.sdk.Filter filter,
String... attributes) |
static int |
getTotalCount(com.unboundid.ldap.sdk.LDAPConnection con,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
Integer pageSize,
String filter,
String... attributes) |
static com.unboundid.ldap.sdk.Attribute |
getUserLoginAttribute(com.unboundid.ldap.sdk.SearchResultEntry entry) |
static com.alibaba.fastjson.JSONArray |
searchJSON(com.unboundid.ldap.sdk.LDAPConnection con,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
Integer pageSize,
com.unboundid.ldap.sdk.Filter filter,
String... attributes) |
static com.alibaba.fastjson.JSONArray |
searchJSON(com.unboundid.ldap.sdk.LDAPConnection con,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
Integer pageSize,
String filter,
String... attributes) |
static List<LDAPBenutzer> |
searchLDAPBenutzer(com.unboundid.ldap.sdk.LDAPConnection con,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
Integer pageSize,
com.unboundid.ldap.sdk.Filter filter,
String... attributes) |
static List<LDAPBenutzer> |
searchLDAPBenutzer(com.unboundid.ldap.sdk.LDAPConnection con,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
Integer pageSize,
String filter,
String... attributes) |
static List<String> |
searchLDAPGroups(LDAPGruppe gruppe,
MandantLdapData data) |
static com.alibaba.fastjson.JSONObject |
searchSingelJSON(com.unboundid.ldap.sdk.LDAPConnection con,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
com.unboundid.ldap.sdk.Filter filter,
String... attributes) |
static com.alibaba.fastjson.JSONObject |
searchSingelJSON(com.unboundid.ldap.sdk.LDAPConnection con,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
String filter,
String... attributes) |
public static com.alibaba.fastjson.JSONArray searchJSON(com.unboundid.ldap.sdk.LDAPConnection con,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
Integer pageSize,
String filter,
String... attributes)
throws com.unboundid.ldap.sdk.LDAPException,
com.alibaba.fastjson.JSONException
com.unboundid.ldap.sdk.LDAPExceptioncom.alibaba.fastjson.JSONExceptionpublic static com.alibaba.fastjson.JSONArray searchJSON(com.unboundid.ldap.sdk.LDAPConnection con,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
Integer pageSize,
com.unboundid.ldap.sdk.Filter filter,
String... attributes)
throws com.unboundid.ldap.sdk.LDAPException,
com.alibaba.fastjson.JSONException
com.unboundid.ldap.sdk.LDAPExceptioncom.alibaba.fastjson.JSONExceptionpublic static com.alibaba.fastjson.JSONObject searchSingelJSON(com.unboundid.ldap.sdk.LDAPConnection con,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
String filter,
String... attributes)
throws com.unboundid.ldap.sdk.LDAPException,
com.alibaba.fastjson.JSONException
com.unboundid.ldap.sdk.LDAPExceptioncom.alibaba.fastjson.JSONExceptionpublic static com.alibaba.fastjson.JSONObject searchSingelJSON(com.unboundid.ldap.sdk.LDAPConnection con,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
com.unboundid.ldap.sdk.Filter filter,
String... attributes)
throws com.unboundid.ldap.sdk.LDAPException,
com.alibaba.fastjson.JSONException
com.unboundid.ldap.sdk.LDAPExceptioncom.alibaba.fastjson.JSONExceptionpublic static List<LDAPBenutzer> searchLDAPBenutzer(com.unboundid.ldap.sdk.LDAPConnection con, String baseDN, com.unboundid.ldap.sdk.SearchScope scope, Integer pageSize, String filter, String... attributes) throws com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPExceptionpublic static List<LDAPBenutzer> searchLDAPBenutzer(com.unboundid.ldap.sdk.LDAPConnection con, String baseDN, com.unboundid.ldap.sdk.SearchScope scope, Integer pageSize, com.unboundid.ldap.sdk.Filter filter, String... attributes) throws com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPExceptionpublic static List<String> getAttributeList(com.unboundid.ldap.sdk.LDAPConnection connection, String baseDN, com.unboundid.ldap.sdk.SearchScope scope, Integer pageSize, com.unboundid.ldap.sdk.Filter filter, String attribute) throws com.unboundid.ldap.sdk.LDAPException
connection - the current LDAPConnectionbaseDN - The base DN for the search request. It must not be null.scope - The scope that specifies the range of entries that should be examined for the search.pageSize - Size of a pagefilter - The string representation of the filter to use to identify matching entries. It must not be null.attribute - The LDAP attribute to retrievecom.unboundid.ldap.sdk.LDAPException - If the provided filter string cannot be parsed as an LDAP filter.public static List<String> searchLDAPGroups(LDAPGruppe gruppe, MandantLdapData data) throws com.unboundid.ldap.sdk.LDAPException, GeneralSecurityException
com.unboundid.ldap.sdk.LDAPExceptionGeneralSecurityExceptionpublic static com.unboundid.ldap.sdk.Attribute getUserLoginAttribute(com.unboundid.ldap.sdk.SearchResultEntry entry)
public static int getTotalCount(com.unboundid.ldap.sdk.LDAPConnection con,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
Integer pageSize,
String filter,
String... attributes)
throws com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPExceptionpublic static int getTotalCount(com.unboundid.ldap.sdk.LDAPConnection con,
String baseDN,
com.unboundid.ldap.sdk.SearchScope scope,
Integer pageSize,
com.unboundid.ldap.sdk.Filter filter,
String... attributes)
throws com.unboundid.ldap.sdk.LDAPException
com.unboundid.ldap.sdk.LDAPExceptionpublic static String getObjectIDAsString(com.unboundid.ldap.sdk.SearchResultEntry entry)
public static com.unboundid.ldap.sdk.Attribute getObjectIDAttribute(com.unboundid.ldap.sdk.SearchResultEntry entry)
public static byte[] getObjectID(com.unboundid.ldap.sdk.SearchResultEntry entry)
Copyright © 2020 XIMA MEDIA GmbH. All rights reserved.