Omnis ludis - games
2024-Jun-05 14:13 UTC
[Samba] Failed to bind to uuid NT_STATUS_LOGON_FAILURE
I tried to run with this command, but I get an error ./chgtdcpass --configfile=/opt/samba/etc/smb.conf module samba_dsdb initialization failed : No such object Unable to load modules for /var/lib/samba/private/sam.ldb: dsdb_module_search_dn: did not find base dn @ROOTDSE (0 results) Traceback (most recent call last): File "./chgtdcpass", line 56, in <module> ldbs = get_ldbs(paths, creds, session, lp) File "/usr/lib64/python3.8/site-packages/samba/upgradehelpers.py", line 142, in get_ldbs ldbs.sam = SamDB(paths.samdb, File "/usr/lib64/python3.8/site-packages/samba/samdb.py", line 90, in __init__ super(SamDB, self).__init__(url=url, lp=lp, modules_dir=modules_dir, File "/usr/lib64/python3.8/site-packages/samba/__init__.py", line 114, in __init__ self.connect(url, flags, options) File "/usr/lib64/python3.8/site-packages/samba/samdb.py", line 106, in connect super(SamDB, self).connect(url=url, flags=flags, _ldb.LdbError: (32, 'dsdb_module_search_dn: did not find base dn @ROOTDSE (0 results)') I specified the location of smb.conf, why does this script follow a different path to search for internal samba files? ??, 5 ???. 2024??. ? 17:02, Rowland Penny via samba <samba at lists.samba.org>:> On Wed, 5 Jun 2024 15:33:49 +0200 > Christian Naumer via samba <samba at lists.samba.org> wrote: > > > May be this will work: > > > > /usr/share/samba/scripts/chgtdcpass --help > > Usage: chgtdcpass [options] > > > > That should work, but you should take from this: > > A) run more than one DC > B) never use sssd with Samba, there is absolutely no point. > > Rowland > > -- > To unsubscribe from this list go to the following URL and read the > instructions: https://lists.samba.org/mailman/options/samba >
Omnis ludis - games
2024-Jun-05 14:29 UTC
[Samba] Failed to bind to uuid NT_STATUS_LOGON_FAILURE
Maybe I should adjust some environment variable? ??, 5 ???. 2024??. ? 17:13, Omnis ludis - games <sergey.gortinsc17 at gmail.com>:> I tried to run with this command, but I get an error > ./chgtdcpass --configfile=/opt/samba/etc/smb.conf > module samba_dsdb initialization failed : No such object > Unable to load modules for /var/lib/samba/private/sam.ldb: > dsdb_module_search_dn: did not find base dn @ROOTDSE (0 results) > Traceback (most recent call last): > File "./chgtdcpass", line 56, in <module> > ldbs = get_ldbs(paths, creds, session, lp) > File "/usr/lib64/python3.8/site-packages/samba/upgradehelpers.py", line > 142, in get_ldbs > ldbs.sam = SamDB(paths.samdb, > File "/usr/lib64/python3.8/site-packages/samba/samdb.py", line 90, in > __init__ > super(SamDB, self).__init__(url=url, lp=lp, modules_dir=modules_dir, > File "/usr/lib64/python3.8/site-packages/samba/__init__.py", line 114, > in __init__ > self.connect(url, flags, options) > File "/usr/lib64/python3.8/site-packages/samba/samdb.py", line 106, in > connect > super(SamDB, self).connect(url=url, flags=flags, > _ldb.LdbError: (32, 'dsdb_module_search_dn: did not find base dn @ROOTDSE > (0 results)') > I specified the location of smb.conf, why does this script follow a > different path to search for internal samba files? > > ??, 5 ???. 2024??. ? 17:02, Rowland Penny via samba <samba at lists.samba.org > >: > >> On Wed, 5 Jun 2024 15:33:49 +0200 >> Christian Naumer via samba <samba at lists.samba.org> wrote: >> >> > May be this will work: >> > >> > /usr/share/samba/scripts/chgtdcpass --help >> > Usage: chgtdcpass [options] >> > >> >> That should work, but you should take from this: >> >> A) run more than one DC >> B) never use sssd with Samba, there is absolutely no point. >> >> Rowland >> >> -- >> To unsubscribe from this list go to the following URL and read the >> instructions: https://lists.samba.org/mailman/options/samba >> >
Andrew Bartlett
2024-Jun-05 20:04 UTC
[Samba] Failed to bind to uuid NT_STATUS_LOGON_FAILURE
Add a 'private dir' to your smb.conf matching where your Samba packages are putting 'private'. Andrew Bartlett On Wed, 2024-06-05 at 17:13 +0300, Omnis ludis - games via samba wrote:> I tried to run with this command, but I get an error./chgtdcpass -- > configfile=/opt/samba/etc/smb.confmodule samba_dsdb initialization > failed : No such objectUnable to load modules for > /var/lib/samba/private/sam.ldb:dsdb_module_search_dn: did not find > base dn @ROOTDSE (0 results)Traceback (most recent call last): File > "./chgtdcpass", line 56, in <module> ldbs = get_ldbs(paths, creds, > session, lp) File "/usr/lib64/python3.8/site- > packages/samba/upgradehelpers.py", line142, in get_ldbs ldbs.sam > SamDB(paths.samdb, File "/usr/lib64/python3.8/site- > packages/samba/samdb.py", line 90, in__init__ super(SamDB, > self).__init__(url=url, lp=lp, modules_dir=modules_dir, File > "/usr/lib64/python3.8/site-packages/samba/__init__.py", line 114, > in__init__ self.connect(url, flags, options) File > "/usr/lib64/python3.8/site-packages/samba/samdb.py", line 106, > inconnect super(SamDB, self).connect(url=url, > flags=flags,_ldb.LdbError: (32, 'dsdb_module_search_dn: did not find > base dn @ROOTDSE(0 results)')I specified the location of smb.conf, > why does this script follow adifferent path to search for internal > samba files? > ??, 5 ???. 2024??. ? 17:02, Rowland Penny via samba < > samba at lists.samba.org>: > > On Wed, 5 Jun 2024 15:33:49 +0200Christian Naumer via samba < > > samba at lists.samba.org> wrote: > > > May be this will work: > > > /usr/share/samba/scripts/chgtdcpass --helpUsage: chgtdcpass > > > [options] > > > > That should work, but you should take from this: > > A) run more than one DCB) never use sssd with Samba, there is > > absolutely no point. > > Rowland > > --To unsubscribe from this list go to the following URL and read > > theinstructions: https://lists.samba.org/mailman/options/samba > >-- Andrew Bartlett (he/him) https://samba.org/~abartlet/Samba Team Member (since 2001) https://samba.orgSamba Team Lead https://catalyst.net.nz/services/sambaCatalyst.Net Ltd Proudly developing Samba for Catalyst.Net Ltd - a Catalyst IT group company Samba Development and Support: https://catalyst.net.nz/services/samba Catalyst IT - Expert Open Source Solutions