summaryrefslogtreecommitdiff
path: root/source3/smbd/server.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1998-11-23 21:51:05 +0000
committerLuke Leighton <lkcl@samba.org>1998-11-23 21:51:05 +0000
commit4cee58780cb15fe5889b9dd0dc34459512d75062 (patch)
tree07e0db236cfdb786458451b879333bc1d687cf3c /source3/smbd/server.c
parent735926877bb8333a9e862657ea89001bea376b9f (diff)
downloadsamba-4cee58780cb15fe5889b9dd0dc34459512d75062.tar.gz
samba-4cee58780cb15fe5889b9dd0dc34459512d75062.tar.bz2
samba-4cee58780cb15fe5889b9dd0dc34459512d75062.zip
unix instance of group database API
(This used to be commit e76f593b3572ac881f1aa1fb3326d8b7169b0078)
Diffstat (limited to 'source3/smbd/server.c')
-rw-r--r--source3/smbd/server.c20
1 files changed, 1 insertions, 19 deletions
diff --git a/source3/smbd/server.c b/source3/smbd/server.c
index 49816e5d47..e064b52dfa 100644
--- a/source3/smbd/server.c
+++ b/source3/smbd/server.c
@@ -652,26 +652,8 @@ static void usage(char *pname)
codepage_initialise(lp_client_code_page());
fstrcpy(global_myworkgroup, lp_workgroup());
- memset(global_sam_name, 0, sizeof(global_sam_name));
- if (lp_domain_logons())
- {
- if (lp_security() == SEC_USER)
- {
- /* we are PDC (or BDC) for a Domain */
- fstrcpy(global_sam_name, lp_workgroup());
- }
- else if (lp_security() == SEC_DOMAIN)
- {
- /* we are a "PDC", but FOR LOCAL SAM DATABASE ONLY */
- fstrcpy(global_sam_name, global_myname);
- }
- else if (lp_security() == SEC_SHARE)
- {
- DEBUG(0,("ERROR: no Domain functionality in security = share\n"));
- exit(1);
- }
- }
+ get_sam_domain_name();
generate_wellknown_sids();