[Samba] Wither "uidNumber" and "gidNumber"? (was: Re: ldbedit: no matching records - cannot edit (newly-created user))

Jim Seymour jseymour at LinxNet.com
Sun Sep 13 16:41:46 UTC 2015


On Sat, 12 Sep 2015 17:59:54 +0100
Rowland Penny <rowlandpenny241155 at gmail.com> wrote:

[snip]
> 
> 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:
> 
[snip]
> -
> add: gidNumber
> gidNumber: 10000 # what ever gidNumber you gave to Domain Users
> -
[snip]

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
    -

Correct?

Regards,
Jim
-- 
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