Ask a question
Limited-Time Offer: 50% off IBM TechXchange Conference 2025
IBM’s largest technical learning event is back October 6-9 in Orlando, FL
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.