diff options
Diffstat (limited to 'source3/passdb')
-rw-r--r-- | source3/passdb/pdb_mysql.c | 5 | ||||
-rw-r--r-- | source3/passdb/pdb_xml.c | 7 |
2 files changed, 3 insertions, 9 deletions
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); } |