search cancel

LDAP config page error seen after upgrade to 21.2.8: SPC-OCA-10526: A valid Login Name Pattern must be specified


Article ID: 238005


Updated On:


CA Spectrum DX NetOps


I’m getting the following error (from OC admin) when I tried to add Connection Name and Connection Password:

SPC-OCA-10531: Input Error: SPC-OCA-10526: A valid Login Name Pattern must be specified

Current Loging Name Pattern

(&(objectClass=user)(sAMAccountName={0})(memberOf=CN=APPXXX_Spectrum_Users,OU=Domain Local Groups,OU=Accounts,DC=ab,DC=acme,DC=com))

Even with the error message, the users can still login normally.

Any changes to the LDAP configuration for OC on this new version? How can I fix this issue?




We have made changes to LDAP configuration validation code as a part of “US783420 - 3.06 Req 13 The web application must validate all data that is transferred by a client on the server side” in

Added a basic regular expression to validate the login name pattern which can be configured based on the customer requirement.


Release : 21.2

Component :


1. Open $SPECROOT/custom/validator/ file
2. Search for “loginNamePatternRegEx” and change that line to loginNamePatternRegEx=^[)(&,a-zA-Z-0-9}{=_\\- ]+$
3. Restart tomcat
4. Use the login pattern for LDAP configuration. Login name pattern should be validated successfully.
5. You can follow the similar procedure to customize any other values and regular expressions mentioned in the properties file.