[Samba] LDAP query to Samba AD DC

Rowland Penny rpenny at samba.org
Thu Dec 15 15:52:13 UTC 2022



On 15/12/2022 15:28, Yang Yang via samba wrote:
> Hello,
> 
> When Samba is set up as an Active Directory Domain Controller, can it response to LDAP queries?
> 
> I set up Samba as an Active Directory Domain Controller, following guide in samba wiki <https://wiki.samba.org/index.php/Setting_up_Samba_as_an_Active_Directory_Domain_Controller> , and I can add Windows machines and login with samba users, as expected. However, when I tried LDAP query to any base DN, the answer had always been “No such object”.
> 
> Does Samba as an Active Directory Domain Controller support LDAP queries? Is there something else I shall do to make it work?
> 
> If LDAP queries are not supported by Samba as an Active Directory Domain Controller, is there any solution for to have a Domain Controller that can support LDAP queries?
> 
> Thanks,
> Yang

This should work, can you show us a sample ldap search you have been 
making, perhaps you are doing it wrong.

Rowland




More information about the samba mailing list