]> git.sur5r.net Git - openldap/commitdiff
Disallow anonymous modification.
authorKurt Zeilenga <kurt@openldap.org>
Thu, 19 Apr 2001 19:28:15 +0000 (19:28 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Thu, 19 Apr 2001 19:28:15 +0000 (19:28 +0000)
servers/slapd/backend.c

index 600d61d7f299dcfba4bfe018e8cea89d9f4f9602..19802a61d57b8e52f1a216e960332bf80e289442 100644 (file)
@@ -833,6 +833,11 @@ backend_check_restrictions(
                                *text = "update confidentiality required";
                                return LDAP_CONFIDENTIALITY_REQUIRED;
                        }
+
+                       if( op->o_ndn == NULL ) {
+                               *text = "modifications require authentication";
+                               return LDAP_OPERATIONS_ERROR;
+                       }
                }
        }