From 858137d0dd8672f25e4bfe21ce79ff280bd2457b Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 21 Apr 2003 01:04:17 +0000 Subject: - Fix modules build of pdb_mysql and pdb_xml - Fix typo in script/installswat.sh (This used to be commit 8d2aec7a73d41a9d32c10abd1c8833ebfd41dd77) --- source3/passdb/pdb_mysql.c | 5 +---- source3/passdb/pdb_xml.c | 7 ++----- 2 files changed, 3 insertions(+), 9 deletions(-) (limited to 'source3/passdb') diff --git a/source3/passdb/pdb_mysql.c b/source3/passdb/pdb_mysql.c index 8af16bd787..f3cb998ee1 100644 --- a/source3/passdb/pdb_mysql.c +++ b/source3/passdb/pdb_mysql.c @@ -1034,8 +1034,5 @@ static NTSTATUS mysqlsam_init(struct pdb_context * pdb_context, struct pdb_metho int pdb_mysql_init() { - if(smb_register_passdb("mysql", mysqlsam_init, PASSDB_INTERFACE_VERSION)) - return 0; - - return 1; + return smb_register_passdb("mysql", mysqlsam_init, PASSDB_INTERFACE_VERSION); } diff --git a/source3/passdb/pdb_xml.c b/source3/passdb/pdb_xml.c index add5b924b8..53285afd24 100644 --- a/source3/passdb/pdb_xml.c +++ b/source3/passdb/pdb_xml.c @@ -534,7 +534,7 @@ NTSTATUS xmlsam_init(PDB_CONTEXT * pdb_context, PDB_METHODS ** pdb_method, return nt_status; } - (*pdb_method)->name = "xmlsam"; + (*pdb_method)->name = "xml"; (*pdb_method)->setsampwent = xmlsam_setsampwent; (*pdb_method)->endsampwent = xmlsam_endsampwent; @@ -566,8 +566,5 @@ NTSTATUS xmlsam_init(PDB_CONTEXT * pdb_context, PDB_METHODS ** pdb_method, int pdb_xml_init() { - if(smb_register_passdb("xml", xmlsam_init, PASSDB_INTERFACE_VERSION)) - return 0; - - return 1; + return smb_register_passdb("xml", xmlsam_init, PASSDB_INTERFACE_VERSION); } -- cgit