[Samba] ldbedit: no matching records - cannot edit (newly-created user)

Jim Seymour jseymour at LinxNet.com
Thu Sep 10 17:37:27 UTC 2015

Following-up to myself...

Started over with a new user...

$ samba-tool user add someuser
New Password:
Retype Password:
User 'someuser' created successfully
$ wbinfo --name-to-sid someuser
   S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-1110 SID_USER (1)
$ ldbedit -e vi -H /var/lib/samba/private/idmap.ldb
no matching records - cannot edit

Login on my laptop as a domain user (e.g.: SOMEDOM\someuser), then...

$ ldbedit -e vi -H /var/lib/samba/private/idmap.ldb
# editing 1 records
# record 1
dn: CN=S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-1110
cn: S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-1110
objectClass: sidMap
objectSid: S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-1110
xidNumber: 3000024
distinguishedName: CN=S-1-5-21-xxxxxxxxxx-xxxxxxxxxx-xxxxxxxxxx-1110

Can somebody 'splain this?

Note: My mail server employs *very* aggressive anti-spam
filtering.  If you reply to this email and your email is
rejected, please accept my apologies and let me know via my
web form at <http://jimsun.LinxNet.com/contact/scform.php>.

More information about the samba mailing list