[Samba] wbinfo work getent passwd does

Rowland penny rpenny at samba.org
Wed Apr 14 11:53:38 UTC 2021

On 14/04/2021 12:07, basti via samba wrote:
> users look like:
> id iustest
> uid=7101(NET\iustest) gid=100(users) Gruppen=100(users)
> I think it should lokk like
> id iustest
> uid=7101(NET\iustest) gid=30000(BUILTIN\users) 
> groups=30000(BUILTIN\users)
> I have no idea where the gid 100 come from.

Is this on a Samba AD DC ? That is usually where the '100' comes from. 
However, I asked (in another way) if you have given your users a 
uidNumber attribute and Domain Users a gidNumber attribute, which you 
haven't answered. So please answer that question.

  Do you have users in /etc/passwd with the same names as users in AD ?

You could try changing these lines:

   idmap config SAMDM:backend = ad
   idmap config SAMDOM:schema_mode = rfc2307
   idmap config SAMDOM:range = 7000-20000

For these:

   idmap config SAMDM:backend = rid
   idmap config SAMDOM:range = 7000-20000

Restart Samba and see if 'getent passwd A_USERNAME' works, replace 
A_USERNAME with a valid AD user.


More information about the samba mailing list