On Thu, May 18, 2017 at 07:02:09PM +0800, Roger Szabo wrote:
ldapcompare -x -H ldaps://xxxxxx:xxx "o=test" "o:test"
This method simply checks whether the attribute "o" of the DIT's root element "o=test" actually contains the value "test". For this example it looks like there would theoretically be no ldapsearch on the same root element that would perform equally or even better, wouldn't it?
I'd think that something like:
ldapsearch -x -s base -b o=test 1.1
could be similar, not sure about better. Of course your script should ensure this search actually returns a result.