Sunday, January 29, 2023

Verifying ldap connectivity issues on Linux server

1) Install ldap client 

$ sudo yum install openldap-clients -y

2) Do ldapsearch with below command and verify if your group is existing.

$ ldapsearch -H ldaps://ad.auth.bypramod.com:646 -x -D "CN=tigergraph_stage,OU=Generic Accounts,OU=bypramod org users,DC=corp,DC=bypramod,DC=stage" -W -b "OU=bypramod org users,DC=corp,DC=bypramod,DC=stage" "(sAMAccountName=useridpramod)" memberOf

Here, 

-H, ldapuri

-x, Use simple authentication instead of SASL

-D, Distinguished Name

-W, prompt password

-b, searchbase also starting point of search.


***