[Samba] samba-tool domain join: Unable to open tdb '/var/lib/samba/private/secrets.ldb': No such file or directory
Michael Tokarev
mjt at tls.msk.ru
Mon Oct 31 14:20:42 UTC 2022
31.10.2022 16:27, Rowland Penny via samba wrote:
..
>> [2022/10/31 16:02:43.961859, 1] ../../lib/ldb-samba/ldb_wrap.c:79(ldb_wrap_debug)
>> ldb: Failed to connect to '/var/lib/samba/private/secrets.ldb' with backend 'tdb': Unable to open tdb '/var/lib/samba/private/secrets.ldb': No
>> such file or directory
>
> At one time, on a Unix domain member, just doing something that would ask for secrets.ldb would result in an empty file being created. This was
> stopped sometime ago.
So, continuing the wbinfo arguments thread...
# tdbtool --help
tdb_open_ex: could not open file --help: No such file or directory
Could not open --help: No such file or directory
tdb> _
*sigh*
# man tdbtool
...
tdbtool [-l] TDBFILE [COMMANDS...]
COMMANDS
create TDBFILE
Create a new database named TDBFILE.
huh? It contradicts with itself, *sigh*
# tdbtool create /var/lib/samba/private/secrets.ldb
tdb_open_ex: could not open file create: No such file or directory
Could not open create: No such file or directory
database not open
tdbtool:
create dbname : create a database
open dbname : open an existing database
transaction_start : start a transaction
transaction_commit : commit a transaction
transaction_cancel : cancel a transaction
...
\n (!!!)
# tdbtool /var/lib/samba/private/secrets.ldb create
tdb_open_ex: could not open file /var/lib/samba/private/secrets.ldb: No such file or directory
Could not open /var/lib/samba/private/secrets.ldb: No such file or directory
tdb_open_ex: called with name == NULL
Could not create (null): Invalid argument
And finally, after thinking...
# echo create /var/lib/samba/private/secrets.ldb | tdbtool
tdb> tdb> # _
Gosh. This is all screwed up so badly!...
**SIGH**
After seeing this completely awful behavior one understands that it is probably
beyond any possibility of repairing.
/mjt
More information about the samba
mailing list