ALERT: Some images may not load properly within the Knowledge Base Article. If you see a broken image, please right-click and select 'Open image in a new tab'. We apologize for this inconvenience.

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

book

Article ID: 238005

calendar_today

Updated On:

Products

CA Spectrum DX NetOps

Issue/Introduction

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=APP_XBH0_Spectrum_Users,OU=Domain Local Groups,OU=Accounts,DC=fg,DC=rbc,DC=com))

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

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

 

 

Cause

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 21.2.8.0

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

Environment

Release : 21.2

Component :

Resolution

1. Open $SPECROOT/custom/validator/ServerConfigValidation.properties 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.