Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Cofiguration for ad-config.js (required for Active Directory Authentication)

  • copy ad-config.example and rename file to ad-config.js.

    Code Block
    
    const config = {
        path: '/login',
        url: 'ldap://de.XXXXX.ch:389',
        bindDN: 'CN=adreader,OU=XXXX,DC=de,DC=XXXXX,DC=ch',
        bindCredentials: 'xsdsdsds',
        searchBase: 'DC=de,DC=XXXXX,DC=ch',
        searchFilter: '(&(sAMAccountName={{username}})(memberOf=CN=XXXX-XXXX,OU=XXXX,DC=de,DC=XXXX,DC=ch))',
        errorMessages: {
          badRequestMessage: 'Missing credentials',
          invalidCredentials: 'Invalid username/password',
          userNotFound: 'Invalid username/password',
          constraintViolation: 'Exceeded password retry limit, account locked',
          invalidLogonHours: 'Not Permitted to login at this time',
          invalidWorkstation: 'Not permited to logon at this workstation',
          passwordExpired: 'Password expired',
          accountDisabled: 'Account disabled',
          accountExpired: 'Account expired',
          passwordMustChange: 'User must reset password',
          accountLockedOut: 'User account locked',
          noSuchObject: 'Bad search base'
        }
      };
      
      module.exports = config;
    
    

Options for the Active Directory configuration file

...