From: Hallvard Furuseth Date: Thu, 27 Apr 2006 16:12:59 +0000 (+0000) Subject: Support rootdn X-Git-Tag: OPENLDAP_REL_ENG_2_4_1ALPHA~2^2~127 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=2f04f61dc7fb609353db254384f2dd472ecc7a5f;p=openldap Support rootdn --- diff --git a/doc/man/man5/slapd-null.5 b/doc/man/man5/slapd-null.5 index 93275f15f6..e7220c7ee3 100644 --- a/doc/man/man5/slapd-null.5 +++ b/doc/man/man5/slapd-null.5 @@ -18,7 +18,8 @@ is surely the most useful part of .br - Updates return success (unless readonly is on) but do nothing. .br -- Binds fail unless the database option "bind on" is given. +- Binds other than as the rootdn fail unless the database option "bind +on" is given. .br - The .BR slapadd (8) diff --git a/servers/slapd/back-null/null.c b/servers/slapd/back-null/null.c index d5096f5f52..64e71ee610 100644 --- a/servers/slapd/back-null/null.c +++ b/servers/slapd/back-null/null.c @@ -38,7 +38,7 @@ null_back_bind( Operation *op, SlapReply *rs ) { struct null_info *ni = (struct null_info *) op->o_bd->be_private; - if ( ni->ni_bind_allowed ) { + if ( ni->ni_bind_allowed || be_isroot_pw( op ) ) { /* front end will send result on success (0) */ return LDAP_SUCCESS; }