Thursday, August 30, 2018

ldap commands using in linux


1. How to find Max change no:

]$ ./ldapsearch -h 10.4.xxx.xx -p 389 -D ldapreaduser@exx.com -w  <password> -b "" -s base "objectclass=*" highestCommittedUSN


you will get the below output:

highestCommittedUSN=188476234

2. How to retrieve details of the specific AD, OID  object

]$ ./ldapsearch -h <ldap server host or ip> -p 389 -D "<admin or readonly username>" -w <userpassword> -b "<DN of the specific user >" -s base "objectclass=*"





No comments:

Post a Comment