[Samba] "Failed to add users for testing" - pdb_getsampwnam (TDB): error fetching database

craig at mypenguin.net.au craig at mypenguin.net.au
Wed Dec 2 02:28:27 UTC 2015


Running samba-4.1.12-24 on Centos 7.1, I've created about 15 user
accounts which are working perfectly, then for some reason today I go to
create another account and it starts erroring?

 security = user
 passdb backend = tdbsam

[root at sysvm-smb samba]# pdbedit   -a testing
new password:
retype new password:
Failed to add entry for user testing.

With Debugging;
------------- Cut -------------
Attempting to find a passdb backend to match tdbsam (tdbsam)
No builtin backend found, trying to load plugin
Probing module 'tdbsam'
Probing module 'tdbsam': Trying to load from
Module 'tdbsam' loaded
Attempting to register passdb backend tdbsam
Successfully added passdb backend 'tdbsam'
Found pdb backend tdbsam
pdb backend tdbsam has a valid init
new password:
retype new password:
tdbsam_open: successfully opened /var/lib/samba/private/passdb.tdb
pdb_getsampwnam (TDB): error fetching database.
 Key: USER_testing
 Finding user testing
 Trying _Get_Pwnam(), username as lowercase is testing
 Trying _Get_Pwnam(), username as uppercase is TESTING
 Checking combinations of 0 uppercase letters in testing
 Get_Pwnam_internals didn't find user [testing]!
 Could not find user testing and no add script defined
 Failed to add entry for user testing.
------------- Cut -------------



More information about the samba mailing list