]> git.sur5r.net Git - openldap/commitdiff
add new isroot_dn helper
authorPierangelo Masarati <ando@openldap.org>
Mon, 5 Apr 2004 17:30:30 +0000 (17:30 +0000)
committerPierangelo Masarati <ando@openldap.org>
Mon, 5 Apr 2004 17:30:30 +0000 (17:30 +0000)
servers/slapd/backend.c

index 21dd29003f1f37591a5de3e4625c14d8d5b9a9cf..6c7fd50a0c2330856fd26b83b244cfea6e519ce5 100644 (file)
@@ -747,13 +747,19 @@ be_root_dn( Backend *be )
        return &be->be_rootdn;
 }
 
+int
+be_isroot_dn( Operation *op )
+{
+       return be_isroot( op->o_bd, &op->o_ndn );
+}
+
 int
 be_isroot_pw( Operation *op )
 {
        int result;
        char *errmsg;
 
-       if ( ! be_isroot( op->o_bd, &op->o_req_ndn ) ) {
+       if ( ! be_isroot_dn( op ) ) {
                return 0;
        }