Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Joe Martin
OpenLDAP
Commits
3a5c1da4
Commit
3a5c1da4
authored
Jul 12, 1999
by
Kurt Zeilenga
Browse files
Fix value_normalize bug. Must uppercase the dn.
Change no search candidates error to success. 'make ldbm' now works again!
parent
a8ae12db
Changes
5
Hide whitespace changes
Inline
Side-by-side
servers/slapd/acl.c
View file @
3a5c1da4
...
...
@@ -320,7 +320,7 @@ acl_access_allowed(
b
->
a_dnattr
,
0
,
0
);
/* see if asker is listed in dnattr */
if
(
(
at
=
attr_find
(
e
->
e_attrs
,
b
->
a_dnattr
))
!=
NULL
&&
value_find
(
at
->
a_vals
,
&
bv
,
at
->
a_syntax
,
1
)
==
0
)
value_find
(
at
->
a_vals
,
&
bv
,
at
->
a_syntax
,
3
)
==
0
)
{
if
(
ACL_IS_SELF
(
b
->
a_access
)
&&
(
val
==
NULL
||
value_cmp
(
&
bv
,
val
,
at
->
a_syntax
,
2
))
)
...
...
servers/slapd/back-ldbm/dn2id.c
View file @
3a5c1da4
...
...
@@ -191,6 +191,7 @@ dn2entry_rw(
if
(
matched
==
NULL
)
return
NULL
;
/* entry does not exist - see how much of the dn does exist */
/* dn_parent checks runs NULL if dn is suffix */
if
(
(
pdn
=
dn_parent
(
be
,
dn
))
!=
NULL
)
{
/* get entry with reader lock */
if
(
(
e
=
dn2entry_r
(
be
,
pdn
,
matched
))
!=
NULL
)
{
...
...
servers/slapd/back-ldbm/search.c
View file @
3a5c1da4
...
...
@@ -134,14 +134,14 @@ ldbm_back_search(
matched_dn
=
ch_strdup
(
e
->
e_ndn
);
cache_return_entry_r
(
&
li
->
li_cache
,
e
);
/* null candidates means we could not find the base object */
if
(
candidates
==
NULL
)
{
/*
return a NO SUCH OBJECT
*/
/*
no candidates
*/
Debug
(
LDAP_DEBUG_TRACE
,
"no candidates
\n
"
,
0
,
0
,
0
);
send_ldap_result
(
conn
,
op
,
LDAP_NO_SUCH_OBJECT
,
matched_dn
,
"no search candidates"
,
NULL
,
NULL
);
send_search_result
(
conn
,
op
,
LDAP_SUCCESS
,
NULL
,
NULL
,
NULL
,
NULL
,
0
);
free
(
matched_dn
);
return
1
;
...
...
@@ -320,7 +320,7 @@ search_candidates(
Filter
*
f
,
*
rf
,
*
af
,
*
lf
;
Debug
(
LDAP_DEBUG_TRACE
,
"search_candidates: base=
\"
%s
\"
s=%d d=%d
\n
"
,
e
->
e_dn
,
scope
,
deref
);
e
->
e_
n
dn
,
scope
,
deref
);
f
=
NULL
;
...
...
servers/slapd/search.c
View file @
3a5c1da4
...
...
@@ -155,7 +155,6 @@ do_search(
"conn=%d op=%d SRCH base=
\"
%s
\"
scope=%d filter=
\"
%s
\"\n
"
,
conn
->
c_connid
,
op
->
o_opid
,
base
,
scope
,
fstr
);
#if defined( SLAPD_MONITOR_DN ) || defined( SLAPD_CONFIG_DN ) || defined( SLAPD_SCHEMA_DN )
if
(
scope
==
LDAP_SCOPE_BASE
)
{
#if defined( SLAPD_MONITOR_DN )
if
(
strcmp
(
base
,
SLAPD_MONITOR_DN
)
==
0
)
{
...
...
@@ -163,30 +162,25 @@ do_search(
goto
return_results
;
}
#endif
#if defined( SLAPD_CONFIG_DN )
if
(
strcmp
(
base
,
SLAPD_CONFIG_DN
)
==
0
)
{
config_info
(
conn
,
op
);
goto
return_results
;
}
#endif
#if defined( SLAPD_SCHEMA_DN )
if
(
strcmp
(
base
,
SLAPD_SCHEMA_DN
)
==
0
)
{
schema_info
(
conn
,
op
,
attrs
,
attrsonly
);
goto
return_results
;
}
#endif
}
#endif
/* monitor or config or schema dn */
if
(
strcmp
(
base
,
LDAP_ROOT_DSE
)
==
0
)
{
if
(
scope
==
LDAP_SCOPE_BASE
)
{
if
(
strcmp
(
base
,
LDAP_ROOT_DSE
)
==
0
)
{
root_dse_info
(
conn
,
op
,
attrs
,
attrsonly
);
}
else
{
send_ldap_result
(
conn
,
op
,
rc
=
LDAP_REFERRAL
,
NULL
,
NULL
,
default_referral
,
NULL
);
goto
return_results
;
}
goto
return_results
;
}
/*
...
...
servers/slapd/value.c
View file @
3a5c1da4
...
...
@@ -89,7 +89,7 @@ value_normalize(
}
if
(
syntax
&
SYNTAX_DN
)
{
(
void
)
dn_normalize
(
s
);
(
void
)
dn_normalize
_case
(
s
);
return
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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