The LDAP test monitors the amount of time required to connect to the LDAP service on a Windows system, perform a standard user name/password authentication, and then perform a user-defined query.
Options and Arguments
LDAP tests require the following specific options and arguments:
Note: IPv6 addresses can be used, but they must be embedded in brackets, for example [0aff::230:6eff:fe4b:51db]:8080. Here 0aff::230:6eff:fe4b:51db represents the IPv6 address and 8080 represents the port number.
Specify these options and arguments when you create or modify tests.
Examples
This section includes examples for monitoring the amount of time to connect to a local LDAP server and a remote LDAP server.
Example 1: Testing a Local LDAP Server
Use this example to create a test that monitors the amount of time to connect to the local LDAP server named arch, authenticate the user name ldapUser and the encoded password, and then query for the term annuity.
To create a new test in a policy
The New test pane appears.
When you commit your changes, SRM adds an entry similar to the following to the svcrsp.cf file:
{ index=11 type=ldap desc="LDAP-TEST" dest="arch" username="ldapUser" encoded=yes password="Z28ySGVsbA" args="query=cn=annuity,ou=Boston,dc=fleet,dc=com&domain=Test&filter=cn=*" interval=30 samples=1 timeout=10 window=120 tos=0 limit=0 status=active name="Local LDAP Test" class="" context="" flags="1" loglevel=1 }
Example 2: Testing a Remote LDAP Server
Use this example to create a test that monitors the amount of time to connect to the remote LDAP server at 10.0.0.123, authenticate the user name ldapRUser and the encoded password, and then query for the term Guest Users.
To create a new test in a policy
The New test pane appears.
When you commit your changes, SRM adds an entry similar to the following to the svcrsp.cf file:
{ index=23 type=ldap desc="ldap_remote" dest="10.0.0.123:389" username="ldapRUser" encoded=yes password="bXVyaWM" args="query=cn=guest,cd=users,dc=testlab,dc=com&domain=Test&filter=cn=*" interval=30 samples=1 timeout=10 window=120 tos=0 limit=0 status=active name="Remote LDAP Test" class="" context="" flags="1" loglevel=1 }
For information about errors you may encounter when running LDAP tests, see LDAP Test Error Codes.
Copyright © 2013 CA. All rights reserved. |
|