Class LDAPBenutzerUtil

    • Constructor Detail

      • LDAPBenutzerUtil

        public LDAPBenutzerUtil()
        Deprecated.
    • Method Detail

      • 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.
      • 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.
      • 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
      • checkLDAPGroupsActiveUser

        public static Benutzer checkLDAPGroupsActiveUser​(IEntityContext ec,
                                                         Long clientId,
                                                         String userLogin)
        Deprecated.
        The user management has been reworked 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