idmap api

Andrew Bartlett abartlet at
Fri Oct 25 11:10:00 GMT 2002

"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.

Andrew Bartlett

Andrew Bartlett                                 abartlet at
Manager, Authentication Subsystems, Samba Team  abartlet at
Student Network Administrator, Hawker College   abartlet at

More information about the samba-technical mailing list