Package de.xima.fc.ldap
Class LDAPBenutzerUtil
- java.lang.Object
 - 
- de.xima.fc.ldap.LDAPBenutzerUtil
 
 
- 
public class LDAPBenutzerUtil extends Object
 
- 
- 
Constructor Summary
Constructors Constructor Description LDAPBenutzerUtil() 
- 
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static BenutzercheckLDAPGroupsActiveUser(IEntityContext ec, Long clientId, String userLogin)static booleancheckLDAPLogin(IEntityContext ec, LDAPGruppe gruppe, String userLogin, String userPwd)static booleancheckLDAPLogin(IEntityContext ec, Mandant man, String userLogin, String userPwd)static List<String>getAttributesFromUser(MandantLdapData mandantLdapData, LDAPGruppe ldapGroup, String attribute)Returns a list of values of the passed attribute for the LDAP groupstatic BenutzergetByLDAPData(IEntityContext ec, Mandant man, String userName, byte[] objectId)static LDAPBenutzergetLDAPGruppeBenutzer(IEntityContext ec, LDAPGruppe gruppe, String userLogin)static BenutzergetLDAPGruppeBenutzer(IEntityContext ec, Mandant man, String userLogin)static BenutzergetLDAPGruppeBenutzerByLogin(IEntityContext ec, Mandant man, String userLogin, String userPwd)static LDAPBenutzergetLDAPUser(com.unboundid.ldap.sdk.LDAPConnection con, String baseDN, String filter, String userLogin)static com.alibaba.fastjson.JSONObjectgetLDAPUserData(Benutzer ben)static List<LDAPBenutzer>getLDAPUsers(MandantLdapData ldapData)static List<LDAPBenutzer>getLDAPUsers(MandantLdapData ldapData, com.unboundid.ldap.sdk.Filter filter)static booleanisLDAPUserActive(IEntityContext ec, Mandant client, String userLogin)static LDAPBenutzermergeLDAPGroupData(LDAPBenutzer ben, Mandant man, List<LDAPGruppe> grpList)static FCMessagetestBenutzerSearch(LDAPGruppe gruppe, MandantLdapData data)static FCMessagetestBenutzerSearch(MandantLdapData data)static FCMessagetestBenutzerSearch(String host, int port, String bindDN, String bindPassword, boolean useSSL, Integer hopCount, String baseDN, String filterQuery, int pageSize) 
 - 
 
- 
- 
Method Detail
- 
getLDAPUsers
public static List<LDAPBenutzer> getLDAPUsers(MandantLdapData ldapData) throws Exception
- Throws:
 Exception
 
- 
getLDAPUsers
public static List<LDAPBenutzer> getLDAPUsers(MandantLdapData ldapData, com.unboundid.ldap.sdk.Filter filter) throws Exception
- Throws:
 Exception
 
- 
getAttributesFromUser
public static List<String> getAttributesFromUser(MandantLdapData mandantLdapData, LDAPGruppe ldapGroup, String attribute) throws com.unboundid.ldap.sdk.LDAPException, GeneralSecurityException
Returns a list of values of the passed attribute for the LDAP group- Parameters:
 mandantLdapData-MandantLdapDataProvide information about the LDAP data for theMandantldapGroup-LDAPGruppeProvide information about the LDAP data for the LDAP groupattribute- The LDAP attribute to retrieve- Returns:
 Listof values of the attribute- Throws:
 GeneralSecurityException- General Security related Exceptioncom.unboundid.ldap.sdk.LDAPException- If the provided filter string cannot be parsed as an LDAP filter.
 
- 
getLDAPUserData
public static com.alibaba.fastjson.JSONObject getLDAPUserData(Benutzer ben)
 
- 
getLDAPUser
public static LDAPBenutzer getLDAPUser(com.unboundid.ldap.sdk.LDAPConnection con, String baseDN, String filter, String userLogin) throws com.unboundid.ldap.sdk.LDAPException
- Throws:
 com.unboundid.ldap.sdk.LDAPException
 
- 
testBenutzerSearch
public static FCMessage testBenutzerSearch(MandantLdapData data) throws Exception
- Throws:
 Exception
 
- 
testBenutzerSearch
public static FCMessage testBenutzerSearch(String host, int port, String bindDN, String bindPassword, boolean useSSL, Integer hopCount, String baseDN, String filterQuery, int pageSize) throws Exception
- Throws:
 Exception
 
- 
testBenutzerSearch
public static FCMessage testBenutzerSearch(LDAPGruppe gruppe, MandantLdapData data) throws Exception
- Throws:
 Exception
 
- 
checkLDAPLogin
public static boolean checkLDAPLogin(IEntityContext ec, LDAPGruppe gruppe, String userLogin, String userPwd)
 
- 
checkLDAPLogin
public static boolean checkLDAPLogin(IEntityContext ec, Mandant man, String userLogin, String userPwd)
 
- 
getLDAPGruppeBenutzer
public static Benutzer getLDAPGruppeBenutzer(IEntityContext ec, Mandant man, String userLogin)
 
- 
getLDAPGruppeBenutzer
public static LDAPBenutzer getLDAPGruppeBenutzer(IEntityContext ec, LDAPGruppe gruppe, String userLogin)
 
- 
getLDAPGruppeBenutzerByLogin
public static Benutzer getLDAPGruppeBenutzerByLogin(IEntityContext ec, Mandant man, String userLogin, String userPwd)
 
- 
mergeLDAPGroupData
public static LDAPBenutzer mergeLDAPGroupData(LDAPBenutzer ben, Mandant man, List<LDAPGruppe> grpList)
 
- 
getByLDAPData
public static Benutzer getByLDAPData(IEntityContext ec, Mandant man, String userName, byte[] objectId)
 
- 
isLDAPUserActive
public static boolean isLDAPUserActive(IEntityContext ec, Mandant client, String userLogin)
- Parameters:
 ec-IEntityContextfor accessing the database.client-Mandantthe clientuserLogin- the login name of the user- Returns:
 - true if the LDAP user active
 
 
- 
checkLDAPGroupsActiveUser
public static Benutzer checkLDAPGroupsActiveUser(IEntityContext ec, Long clientId, String userLogin)
 
 - 
 
 -