Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
8c1937c2
Commit
8c1937c2
authored
Jul 14, 1999
by
Kurt Zeilenga
Browse files
Didn't mean to include alias codes in last commit nor
send_search_reference changes.
parent
4efa87ee
Changes
2
Hide whitespace changes
Inline
Side-by-side
servers/slapd/back-ldbm/search.c
View file @
8c1937c2
...
...
@@ -49,6 +49,7 @@ ldbm_back_search(
Debug
(
LDAP_DEBUG_TRACE
,
"=> ldbm_back_search
\n
"
,
0
,
0
,
0
);
#ifdef SLAPD_ALIASES
/* get entry with reader lock */
if
(
deref
&
LDAP_DEREF_FINDING
)
{
e
=
alias_dn2entry_r
(
be
,
base
,
&
matched
,
&
err
);
...
...
@@ -57,6 +58,10 @@ ldbm_back_search(
e
=
dn2entry_r
(
be
,
base
,
&
matched
);
err
=
e
!=
NULL
?
LDAP_SUCCESS
:
LDAP_REFERRAL
;
}
#else
e
=
dn2entry_r
(
be
,
base
,
&
matched
);
err
=
e
!=
NULL
?
LDAP_SUCCESS
:
LDAP_REFERRAL
;
#endif
if
(
e
==
NULL
)
{
char
*
matched_dn
=
NULL
;
...
...
@@ -176,6 +181,7 @@ ldbm_back_search(
goto
loop_continue
;
}
#ifdef SLAPD_ALIASES
if
(
deref
&
LDAP_DEREF_SEARCHING
&&
is_entry_alias
(
e
)
)
{
Entry
*
newe
;
...
...
@@ -208,6 +214,7 @@ ldbm_back_search(
scopeok
=
1
;
}
#endif
/*
* if it's a referral, add it to the list of referrals. only do
...
...
servers/slapd/tools/mimic.c
View file @
8c1937c2
...
...
@@ -85,6 +85,7 @@ int send_search_reference(
Operation
*
op
,
Entry
*
e
,
struct
berval
**
refs
,
int
scope
,
LDAPControl
**
ctrls
,
struct
berval
***
v2refs
)
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment