summaryrefslogtreecommitdiff
path: root/source3/sam/idmap_tdb.c
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2003-05-29 19:08:40 +0000
committerJelmer Vernooij <jelmer@samba.org>2003-05-29 19:08:40 +0000
commit69b50029f4472d29e823e2b541a59a420ab706cb (patch)
treeaf912650e07b1f0b9f8f33131e8081cc12ae675f /source3/sam/idmap_tdb.c
parent44fa85fd60baf1dba4e4858ee23b9ebbd7e13ef9 (diff)
downloadsamba-69b50029f4472d29e823e2b541a59a420ab706cb.tar.gz
samba-69b50029f4472d29e823e2b541a59a420ab706cb.tar.bz2
samba-69b50029f4472d29e823e2b541a59a420ab706cb.zip
Add smb_register_idmap(). Based on a patch from metze
(This used to be commit 7e352f5c62c4889bdf2662dded1e74a354890dc7)
Diffstat (limited to 'source3/sam/idmap_tdb.c')
-rw-r--r--source3/sam/idmap_tdb.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/source3/sam/idmap_tdb.c b/source3/sam/idmap_tdb.c
index 31c12241bf..373fb66a1b 100644
--- a/source3/sam/idmap_tdb.c
+++ b/source3/sam/idmap_tdb.c
@@ -424,7 +424,7 @@ static void db_idmap_status(void)
/* Display complete mapping of users and groups to rids */
}
-struct idmap_methods db_methods = {
+static struct idmap_methods db_methods = {
db_idmap_init,
db_get_sid_from_id,
@@ -435,9 +435,7 @@ struct idmap_methods db_methods = {
};
-NTSTATUS idmap_reg_tdb(struct idmap_methods **meth)
+NTSTATUS idmap_tdb_init()
{
- *meth = &db_methods;
-
- return NT_STATUS_OK;
+ return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "tdb", &db_methods);
}