Ensure we have correct parameters to use Windows ACL modules.
authorJeremy Allison <jra@samba.org>
Fri, 22 Oct 2010 23:14:28 +0000 (16:14 -0700)
committerKarolin Seeger <kseeger@samba.org>
Wed, 24 Nov 2010 17:11:25 +0000 (18:11 +0100)
source3/modules/vfs_acl_tdb.c
source3/modules/vfs_acl_xattr.c

index 1dbb3bea803863e1173cfe070486dd95c3f5410c..b26208c377d745310fb149fd1db0c0c8ba3aedde 100644 (file)
@@ -315,13 +315,16 @@ static int connect_acl_tdb(struct vfs_handle_struct *handle,
                return -1;
        }
 
-       /* Ensure we have "inherit acls = yes" if we're
+       /* Ensure we have the parameters correct if we're
         * using this module. */
        DEBUG(2,("connect_acl_tdb: setting 'inherit acls = true' "
-               "and 'dos filemode = true' for service %s\n",
+               "'dos filemode = true' and "
+               "'force unknown acl user = true' for service %s\n",
                service ));
+
        lp_do_parameter(SNUM(handle->conn), "inherit acls", "true");
        lp_do_parameter(SNUM(handle->conn), "dos filemode", "true");
+       lp_do_parameter(SNUM(handle->conn), "force unknown acl user", "true");
 
        return 0;
 }
index e486e2064db7cd80c480e2ffccb2e1d779ac6cd2..46e282d349d2144f50b9fa7b7f19fa17d08405e4 100644 (file)
@@ -185,14 +185,16 @@ static int connect_acl_xattr(struct vfs_handle_struct *handle,
                return ret;
        }
 
-       /* Ensure we have "inherit acls = yes" if we're
-        * using this module. */
-       DEBUG(2,("connect_acl_xattr: setting 'inherit acls = true' "
-               "and 'dos filemode = true' for service %s\n",
-               service ));
+        /* Ensure we have the parameters correct if we're
+         * using this module. */
+        DEBUG(2,("connect_acl_xattr: setting 'inherit acls = true' "
+                "'dos filemode = true' and "
+                "'force unknown acl user = true' for service %s\n",
+                service ));
 
         lp_do_parameter(SNUM(handle->conn), "inherit acls", "true");
         lp_do_parameter(SNUM(handle->conn), "dos filemode", "true");
+        lp_do_parameter(SNUM(handle->conn), "force unknown acl user", "true");
 
        return 0;
 }