From 2f04f61dc7fb609353db254384f2dd472ecc7a5f Mon Sep 17 00:00:00 2001 From: Hallvard Furuseth Date: Thu, 27 Apr 2006 16:12:59 +0000 Subject: [PATCH] Support rootdn --- doc/man/man5/slapd-null.5 | 3 ++- servers/slapd/back-null/null.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) 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; } -- 2.39.5