mirror of
https://git.openldap.org/openldap/openldap.git
synced 2025-12-30 03:29:35 -05:00
cleanup
This commit is contained in:
parent
5fbdf3f3eb
commit
b4dbfb570a
1 changed files with 3 additions and 6 deletions
|
|
@ -420,15 +420,12 @@ ldap_back_exop_whoami(
|
|||
if ( op->oq_extended.rs_reqdata != NULL ) {
|
||||
/* no request data should be provided */
|
||||
rs->sr_text = "no request data expected";
|
||||
return LDAP_PROTOCOL_ERROR;
|
||||
return rs->sr_err = LDAP_PROTOCOL_ERROR;
|
||||
}
|
||||
|
||||
{
|
||||
rs->sr_err = backend_check_restrictions( op, rs,
|
||||
rs->sr_err = backend_check_restrictions( op, rs,
|
||||
(struct berval *)&slap_EXOP_WHOAMI );
|
||||
|
||||
if( rs->sr_err != LDAP_SUCCESS ) return rs->sr_err;
|
||||
}
|
||||
if( rs->sr_err != LDAP_SUCCESS ) return rs->sr_err;
|
||||
|
||||
/* if auth'd by back-ldap and request is proxied, forward it */
|
||||
if ( op->o_conn->c_authz_backend && !strcmp(op->o_conn->c_authz_backend->be_type, "ldap" ) && !dn_match(&op->o_ndn, &op->o_conn->c_ndn)) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue