16.10 - Example: Using ldapsearch to Authenticate a Sun Java Directory Server User - Teradata Database

Teradata Database Security Administration

prodname
Teradata Database
vrm_release
16.10
created_date
June 2017
category
Administration
Security
featnum
B035-1100-161K

This example authenticates the user against the Sun Java System Directory Server. You may find it beneficial to consult your directory administrator for the proper syntax for user names accepted by the directory.

In this test example, the user ID diperm01@testing is a valid user dn.

$ ldapsearch -H ldap://elsegundoca -b "" -s base -x -D diperm01@testing -W -Z namingContexts
Enter LDAP password:
dn:
namingContexts: dc=elsegundoca,dc=teradata,dc=com
namingContexts: o=NetscapeRoot
$
You can also use DIGEST-MD5 binding with the following ldapsearch command:
$ ldapsearch -H ldap://esroot -b "" -s base -Y DIGEST-MD5 -U diperm01@testing -W namingContexts