summaryrefslogtreecommitdiff
path: root/source3/sam/idmap_winbind.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_winbind.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_winbind.c')
-rw-r--r--source3/sam/idmap_winbind.c9
1 files changed, 3 insertions, 6 deletions
diff --git a/source3/sam/idmap_winbind.c b/source3/sam/idmap_winbind.c
index bc3c8ad60c..bff870b8fc 100644
--- a/source3/sam/idmap_winbind.c
+++ b/source3/sam/idmap_winbind.c
@@ -135,8 +135,7 @@ static void db_status(void) {
return;
}
-struct idmap_methods winbind_methods = {
-
+static struct idmap_methods winbind_methods = {
db_init,
db_get_sid_from_id,
db_get_id_from_sid,
@@ -146,10 +145,8 @@ struct idmap_methods winbind_methods = {
};
-NTSTATUS idmap_reg_winbind(struct idmap_methods **meth)
+NTSTATUS idmap_winbind_init(void)
{
- *meth = &winbind_methods;
-
- return NT_STATUS_OK;
+ return smb_register_idmap(SMB_IDMAP_INTERFACE_VERSION, "winbind", &winbind_methods);
}