Skip to content
Snippets Groups Projects
Commit ba5064f0 authored by Quanah Gibson-Mount's avatar Quanah Gibson-Mount
Browse files

a connection cannot be privileged and be in the avl tree at the same time

parent dbb07a2a
No related branches found
No related tags found
No related merge requests found
......@@ -145,7 +145,7 @@ meta_back_bind( Operation *op, SlapReply *rs )
rc = LDAP_SUCCESS;
gotit = 1;
} else if ( isroot == 0 ) {
} else if ( !isroot ) {
/*
* A bind operation is expected to have
* ONE CANDIDATE ONLY!
......@@ -249,10 +249,15 @@ meta_back_bind( Operation *op, SlapReply *rs )
meta_back_print_conntree( mi, "<<< meta_back_bind" );
#endif /* META_BACK_PRINT_CONNTREE */
if ( lerr == 0 ) {
#if 0
/* NOTE: a connection cannot be privileged
* and be in the avl tree at the same time
*/
if ( isroot ) {
LDAP_BACK_CONN_ISPRIV_SET( mc );
LDAP_BACK_PCONN_SET( mc, op );
}
#endif
LDAP_BACK_CONN_CACHED_SET( mc );
} else {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment