Configuring PAM for REST API

Describes how to configure the JPAM login for REST API.

About this task

Before you can make REST API calls, you must configure the JPAM login.

Procedure

  1. Edit the following file:
    /opt/mapr/adminuiapp/webapp/WEB-INF/jpamlogin.conf
  2. Remove the following text:
    jpamLogin {
      net.sf.jpam.jaas.JpamLoginModule required
      serviceName="sudo"
      debug=true;
    };
  3. In place of the previous text, add the following:
    jpamLogin {
      net.sf.jpam.jaas.JpamLoginModule Sufficient
          serviceName="sudo"
          debug=true;
      net.sf.jpam.jaas.JpamLoginModule Sufficient
          serviceName="sshd"
          debug=true;
      net.sf.jpam.jaas.JpamLoginModule Sufficient
          serviceName="mapr-admin"
          debug=true;
    };