From 770b22ff5aa3f852daaf6f0fd1b2f4f81d78343c Mon Sep 17 00:00:00 2001 From: Michael Adam Date: Tue, 22 Jun 2010 14:31:24 +0200 Subject: s3:idmap: add an allocate_id method to the idmap_methods struct. The idmap_alloc_methods are being removed, but this single "alloc" method is still needed for the samba-wide Unix-ID allocator, which is used in group-mapping and ldapsam:editposix. This method should ultimately also disappear. --- source3/include/idmap.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source3/include/idmap.h b/source3/include/idmap.h index c8df61c53c..99d8f63a2c 100644 --- a/source3/include/idmap.h +++ b/source3/include/idmap.h @@ -50,6 +50,9 @@ struct idmap_methods { and type and gets back a uid or gid. */ NTSTATUS (*sids_to_unixids)(struct idmap_domain *dom, struct id_map **ids); + /* Allocate a Unix-ID. */ + NTSTATUS (*allocate_id)(struct idmap_domain *dom, struct unixid *id); + /* Called when backend is unloaded */ NTSTATUS (*close_fn)(struct idmap_domain *dom); }; -- cgit