Skip to content

ldbsearch

Rüdiger Beck edited this page Jul 18, 2021 · 4 revisions

ldbsearch

since samba is AD Compliant and not completely LDAP compliant you should use ldbsearch (and not ldapsearch) to connect to the samba database engine LDB.

The debian/ubuntu package is ldb-tools. It ist automatically installed with sophomorix

sophomorix-ldbsearch

If you are working on the server it is a good start to use the wrapper sophomorix-ldbsearch to connect to the samba AD:

sophomorix-ldbsearch "(givenName=Mai*)" sn givenName

This users the LDAP-Filter (givenName=Mai*) and displays the attributes sn and givenName

The output displays which ldbsearch options are used. You can see that the password to connect to samba is read from a file on the server.

ldbsearch

From a remote host you should be able to connect

Clone this wiki locally