Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
O
OpenLDAP
Manage
Activity
Members
Labels
Plan
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Christopher Ng
OpenLDAP
Commits
d2497140
Commit
d2497140
authored
21 years ago
by
Luke Howard
Browse files
Options
Downloads
Patches
Plain Diff
s/SERVER_SEARCH_FLAG/SEARCH_FLAG
parent
ad7bfa1c
Branches
Branches containing commit
Tags
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
include/ldap.h
+2
-2
2 additions, 2 deletions
include/ldap.h
servers/slapd/controls.c
+2
-2
2 additions, 2 deletions
servers/slapd/controls.c
with
4 additions
and
4 deletions
include/ldap.h
+
2
−
2
View file @
d2497140
...
...
@@ -244,8 +244,8 @@ typedef struct ldapcontrol {
#define LDAP_CONTROL_X_INCREMENTAL_VALUES "1.2.840.113556.1.4.802"
#define LDAP_CONTROL_X_TREE_DELETE "1.2.840.113556.1.4.805"
#define LDAP_CONTROL_X_SEARCH_OPTIONS "1.2.840.113556.1.4.1340"
#define LDAP_
SERVER_
SEARCH_FLAG_DOMAIN_SCOPE 1
/* do not generate referrals */
#define LDAP_
SERVER_
SEARCH_FLAG_PHANTOM_ROOT 2
/* search all NCs subordinate to base */
#define LDAP_SEARCH_FLAG_DOMAIN_SCOPE
1
/* do not generate referrals */
#define LDAP_SEARCH_FLAG_PHANTOM_ROOT
2
/* search all NCs subordinate to base */
/* not implemented in slapd(8) */
#define LDAP_CONTROL_SORTREQUEST "1.2.840.113556.1.4.473"
/* RFC 2891 */
...
...
This diff is collapsed.
Click to expand it.
servers/slapd/controls.c
+
2
−
2
View file @
d2497140
...
...
@@ -1278,7 +1278,7 @@ static int parseSearchOptions (
(
void
)
ber_free
(
ber
,
1
);
if
(
search_flags
&
LDAP_
SERVER_
SEARCH_FLAG_DOMAIN_SCOPE
)
{
if
(
search_flags
&
LDAP_SEARCH_FLAG_DOMAIN_SCOPE
)
{
if
(
op
->
o_domain_scope
!=
SLAP_NO_CONTROL
)
{
rs
->
sr_text
=
"searchOptions control specified multiple times or with domainScope control"
;
return
LDAP_PROTOCOL_ERROR
;
...
...
@@ -1289,7 +1289,7 @@ static int parseSearchOptions (
:
SLAP_NONCRITICAL_CONTROL
;
}
if
(
search_flags
&
~
(
LDAP_
SERVER_
SEARCH_FLAG_DOMAIN_SCOPE
)
)
{
if
(
search_flags
&
~
(
LDAP_SEARCH_FLAG_DOMAIN_SCOPE
)
)
{
/* Other search flags not recognised so far */
rs
->
sr_text
=
"searchOptions contained invalid flag"
;
return
LDAP_UNAVAILABLE_CRITICAL_EXTENSION
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment