[Samba] Wither "uidNumber" and "gidNumber"? (was: Re: ldbedit: no matching records - cannot edit (newly-created user))
rowlandpenny241155 at gmail.com
Sun Sep 13 17:33:33 UTC 2015
On 13/09/15 17:41, Jim Seymour wrote:
> On Sat, 12 Sep 2015 17:59:54 +0100
> Rowland Penny <rowlandpenny241155 at gmail.com> wrote:
>> To add the unix attributes to a user with the samaccountname of
>> user, you will need to find the users 'dn'
>> ldbsearch -H /var/lib/samba/private/sam.ldb '(samaccountname=user)'
>> | grep 'dn'
>> dn: CN=Test User,CN=Users,DC=example,DC=com
>> OK, now you will need an ldif like this:
>> add: gidNumber
>> gidNumber: 10000 # what ever gidNumber you gave to Domain Users
> Based on later comments, this would more accurately be:
> add: gidNumber
> gidNumber: 10000 # whatever Unix GID you gave to "Domain Users"
> # Actually: Can be whatever you want, but don't
> # change the primaryGroupID from the "Domain
> # Users" gid or Things Will Break
Yes, I set the users gidNumber to be the gidNumber of Domain Users, but
it could easily be the gidNumber of another group, just make sure the
group exists and contains the gidNumber you use.
More information about the samba