diff options
author | Luke Leighton <lkcl@samba.org> | 2000-05-28 23:34:34 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-05-28 23:34:34 +0000 |
commit | 140523dc46786bff24d9940728baacfa3a359b80 (patch) | |
tree | 3382acd3d5d6dcb486cdba22350e76670e1cfaf7 /source3/rpc_server | |
parent | 325cf05312a47751bb0c2fcab5c2082aae3366de (diff) | |
download | samba-140523dc46786bff24d9940728baacfa3a359b80.tar.gz samba-140523dc46786bff24d9940728baacfa3a359b80.tar.bz2 samba-140523dc46786bff24d9940728baacfa3a359b80.zip |
lp_server_role() + use in srv_reg.
(This used to be commit 82e47e268ca33dd7e692c5e6d0571428307b5287)
Diffstat (limited to 'source3/rpc_server')
-rw-r--r-- | source3/rpc_server/srv_reg.c | 21 |
1 files changed, 20 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_reg.c b/source3/rpc_server/srv_reg.c index ea7f3ecd5d..ca3911121f 100644 --- a/source3/rpc_server/srv_reg.c +++ b/source3/rpc_server/srv_reg.c @@ -186,7 +186,7 @@ static void reg_reply_info(REG_Q_INFO *q_u, prs_struct *rdata) { uint32 status = 0; - fstring key = "ServerNT"; /* always a non-PDC */ + char *key; uint32 type=0x1; /* key type: REG_SZ */ UNISTR2 uni_key; @@ -201,6 +201,25 @@ static void reg_reply_info(REG_Q_INFO *q_u, status = NT_STATUS_INVALID_HANDLE; } + switch (lp_server_role()) + { + case ROLE_DOMAIN_PDC: + case ROLE_DOMAIN_BDC: + { + key = "LanmanNT"; + break; + } + case ROLE_STANDALONE: + { + key = "ServerNT"; + break; + } + case ROLE_DOMAIN_MEMBER: + { + key = "WinNT"; + break; + } + } /* This makes the server look like a member server to clients */ /* which tells clients that we have our own local user and */ /* group databases and helps with ACL support. */ |