/** SNS JAAS Configuration */ 

/** The following two entries need to be present
 *  to support automatic login based on the current user.
 *  See LoginJob.forCurrentUser()
 */

/* Use the currently logged-in user on Linux and Mac OS X */
unix
{
    com.sun.security.auth.module.UnixLoginModule required
    debug="true";
};


/* Use the currently logged-in user on Windows */
windows
{
    com.sun.security.auth.module.NTLoginModule required
    debug="true";
};

dummy
{
  org.eclipse.equinox.security.auth.module.ExtensionLoginModule required
  extensionId=org.csstudio.security.DummyLoginModule;
};


/* LDAP Authentication.
 * Performs an LDAP 'bind' with user name and password.
 */
NSLSII_LDAP
{
    com.sun.security.auth.module.LdapLoginModule required
    /* debug=true */
    userProvider="ldaps://localhost/ou=Users,dc=bnl,dc=gov"
    authIdentity="uid={USERNAME},ou=Users,dc=bnl,dc=gov";
};

