[Samba] Samba4 Dc Winbind and uidNumbers

Jim Potter jimchuffff at googlemail.com
Wed Mar 27 04:14:26 MDT 2013

Hi all,

I'm trying to get the unix extensions working in AD. I'm obviously missing
something, but I can't see what...

I've just created user Jim (using ADUC) and added a uidnumber (using
ADSIEdit). From this and what I have below, user Jim should have uidNumber
of 12345 (from AD) and not be prefixed with Domain name. This isn't
happening. Does anyone have any idea why not?



Excerpt from getent passwd:
FASTFOOD\jim:*:3000019:100:Jim Chuffff:/home/FASTFOOD/jim:/bin/false

        workgroup = FASTFOOD
        realm = FASTFOOD.LAN
        netbios name = CHIPSHOP
        server role = active directory domain controller

        dns forwarder =

        log level = 3

        algorithmic rid base = 10000

        idmap config * : range = 50001-60000
        idmap config * : backend = ad

        idmap config FASTFOOD : range = 10000-50000
        idmap config FASTFOOD : backend = ad

        winbind nss info = rfc2307
        winbind use default domain = yes

        path = /var/lib/samba/sysvol/fastfood.lan/scripts
        read only = No

        path = /var/lib/samba/sysvol
        read only = No

My user from AD:
dn: CN=Jim Chuffff,CN=Users,DC=fastfood,DC=lan
objectClass: top
objectClass: person
objectClass: organizationalPerson
objectClass: user
cn: Jim Chuffff
sn: Chuffff
givenName: Jim
instanceType: 4
whenCreated: 20130317212551.0Z
displayName: Jim Chuffff
uSNCreated: 3873
name: Jim Chuffff
objectGUID:: hXvFCY0pTUeIgltTLbnOcQ==
badPwdCount: 0
codePage: 0
countryCode: 0
badPasswordTime: 0
lastLogoff: 0
lastLogon: 0
primaryGroupID: 513
objectSid:: AQUAAAAAAAUVAAAAbDu04eltc/ij6yQSUQQAAA==
accountExpires: 9223372036854775807
logonCount: 0
sAMAccountName: jim
sAMAccountType: 805306368
userPrincipalName: jim at fastfood.lan
objectCategory: CN=Person,CN=Schema,CN=Configuration,DC=fastfood,DC=lan
pwdLastSet: 130080291520000000
userAccountControl: 66048
uidNumber: 12345
whenChanged: 20130317212824.0Z
uSNChanged: 3877
distinguishedName: CN=Jim Chuffff,CN=Users,DC=fastfood,DC=lan

More information about the samba mailing list