[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: ldapcompare vs ldapsearch
Am Wed, 17 May 2017 18:32:29 +0800
schrieb Roger Szabo <roger.szabo@web.de>:
> Hi,
>
> The goal is to perform frequent periodic calls to check the health of
> OpenLDAP using anonymous bind.
>
> Someone at
> http://stackoverflow.com/questions/16077473/ldap-bind-vs-search
> suggested that a ldapcompare would perform better than a ldapsearch
> because "there is only a single response per entry (a compare result)
> rather than two (a search result entry and a search result done)".
>
> This explanation makes sense but it would be really great to hear the
> opinion of an expert on this, thank you very much :)
Indeed, a compare operation requires less time and server load than a
search operation. In order to reduce server load you may search the
monitor backend base object.
-Dieter
--
Dieter Klünter | Systemberatung
http://sys4.de
GPG Key ID: E9ED159B
53°37'09,95"N
10°08'02,42"E