summaryrefslogtreecommitdiffstats
path: root/source/utils
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-05-18 23:57:28 +0000
committerJeremy Allison <jra@samba.org>1998-05-18 23:57:28 +0000
commit27ca536ad974242524c12f7100e419d9e7f9647f (patch)
treec571e8a80cfdb6e5559c7b11fb87f666fe60f893 /source/utils
parent7d332b2493d2089d09521250fc9b72d8953307c0 (diff)
downloadsamba-27ca536ad974242524c12f7100e419d9e7f9647f.tar.gz
samba-27ca536ad974242524c12f7100e419d9e7f9647f.tar.xz
samba-27ca536ad974242524c12f7100e419d9e7f9647f.zip
Abstracted all the crappy password interfaces through an indirect
function table, selectable at compile time. This should make the code that implements all the password functions much cleaner, as it's now very clear exactly what a particular password database needs to provide to Samba. Jeremy.
Diffstat (limited to 'source/utils')
-rw-r--r--source/utils/smbpasswd.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/source/utils/smbpasswd.c b/source/utils/smbpasswd.c
index c01f29f94fb..8e744c86410 100644
--- a/source/utils/smbpasswd.c
+++ b/source/utils/smbpasswd.c
@@ -297,8 +297,14 @@ int main(int argc, char **argv)
charset_initialise();
+ if(!initialize_password_db()) {
+ fprintf(stderr, "%s: Can't setup password database vectors.\n", prog_name);
+ exit(1);
+ }
+
if (!lp_load(servicesf,True,False,False)) {
fprintf(stderr, "%s: Can't load %s - run testparm to debug it\n", prog_name, servicesf);
+ exit(1);
}
if(!get_myname(myhostname,NULL)) {