diff options
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/server.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c index 2f374e48aa..df56dfe9ab 100644 --- a/source3/smbd/server.c +++ b/source3/smbd/server.c @@ -825,13 +825,18 @@ static void usage(char *pname) /* possibly reload the services file. */ reload_services(True); - if (init_group_mapping()==False) { - printf("Could not open tdb mapping file.\n"); + if(!pdb_generate_sam_sid()) { + DEBUG(0,("ERROR: Samba cannot create a SAM SID.\n")); + exit(1); + } + + if (!init_group_mapping()) { + DEBUG(0,("Could not open tdb mapping file.\n")); return 0; } - if(!pdb_generate_sam_sid()) { - DEBUG(0,("ERROR: Samba cannot create a SAM SID.\n")); + if (!init_account_policy()) { + DEBUG(0,("Could not open account policy tdb.\n")); exit(1); } |