[Samba] Getting UID and GID via LDAP/LDB query on a non-rfc2307 domain...
Rowland Penny
rpenny at samba.org
Sat Dec 13 10:09:45 UTC 2025
On Fri, 12 Dec 2025 15:48:09 +0100
Marco Gaiarin via samba <samba at lists.samba.org> wrote:
>
> If i need to get UID and GID for a user, but without rfc2307 schema
> installed and used (so, using RID), and i need to use pure LDAP/LDB
> query, there's some hidden field to query to?
>
> Or i need to query for 'objectSid', strip RID, sum to base ID?
>
>
> Thanks.
>
Not sure I understand what you are asking, the rfc2307 schema is a
standard part of the AD schema, that is all the rfc2307 attributes are
available, they just are not populated by default
You then go on to mention 'RID', this is what Windows uses along with
the rest of the SID. If you are actually referring to using the Samba
'rid' idmap config backend, then that uses the RID to calculate the UID
or GID.
Can you please explain just what you require.
Rowland
More information about the samba
mailing list