summaryrefslogtreecommitdiffstats
path: root/package/network/services/samba36/patches/260-remove_samr.patch
diff options
context:
space:
mode:
Diffstat (limited to 'package/network/services/samba36/patches/260-remove_samr.patch')
-rw-r--r--package/network/services/samba36/patches/260-remove_samr.patch18
1 files changed, 18 insertions, 0 deletions
diff --git a/package/network/services/samba36/patches/260-remove_samr.patch b/package/network/services/samba36/patches/260-remove_samr.patch
index 7e55573056..aeca3ed556 100644
--- a/package/network/services/samba36/patches/260-remove_samr.patch
+++ b/package/network/services/samba36/patches/260-remove_samr.patch
@@ -142,3 +142,21 @@
if (!str1 || !str2 || !UserName || !p) {
return False;
}
+--- a/source3/rpc_server/srv_pipe.c
++++ b/source3/rpc_server/srv_pipe.c
+@@ -409,6 +409,7 @@ static bool check_bind_req(struct pipes_
+ context_fns->syntax = *abstract;
+
+ context_fns->allow_connect = lp_allow_dcerpc_auth_level_connect();
++#ifdef SAMR_SUPPORT
+ /*
+ * for the samr and the lsarpc interfaces we don't allow "connect"
+ * auth_level by default.
+@@ -417,6 +418,7 @@ static bool check_bind_req(struct pipes_
+ if (ok) {
+ context_fns->allow_connect = false;
+ }
++#endif
+ ok = ndr_syntax_id_equal(abstract, &ndr_table_lsarpc.syntax_id);
+ if (ok) {
+ context_fns->allow_connect = false;