summaryrefslogtreecommitdiff
path: root/source3/include/idmap.h
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2010-06-22 14:31:24 +0200
committerMichael Adam <obnox@samba.org>2010-08-14 02:10:37 +0200
commit770b22ff5aa3f852daaf6f0fd1b2f4f81d78343c (patch)
treed789abf6ac156cde43ca525622a695ca4517ea7a /source3/include/idmap.h
parent0d369271c5d7c466e2594a446a14977302850e2e (diff)
downloadsamba-770b22ff5aa3f852daaf6f0fd1b2f4f81d78343c.tar.gz
samba-770b22ff5aa3f852daaf6f0fd1b2f4f81d78343c.tar.bz2
samba-770b22ff5aa3f852daaf6f0fd1b2f4f81d78343c.zip
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.
Diffstat (limited to 'source3/include/idmap.h')
-rw-r--r--source3/include/idmap.h3
1 files changed, 3 insertions, 0 deletions
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);
};