idmap api
Stefan (metze) Metzmacher
metze at metzemix.de
Fri Oct 25 12:04:00 GMT 2002
At 21:09 25.10.2002 +1000, Andrew Bartlett wrote:
>"Stefan (metze) Metzmacher" wrote:
> >
> > Hi,
> >
> > here's a proposal for the idmap api;
> >
> > we'll have a cache that will be asked first, if this fails we ask the
> > central idmap and add the result to our cache.
> >
> > the idmap_central_* functions should be plugable/selectable (different
> > backends should be allowed here)
> >
> > and the backend should decide how to handle unmapped id's.
> >
> > comments please
> >
> > /* 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;
}
>Andrew Bartlett
>
>--
>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
metze
-----------------------------------------------------------------------------
Stefan "metze" Metzmacher <metze at metzemix.de>
More information about the samba-technical
mailing list