summaryrefslogtreecommitdiff
path: root/source3/passdb/pdb_xml.c
diff options
context:
space:
mode:
Diffstat (limited to 'source3/passdb/pdb_xml.c')
-rw-r--r--source3/passdb/pdb_xml.c7
1 files changed, 2 insertions, 5 deletions
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);
}