How to determine if a SID is group or user?

John M Trostel jtrostel at connex.com
Thu Nov 9 15:34:18 GMT 2000


---Reply to mail from Marc Jacobsen about How to determine if a SID is group or user?

Thanks... It works like a charm!

Now I've just got to figure out why my "Everybody" is coming back as a
definite user uid?!!

It looks like the ACEs read out in the reverse order that I put them
in....

> John,
> 
> Programmatically, you can do a sid_split_rid() on the sid to get the rid, then
> do a pdb_rid_is_user() to determine if the rid is a user's or a group's.
> 
> -Marc Jacobsen
> 
> John M Trostel wrote:
>> 
>> How would I figure out if a specific ACE entry pertains to a group or a
>> user?
>> 
>> I can go in and look at the uid and/or gid with sid_to_uid or sid_to_gid
>> (from the ace), but there must be some way to differentiate between the
>> group and user ace's.
>> 
>> --
>> John M. Trostel
>> Linux OS Engineer
>> Connex
>> jtrostel at connex.com

---End reply
-- 
John M. Trostel
Linux OS Engineer
Connex
jtrostel at connex.com






More information about the samba-technical mailing list