]> git.sur5r.net Git - openldap/commitdiff
don't idassert anon2anon (ITS#4321)
authorPierangelo Masarati <ando@openldap.org>
Tue, 10 Jan 2006 13:17:31 +0000 (13:17 +0000)
committerPierangelo Masarati <ando@openldap.org>
Tue, 10 Jan 2006 13:17:31 +0000 (13:17 +0000)
servers/slapd/back-ldap/bind.c

index 54004ebee48c77596c57cb6246b86e887fca28ad..55984982f6f22b931df578d25585ba31814ce558 100644 (file)
@@ -1366,8 +1366,14 @@ ldap_back_proxy_authz_ctrl(
        }
 
        switch ( mode ) {
-       case LDAP_BACK_IDASSERT_LEGACY:
        case LDAP_BACK_IDASSERT_SELF:
+               if ( BER_BVISNULL( &ndn ) ) {
+                       goto done;
+               }
+               assertedID = ndn;
+               break;
+
+       case LDAP_BACK_IDASSERT_LEGACY:
                /* original behavior:
                 * assert the client's identity */
                if ( BER_BVISNULL( &ndn ) ) {