]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/backend.c
Fix typo
[openldap] / servers / slapd / backend.c
index c71e1df78c8414133d3cb927f8071248786ad3d5..124ec7c42274eea6f3849fb79cd1eb35bde903c9 100644 (file)
@@ -910,7 +910,9 @@ backend_check_restrictions(
                                return LDAP_CONFIDENTIALITY_REQUIRED;
                        }
 
-                       if( op->o_ndn.bv_len == 0 ) {
+                       if( !( global_allows & SLAP_ALLOW_UPDATE_ANON ) &&
+                               op->o_ndn.bv_len == 0 )
+                       {
                                *text = "modifications require authentication";
                                return LDAP_STRONG_AUTH_REQUIRED;
                        }
@@ -978,7 +980,7 @@ backend_check_restrictions(
                        if ( ! ( conn->c_listener->sl_perms & S_IXUSR ) ) {
                                /* no "x" mode means bind required */
                                *text = "bind required on this listener";
-                               return LDAP_CONFIDENTIALITY_REQUIRED;
+                               return LDAP_STRONG_AUTH_REQUIRED;
                        }
                }