]> git.sur5r.net Git - openldap/commitdiff
import cleanup ITS#4781 enhancement from HEAD
authorPierangelo Masarati <ando@openldap.org>
Sat, 6 Jan 2007 00:45:38 +0000 (00:45 +0000)
committerPierangelo Masarati <ando@openldap.org>
Sat, 6 Jan 2007 00:45:38 +0000 (00:45 +0000)
servers/slapd/back-ldap/bind.c

index 83c12237f30366dedb8b0e5ee3799439ce5c8266..2fb5f27488a270ff44b886c8c3200a4c4243cca7 100644 (file)
@@ -1876,7 +1876,10 @@ ldap_back_is_proxy_authz( Operation *op, SlapReply *rs, ldap_back_send_t sendok,
 
        default:
                /* NOTE: rootdn can always idassert */
-               if ( BER_BVISNULL( &ndn ) && li->li_idassert_authz == NULL ) {
+               if ( BER_BVISNULL( &ndn )
+                       && li->li_idassert_authz == NULL
+                       && !( li->li_idassert_flags & LDAP_BACK_AUTH_AUTHZ_ALL ) )
+               {
                        if ( li->li_idassert_flags & LDAP_BACK_AUTH_PRESCRIPTIVE ) {
                                rs->sr_err = LDAP_INAPPROPRIATE_AUTH;
                                if ( sendok & LDAP_BACK_SENDERR ) {