summaryrefslogtreecommitdiff
path: root/source3/include
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2013-09-05 14:47:43 +0200
committerMichael Adam <obnox@samba.org>2013-10-02 00:06:26 +0200
commit4deba6090b1d8c7bc2b8ff85e196905ad3a8ec43 (patch)
tree82fc307b01cd603d4d2d587865721772945c1aed /source3/include
parent4c937f2dd2bf3d6fa695f07efbeb7c80b257fd10 (diff)
downloadsamba-4deba6090b1d8c7bc2b8ff85e196905ad3a8ec43.tar.gz
samba-4deba6090b1d8c7bc2b8ff85e196905ad3a8ec43.tar.bz2
samba-4deba6090b1d8c7bc2b8ff85e196905ad3a8ec43.zip
idmap_autorid: add a comment explaining idmap_autorid_db_init()
Signed-off-by: Michael Adam <obnox@samba.org> Reviewed-by: Volker Lendecke <vl@samba.org>
Diffstat (limited to 'source3/include')
-rw-r--r--source3/include/idmap_autorid_tdb.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/source3/include/idmap_autorid_tdb.h b/source3/include/idmap_autorid_tdb.h
index bf96d765d1..f1808d2110 100644
--- a/source3/include/idmap_autorid_tdb.h
+++ b/source3/include/idmap_autorid_tdb.h
@@ -87,6 +87,12 @@ NTSTATUS idmap_autorid_setrange(struct db_context *db,
*/
NTSTATUS idmap_autorid_init_hwm(struct db_context *db, const char *hwm);
+/**
+ * Initialize an idmap_autorid database.
+ * After this function has successfully completed, the following are true:
+ * - the database exists
+ * - the required HWM keys exist (range, alloc-uid, alloc-gid)
+ */
NTSTATUS idmap_autorid_db_init(const char *path,
TALLOC_CTX *mem_ctx,
struct db_context **db);