[Samba] How shall I fix the multiple uidNumbers

Alex Domoradov alex.hha at gmail.com
Sun Jun 13 14:52:03 MDT 2010


> From: "Gaiseric Vandal" <gaiseric.vandal at gmail.com>
> To: <samba at lists.samba.org>
> Date: Sat, 12 Jun 2010 17:18:02 -0400
> Subject: Re: [Samba] How shall I fix the multiple uidNumbers
> Do you even need root in ldap?
>
That is the very thing I'd like to find out ;)

Root should be in /etc/passwd, I don't see why you need it in LDAP as well
> unless root is also a samba account.  Which I don't think you would need.
>
>
But at the same time I see the following message in my samba log

[2010/06/11 10:22:36,  3] lib/util_sid.c:228(string_to_sid)
  string_to_sid: Sid root does not start with 'S-'.

[2010/06/11 10:22:36,  2] passdb/pdb_ldap.c:571(init_sam_from_ldap)
  init_sam_from_ldap: Entry found for user: root

[2010/06/11 10:22:36,  3] passdb/pdb_ldap.c:5191(ldapsam_gid_to_sid)
  ERROR: Got 0 entries for gid 0, expected one

Should I ignore this error?

The user root with uid/gid 0 was created automatically with command from
smbldap-tools

# smbldap-populate

Shell I delete them manually? I have already created the user and granted
him all the privileges

# id w3da
uid=1339(w3da) gid=512(Domain Admins) groups=512(Domain Admins)

# net rpc rights list accounts w3da
Enter root's password:
SeMachineAccountPrivilege
SeTakeOwnershipPrivilege
SeBackupPrivilege
SeRestorePrivilege
SeRemoteShutdownPrivilege
SePrintOperatorPrivilege
SeAddUsersPrivilege
SeDiskOperatorPrivilege


More information about the samba mailing list