summaryrefslogtreecommitdiff
path: root/source3
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>2000-01-14 21:16:59 +0000
committerJeremy Allison <jra@samba.org>2000-01-14 21:16:59 +0000
commit86da0e8ac1bc0197235b012ba6c56f29aef5c74e (patch)
treed297babdf1ab0242fc46610f52db3cbcafe31a5b /source3
parent012be9ee7343f2bc46590783788f38e95ed8ef14 (diff)
downloadsamba-86da0e8ac1bc0197235b012ba6c56f29aef5c74e.tar.gz
samba-86da0e8ac1bc0197235b012ba6c56f29aef5c74e.tar.bz2
samba-86da0e8ac1bc0197235b012ba6c56f29aef5c74e.zip
HP changes for registry querying.
Jeremy. (This used to be commit fd8582cc0a751618f4699f435d561f5de54bf7f4)
Diffstat (limited to 'source3')
-rw-r--r--source3/rpc_server/srv_reg.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/source3/rpc_server/srv_reg.c b/source3/rpc_server/srv_reg.c
index fc3ce9c0d2..f2083fa22f 100644
--- a/source3/rpc_server/srv_reg.c
+++ b/source3/rpc_server/srv_reg.c
@@ -5,6 +5,7 @@
* Copyright (C) Andrew Tridgell 1992-1997,
* Copyright (C) Luke Kenneth Casson Leighton 1996-1997,
* Copyright (C) Paul Ashton 1997.
+ * Copyright (C) Hewlett-Packard Company 1999.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
@@ -145,6 +146,10 @@ static void reg_reply_open_entry(REG_Q_OPEN_ENTRY *q_u,
{
DEBUG(5,("reg_open_entry: %s\n", name));
/* lkcl XXXX do a check on the name, here */
+ if (!strequal(name, "SYSTEM\\CurrentControlSet\\Control\\ProductOptions"))
+ {
+ status = 0xC000000 | NT_STATUS_ACCESS_DENIED;
+ }
}
if (status == 0x0 && !set_lsa_policy_reg_name(&pol, name))
@@ -199,7 +204,10 @@ static void reg_reply_info(REG_Q_INFO *q_u,
{
}
- init_reg_r_info(&r_u, 1, "LanmanNT", 0x12, 0x12, status);
+ /* 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. */
+ init_reg_r_info(&r_u, 1, "ServerNT", 0x12, 0x12, status);
/* store the response in the SMB stream */
reg_io_r_info("", &r_u, rdata, 0);