summaryrefslogtreecommitdiffstats
path: root/source/rpc_server/srv_netlog.c
diff options
context:
space:
mode:
authorJeremy Allison <jra@samba.org>1998-06-05 20:46:05 +0000
committerJeremy Allison <jra@samba.org>1998-06-05 20:46:05 +0000
commit5f46c7c4b11a75f1ffbd806cde915b4bf28232db (patch)
tree5078cb9c1892aafc0d7f79eab5920a8b32e19226 /source/rpc_server/srv_netlog.c
parentae3510e9fb309be343e245d8460c1ceb8164077b (diff)
downloadsamba-5f46c7c4b11a75f1ffbd806cde915b4bf28232db.tar.gz
samba-5f46c7c4b11a75f1ffbd806cde915b4bf28232db.tar.xz
samba-5f46c7c4b11a75f1ffbd806cde915b4bf28232db.zip
loadparm.c: Did it ! Changed defaults for 'case preserve' and 'short case preserve'.
Also removed 'domain allow/deny' parameters. shmem_sysv.c: Added strerror code so I can see why sysV calls are failing. lib/rpc/server/srv_netlog.c: Removed code that used 'domain allow/deny' parameters - replaced with a comment so I will remember to fix this later. Jeremy.
Diffstat (limited to 'source/rpc_server/srv_netlog.c')
-rw-r--r--source/rpc_server/srv_netlog.c12
1 files changed, 11 insertions, 1 deletions
diff --git a/source/rpc_server/srv_netlog.c b/source/rpc_server/srv_netlog.c
index 821945b7579..0679e876e2b 100644
--- a/source/rpc_server/srv_netlog.c
+++ b/source/rpc_server/srv_netlog.c
@@ -229,7 +229,16 @@ static void net_reply_sam_logoff(NET_Q_SAM_LOGOFF *q_s, prs_struct *rdata,
static BOOL get_md4pw(char *md4pw, char *mach_name, char *mach_acct)
{
struct smb_passwd *smb_pass;
- extern int Client;
+
+#if 0
+ /*
+ * Currently this code is redundent as we already have a filter
+ * by hostname list. What this code really needs to do is to
+ * get a hosts allowed/hosts denied list from the SAM database
+ * on a per user basis, and make the access decision there.
+ * I will leave this code here for now as a reminder to implement
+ * this at a later date. JRA.
+ */
if (!allow_access(lp_domain_hostsdeny(), lp_domain_hostsallow(),
client_name(Client), client_addr(Client)))
@@ -237,6 +246,7 @@ static BOOL get_md4pw(char *md4pw, char *mach_name, char *mach_acct)
DEBUG(0,("get_md4pw: Workstation %s denied access to domain\n", mach_acct));
return False;
}
+#endif /* 0 */
become_root(True);
smb_pass = getsmbpwnam(mach_acct);