Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.
Here are the steps to enable LDAP authentication in Software AG Runtime (CTP).
LdapRealm { com.softwareag.security.sin.is.ldap.lm.LDAPLoginModule required alias="name3" logLevel="DEBUG" logFile="../../profiles/CTP/logs/sin.log" useLog="TRUE" url="<YourLdapServerUrl>" prin="CN=<YourUserName>,OU=User,DC=<YourLdapOrgKeys>" cred="<YourLdapPassword>" useaf="false" usecaching="false" creategroups=true gidprop="SAMAccountName" uidprop="SAMAccountName" userrootdn="DC=<YourLdapOrgKeys>" grouprootdn="DC=<YourLdapOrgKeys>"; };
<Realm className="com.softwareag.platform.catalina.auth.SINRealm" name="LdapRealm"/>
<security-constraint> <web-resource-collection> <web-resource-name>YourServiceName</web-resource-name> <url-pattern>/services/YourServiceEndpoint/</url-pattern> </web-resource-collection> <auth-constraint> <role-name>*</role-name> </auth-constraint> </security-constraint> <login-config> <auth-method>BASIC</auth-method> <realm-name>LdapRealm</realm-name> </login-config> <security-role> <role-name>*</role-name> </security-role>
The tricky part is the ‘role-name’. The ‘*’ means any role.