idmap api
Andrew Bartlett
abartlet at samba.org
Fri Oct 25 12:45:01 GMT 2002
"Stefan (metze) Metzmacher" wrote:
>
> At 21:09 25.10.2002 +1000, Andrew Bartlett wrote:
> >"Stefan (metze) Metzmacher" wrote:
> > > /* idmap api */
> > > NT_STATUS idmap_sid_to_id(DOM_SID *sid, int *id, BOOL *group);
> >
> >I don't like this bit. I would prefer it returned somthing that was
> >typesafe - say use two paramaters or return a struct or somthing. The
> >size of a uid_t is probably the same as a gid_t, but may not be the same
> >as int.
>
> yes, I thought of a struct with a union in it.
>
> struct unix_id {
> BOOL group;
> union {
> uit_t uid;
> gid_t gid;
> } unix;
> }
Fine by me.
--
Andrew Bartlett abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team abartlet at samba.org
Student Network Administrator, Hawker College abartlet at hawkerc.net
http://samba.org http://build.samba.org http://hawkerc.net
More information about the samba-technical
mailing list