Fri, 17 Jul 2020 18:23:42 +0100 Rowland penny via samba <samba at lists.samba.org>:> On 17/07/2020 17:59, RhineDevil wrote: > > I mean all dbs containing samba ad-dc data > > Forgot to ask something, an LDAP client connecting to samba LDAP implementation can use `cn=mycn,dc=domain,dc=tld` or it's forced to provide DC and CN in uppercase? > > As far as I am aware, if you have one DC, you would need to totally > remove Samba from the DC. If you have multiple DC's, these would have to > be demoted first and then Samba removed. > > When running ldap searches etc , you can use lowercase dc, cn etc > > Rowland >Thank you, how do I purge samba ad-dc data? (Removing dbs) -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 833 bytes Desc: Firma digitale OpenPGP URL: <http://lists.samba.org/pipermail/samba/attachments/20200717/0154d45c/attachment.sig>
Fri, 17 Jul 2020 19:27:34 +0200 RhineDevil via samba <samba at lists.samba.org>:> Fri, 17 Jul 2020 18:23:42 +0100 Rowland penny via samba <samba at lists.samba.org>: > > On 17/07/2020 17:59, RhineDevil wrote: > > > I mean all dbs containing samba ad-dc data > > > Forgot to ask something, an LDAP client connecting to samba LDAP implementation can use `cn=mycn,dc=domain,dc=tld` or it's forced to provide DC and CN in uppercase? > > > > As far as I am aware, if you have one DC, you would need to totally > > remove Samba from the DC. If you have multiple DC's, these would have to > > be demoted first and then Samba removed. > > > > When running ldap searches etc , you can use lowercase dc, cn etc > > > > Rowland > > > Thank you, how do I purge samba ad-dc data? > (Removing dbs)And by that I mean, where are the dbs, what should I rm -rf? By the way how do I obtain current machine netbios name? -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 833 bytes Desc: Firma digitale OpenPGP URL: <http://lists.samba.org/pipermail/samba/attachments/20200717/ebc06de8/attachment.sig>
On 17/07/2020 19:31, RhineDevil via samba wrote:> And by that I mean, where are the dbs, what should I rm -rf?On Debian just remove /var/lib/samba and /var/cache/samba> By the way how do I obtain current machine netbios name?Depends on which netbios name, if you are referring to the one that is in smb.conf 'netbios name = ?????', that is just the short hostname in uppercase. If you are referring to the netbios domain name (aka workgroup) then you can find this with wbinfo: wbinfo --own-domain Rowland