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

Teradata Database Security Administration

Product
Teradata Database
Release Number
16.10
Release Date
June 2017
Content Type
Administration
Security
Publication ID
B035-1100-161K
Language
English (United States)

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