Validate changes to the attribute of an existing LDAP server configuration object.
The VALIDATE LDAP SERVER command is useful for an administrator when setting up a new LDAP server configuration object or when diagnosing connection issues between SAP Sybase IQ and the LDAP server. Any connection established by the VALIDATE LDAP SERVER statement is temporary and closed at the end of the execution of the statement.
To use the userID with the search to validate the existence of the user on the LDAP server, include the CHECK clause. Specify the userID and the user-dn-string to be compared.
CREATE LDAP SERVER apps_primary SEARCH DN URL 'ldap://my_LDAPserver:389/dc=MyCompany,dc=com??sub?cn=*' ACCESS ACCOUNT 'cn=myadmin, cn=Users, dc=mycompany, dc=com' IDENTIFIED BY 'Secret99Password' AUTHENTICATION URL 'ldap://my_LDAPserver:389/' CONNECTION TIMEOUT 3000 WITH ACTIVATE
This statement validates the existence of a userID myusername by comparing it to the expected user distinguished name (enclosed in quotation marks) on the LDAP server configuration object name apps_primary using the optional CHECK clause:
VALIDATE LDAP SERVER apps_primary CHECK myusername 'cn=myusername,cn=Users,dc=mycompany,dc=com'