From fdc9f417d89fdf9dd6afbc22843d70585e195c9d Mon Sep 17 00:00:00 2001 From: Andrew Tridgell Date: Tue, 30 Nov 2004 04:33:27 +0000 Subject: r4011: get rid of rpc_secdes.h and replace it with a single sane set of definitions for security access masks, in security.idl The previous definitions were inconsistently named, and contained many duplicate and misleading entries. I kept finding myself tripping up while using them. (This used to be commit 01c0fa722f80ceeb3f81f01987de95f365a2ed3d) --- source4/smb_server/service.c | 19 ------------------- 1 file changed, 19 deletions(-) (limited to 'source4/smb_server/service.c') diff --git a/source4/smb_server/service.c b/source4/smb_server/service.c index 815a58ce70..12a983e41b 100644 --- a/source4/smb_server/service.c +++ b/source4/smb_server/service.c @@ -161,25 +161,6 @@ static NTSTATUS make_connection_snum(struct smbsrv_request *req, tcon->service = snum; - /* - * New code to check if there's a share security descripter - * added from NT server manager. This is done after the - * smb.conf checks are done as we need a uid and token. JRA. - * - */ - - if (!share_access_check(req, tcon, snum, SA_RIGHT_FILE_WRITE_DATA)) { - if (!share_access_check(req, tcon, snum, SA_RIGHT_FILE_READ_DATA)) { - /* No access, read or write. */ - DEBUG(0,( "make_connection: connection to %s denied due to security descriptor.\n", - lp_servicename(snum))); - conn_free(req->smb_conn, tcon); - return NT_STATUS_ACCESS_DENIED; - } else { - tcon->read_only = True; - } - } - /* init ntvfs function pointers */ status = ntvfs_init_connection(req, type); if (!NT_STATUS_IS_OK(status)) { -- cgit