diff options
author | Andrew Bartlett <abartlet@samba.org> | 2006-09-29 04:45:15 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 14:20:26 -0500 |
commit | 31454d2e8b70f7aca87099dba25abe790781c7a7 (patch) | |
tree | d78b19f48d999df4ec5f475c91fff16d883ecf44 /source4/ldap_server | |
parent | 736e797983d8fa5bd7467a1d47bd137290abb478 (diff) | |
download | samba-31454d2e8b70f7aca87099dba25abe790781c7a7.tar.gz samba-31454d2e8b70f7aca87099dba25abe790781c7a7.tar.bz2 samba-31454d2e8b70f7aca87099dba25abe790781c7a7.zip |
r18989: Fixes found by these two LDAP testsuites:
- http://www.ee.oulu.fi/research/ouspg/protos/testing/c06/ldapv3/
- http://gleg.net/protover_ldap_sample.shtml
Also fixes found by a subsequent audit of the code for similar issues.
(This used to be commit 441a4f6262459dabfefd9bb12622ada9c007a60c)
Diffstat (limited to 'source4/ldap_server')
-rw-r--r-- | source4/ldap_server/ldap_backend.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source4/ldap_server/ldap_backend.c b/source4/ldap_server/ldap_backend.c index e8e3e293b7..3cd1f1c58a 100644 --- a/source4/ldap_server/ldap_backend.c +++ b/source4/ldap_server/ldap_backend.c @@ -220,6 +220,10 @@ static NTSTATUS ldapsrv_SearchRequest(struct ldapsrv_call *call) scope = LDB_SCOPE_SUBTREE; success_limit = 0; break; + default: + result = LDAP_PROTOCOL_ERROR; + errstr = "Invalid scope"; + break; } if (req->num_attributes >= 1) { |