summaryrefslogtreecommitdiff
path: root/source4/ntvfs/config.m4
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2004-10-03 06:46:29 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 12:59:34 -0500
commit5a872512b0d6ed09c515f7f85c29add5934361d3 (patch)
tree2735134803ace3bd1ad8a53f7b7c460faedc1250 /source4/ntvfs/config.m4
parent6b481af7f2860157dd0fa12e2cc6dbbc7c22a20e (diff)
downloadsamba-5a872512b0d6ed09c515f7f85c29add5934361d3.tar.gz
samba-5a872512b0d6ed09c515f7f85c29add5934361d3.tar.bz2
samba-5a872512b0d6ed09c515f7f85c29add5934361d3.zip
r2794: a very simple version of the unixuid NTVFS pass-thru module. In
conjunction with the posix backend this gives us a way to correctly setup the unix security context in Samba4. I chose the following method to determine the unix uid's and gid's to use given the list of SIDs from the login process - look for a "UnixID" field in the sam record. If present, then use it (check if the record is of the right type as well) - if UnixID is not present, then look for the "UnixName" sam field. If it is present then use getpwnam() or getgrnam() to find the unix id. - if UnixID and UnixName are not present, then look for a unix account of the right type called by the same name as the sAMAccountName field. - if none of the above work then fail the operation with NT_STATUS_ACCESS_DENIED obviously these steps only work well with a local SAM. It will need to be more sophisticated in future. I did not put any cache in place at all. That will need to be added for decent performance. (This used to be commit 78b67d19b9766131f0270e451089ee5bb1aa8bd9)
Diffstat (limited to 'source4/ntvfs/config.m4')
-rw-r--r--source4/ntvfs/config.m43
1 files changed, 3 insertions, 0 deletions
diff --git a/source4/ntvfs/config.m4 b/source4/ntvfs/config.m4
index 051a6883e2..dd8e60adde 100644
--- a/source4/ntvfs/config.m4
+++ b/source4/ntvfs/config.m4
@@ -3,6 +3,9 @@ dnl # NTVFS Server subsystem
SMB_INCLUDE_M4(ntvfs/posix/config.m4)
SMB_MODULE_MK(ntvfs_posix, NTVFS, STATIC, ntvfs/posix/config.mk)
+SMB_INCLUDE_M4(ntvfs/unixuid/config.m4)
+SMB_MODULE_MK(ntvfs_unixuid, NTVFS, STATIC, ntvfs/unixuid/config.mk)
+
SMB_MODULE_MK(ntvfs_cifs, NTVFS, STATIC, ntvfs/config.mk)
SMB_MODULE_MK(ntvfs_simple, NTVFS, STATIC, ntvfs/config.mk)