From 69b50029f4472d29e823e2b541a59a420ab706cb Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Thu, 29 May 2003 19:08:40 +0000 Subject: Add smb_register_idmap(). Based on a patch from metze (This used to be commit 7e352f5c62c4889bdf2662dded1e74a354890dc7) --- source3/sam/idmap_winbind.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'source3/sam/idmap_winbind.c') 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); } -- cgit