Skip to content

Commit

Permalink
Issue 4480 - Unexpected info returned to ldap request (#4491)
Browse files Browse the repository at this point in the history
Bug description:
	If the bind entry does not exist, the bind result info
        reports that 'No such entry'. It should not give any
        information if the target entry exists or not

Fix description:
	Does not return any additional information during a bind

relates: #4480

Reviewed by: William Brown, Viktor Ashirov, Mark Reynolds (thank you all)

Platforms tested:  F31
  • Loading branch information
tbordaz authored and mreynolds389 committed Jan 28, 2021
1 parent b2c6764 commit 16d9020
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion ldap/servers/slapd/back-ldbm/ldbm_config.c
Original file line number Diff line number Diff line change
Expand Up @@ -1234,7 +1234,7 @@ ldbm_config_search_entry_callback(Slapi_PBlock *pb __attribute__((unused)),
if (attrs) {
for (size_t i = 0; attrs[i]; i++) {
if (ldbm_config_moved_attr(attrs[i])) {
slapi_pblock_set(pb, SLAPI_PB_RESULT_TEXT, "at least one required attribute has been moved to the BDB scecific configuration entry");
slapi_pblock_set(pb, SLAPI_RESULT_TEXT, "at least one required attribute has been moved to the BDB scecific configuration entry");
break;
}
}
Expand Down
2 changes: 1 addition & 1 deletion ldap/servers/slapd/result.c
Original file line number Diff line number Diff line change
Expand Up @@ -355,7 +355,7 @@ send_ldap_result_ext(
if (text) {
pbtext = text;
} else {
slapi_pblock_get(pb, SLAPI_PB_RESULT_TEXT, &pbtext);
slapi_pblock_get(pb, SLAPI_RESULT_TEXT, &pbtext);
}

if (operation == NULL) {
Expand Down

0 comments on commit 16d9020

Please sign in to comment.