summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Bartlett <abartlet@samba.org>2002-01-26 06:16:36 +0000
committerAndrew Bartlett <abartlet@samba.org>2002-01-26 06:16:36 +0000
commit306ee55f91c308cc1c9e6193c92e515b6dabf7c7 (patch)
treeacdc20ac1de4cd281f1444e08220301c3ea8ec93
parenta7b5354078e6dfaf0d6c4abaf8b3211fd2bda42b (diff)
downloadsamba-306ee55f91c308cc1c9e6193c92e515b6dabf7c7.tar.gz
samba-306ee55f91c308cc1c9e6193c92e515b6dabf7c7.tar.bz2
samba-306ee55f91c308cc1c9e6193c92e515b6dabf7c7.zip
The new plugable password backend system needs to be initialised after
lp_load(). Andrew Bartlett (This used to be commit 168c712bf3b8be19e6e72b7bf4563ed3ae87c176)
-rw-r--r--source3/utils/smbgroupedit.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/source3/utils/smbgroupedit.c b/source3/utils/smbgroupedit.c
index f32f7b7129..d6b407fcce 100644
--- a/source3/utils/smbgroupedit.c
+++ b/source3/utils/smbgroupedit.c
@@ -239,17 +239,17 @@ int main (int argc, char **argv)
return 0;
}
- if(!initialize_password_db(True)) {
- fprintf(stderr, "Can't setup password database vectors.\n");
- exit(1);
- }
-
if (!lp_load(dyn_CONFIGFILE,True,False,False)) {
fprintf(stderr, "Can't load %s - run testparm to debug it\n",
dyn_CONFIGFILE);
exit(1);
}
+ if(!initialize_password_db(True)) {
+ fprintf(stderr, "Can't setup password database vectors.\n");
+ exit(1);
+ }
+
if(pdb_generate_sam_sid()==False) {
printf("Can not read machine SID\n");
return 0;