Class LDAPBenutzerUtil

java.lang.Object
de.xima.fc.ldap.LDAPBenutzerUtil

@Deprecated public class LDAPBenutzerUtil extends Object
Deprecated.
  • Constructor Details

    • LDAPBenutzerUtil

      public LDAPBenutzerUtil()
      Deprecated.
  • Method Details

    • 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
      Deprecated.
      Throws:
      Exception
    • getAttributesFromUser

      public static List<String> getAttributesFromUser(MandantLdapData mandantLdapData, LDAPGruppe ldapGroup, String attribute) throws com.unboundid.ldap.sdk.LDAPException, GeneralSecurityException
      Deprecated.
      Returns a list of values of the passed attribute for the LDAP group User management has been reworked in version 8.0.0.
      Parameters:
      mandantLdapData - MandantLdapData Provide information about the LDAP data for the Mandant
      ldapGroup - LDAPGruppe Provide information about the LDAP data for the LDAP group
      attribute - The LDAP attribute to retrieve
      Returns:
      List of values of the attribute
      Throws:
      GeneralSecurityException - General Security related Exception
      com.unboundid.ldap.sdk.LDAPException - If the provided filter string cannot be parsed as an LDAP filter.
    • getLDAPUsers

      public static List<LDAPBenutzer> getLDAPUsers(MandantLdapData ldapData) throws Exception
      Deprecated.
      User management has been reworked in version 8.0.0.
      Throws:
      Exception
    • getLDAPUsers

      public static List<LDAPBenutzer> getLDAPUsers(MandantLdapData ldapData, com.unboundid.ldap.sdk.Filter filter) throws Exception
      Deprecated.
      User management has been reworked in version 8.0.0.
      Throws:
      Exception
    • getLDAPUserData

      public static com.alibaba.fastjson.JSONObject getLDAPUserData(Benutzer ben)
      Deprecated.
      User management has been reworked in version 8.0.0.
    • getLDAPUser

      public static LDAPBenutzer getLDAPUser(com.unboundid.ldap.sdk.LDAPConnection con, String baseDN, String filter, String userLogin) throws com.unboundid.ldap.sdk.LDAPException
      Deprecated.
      The user management has been reworked in version 8.0.0.
      Throws:
      com.unboundid.ldap.sdk.LDAPException
    • getLDAPGruppeBenutzer

      public static Benutzer getLDAPGruppeBenutzer(IEntityContext ec, Mandant man, String userLogin)
      Deprecated.
      The user management has been reworked in version 8.0.0.
    • getLDAPGruppeBenutzer

      public static LDAPBenutzer getLDAPGruppeBenutzer(IEntityContext ec, LDAPGruppe gruppe, String userLogin)
      Deprecated.
      The user management has been reworked in version 8.0.0.
    • getLDAPGruppeBenutzerByLogin

      public static Benutzer getLDAPGruppeBenutzerByLogin(IEntityContext ec, Mandant man, String userLogin, String userPwd)
      Deprecated.
      The user management has been reworked in version 8.0.0.
    • getByLDAPData

      public static Benutzer getByLDAPData(IEntityContext ec, Mandant man, String userName, byte[] objectId)
      Deprecated.
      User management has been reworked. Users may have multiple identities to sign in with.
    • isLDAPUserActive

      public static boolean isLDAPUserActive(IEntityContext ec, Mandant client, String userLogin)
      Deprecated.
      MandantLdapData has been deprecated in version 8.0.0
      Parameters:
      ec - IEntityContext for accessing the database.
      client - Mandant the client
      userLogin - the login name of the user
      Returns:
      true if the LDAP user active
    • testBenutzerSearch

      public static FCMessage testBenutzerSearch(MandantLdapData data) throws Exception
      Deprecated.
      MandantLdapData has been deprecated in version 8.0.0
      Throws:
      Exception
    • testBenutzerSearch

      public static FCMessage testBenutzerSearch(LDAPGruppe gruppe, MandantLdapData data) throws Exception
      Deprecated.
      LDAPGruppe have been deprecated in version 8.0.0
      Throws:
      Exception
    • checkLDAPLogin

      public static boolean checkLDAPLogin(IEntityContext ec, LDAPGruppe gruppe, String userLogin, String userPwd)
      Deprecated.
      LDAPGruppe has been deprecated in version 8.0.0
    • checkLDAPGroupsActiveUser

      public static Benutzer checkLDAPGroupsActiveUser(IEntityContext ec, Long clientId, String userLogin)
      Deprecated.
      The user management has been reworked in version 8.0.0.
    • checkLDAPLogin

      public static boolean checkLDAPLogin(IEntityContext ec, Mandant man, String userLogin, String userPwd)
      Deprecated.
      MandantLdapData has been deprecated in version 8.0.0
    • mergeLDAPGroupData

      public static LDAPBenutzer mergeLDAPGroupData(LDAPBenutzer ben, Mandant man, List<LDAPGruppe> grpList)
      Deprecated.
      Adds all user groups and roles from the given LDAP groups to the user.
      Parameters:
      ben - LDAP user to modify.
      man - Client to which the user belongs.
      grpList - List of LDAP groups to add to the user.
      Returns:
      The modified user, the same instance as the given user. LDAPBenutzer & LDAPGruppe have been deprecated in version 8.0.0