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
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, > YangThis should work, can you show us a sample ldap search you have been making, perhaps you are doing it wrong. Rowland
Le 16/12/2022 ? 02:28, Yang Yang via samba a ?crit?:> 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?On a DC itself that uses smb.domain.ext , I use something like : server at dc1:~$ sudo ldapsearch -ZZ -H ldap://dc1.smb.domain.ext:389 -b 'DC=smb,DC=domain,DC=ext' -D 'SMB\Administrator' -w 'mysecretadminpassword' It tells to use TLS (required) On Ubuntu ldapsearch is in ldap-utils, so installed via: server at dc1:~$ sudo apt install ldap-utils> > 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, > YangHope this helps. Nicolas Electronico NEW-CALEDONIA (South Pacific)