[Samba] Interacting with LDAP db without password as root

Rowland penny rpenny at samba.org
Wed Jul 15 12:56:48 UTC 2020

On 15/07/2020 13:36, RhineDevil via samba wrote:
> How could I avoid being asked a password when interacting with /var/lib/samba/private/ldap_priv/ldapi through ldapsearch or ldaputils in general?
> (ldapsearch -H ldapi//%2Fvar%2Flib%2Fsamba%2Fprivate%2Fldapi)

Don't use ldap-utils, use ldb-tools and the machine password:

sudo ldbsearch -P -H ldapi://%2Fvar%2Flib%2Fsamba%2Fprivate%2Fldap


More information about the samba mailing list