git.samba.org
/
samba.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4e617c6
)
r5460: Fix "restrict anonymous = 1". If we have schannel connection, we must be
author
Jim McDonough
<jmcd@samba.org>
Sat, 19 Feb 2005 11:09:52 +0000
(11:09 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 15:55:41 +0000
(10:55 -0500)
validated with a user, so allow it even if pipe itself had an anonymous
connection.
(This used to be commit
469a649ad7271159960335419fd3ce2633cf2c8b
)
source3/rpc_server/srv_lsa_hnd.c
patch
|
blob
|
history
diff --git
a/source3/rpc_server/srv_lsa_hnd.c
b/source3/rpc_server/srv_lsa_hnd.c
index 0f9f239a029e36624edef14f8e4ba8fd6c19687d..68072b528aaac439872014e4fd31796e59e34b40 100644
(file)
--- a/
source3/rpc_server/srv_lsa_hnd.c
+++ b/
source3/rpc_server/srv_lsa_hnd.c
@@
-252,6
+252,10
@@
BOOL pipe_access_check(pipes_struct *p)
if (lp_restrict_anonymous() > 0) {
user_struct *user = get_valid_user_struct(p->vuid);
+ /* schannel, so we must be ok */
+ if (p->netsec_auth_validated)
+ return True;
+
if (!user) {
DEBUG(3, ("invalid vuid %d\n", p->vuid));
return False;