From: Kurt Zeilenga Date: Thu, 19 Apr 2001 19:28:15 +0000 (+0000) Subject: Disallow anonymous modification. X-Git-Tag: LDBM_PRE_GIANT_RWLOCK~1469 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=c2c7ccc22806d9c00e9233f5cdd398c464bfb52a;p=openldap Disallow anonymous modification. --- diff --git a/servers/slapd/backend.c b/servers/slapd/backend.c index 600d61d7f2..19802a61d5 100644 --- a/servers/slapd/backend.c +++ b/servers/slapd/backend.c @@ -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; + } } }