Authentication

Adabas REST administration uses the JAAS standard for authentication. The JAAS server module requires configuration. To configure the module, simply adapt the configuration file security.conf in the configuration directory.

There are a number of additional JAAS modules to support LDAP or other authentication methods. The following is a sample configuration using Java:

/** Realm Login Configuration **/
Adabas {
   com.softwareag.adabas.rest.jaas.RealmPropertyLoginModule required file="configuration/realm.properties";
};

AdabasLDAP {
  com.sun.security.auth.module.LdapLoginModule REQUIRED
  userProvider="ldap://mydomain:389/OU=users,DC=my,DC=domain,DC=com"
  authIdentity="{USERNAME}"
    useSSL=false
  debug=true;
};

In the file config.xml in the configuration directory the LoginService tag handles the corresponding module name. In the following example the default "Adabas" login configuration is used for authentication:

<LoginService class="" module="Adabas" reference="configuration/security.conf" type="jaas"/>

To use the "AdabasLDAP" or any other JAAS configuration, you need to adapt the module attribute of the LoginService element according to your requirements. For example:

<LoginService class="" module="AdabasLDAP" reference="configuration/security.conf" type="jaas"/>