]> git.sur5r.net Git - openldap/blobdiff - servers/slapd/back-perl/bind.c
uniformly exploit rootdn bind; add support for rootdn bind to backends that didn...
[openldap] / servers / slapd / back-perl / bind.c
index 2e19370f49a15a75140341ca3c79c606ca475875..878c48dfb04a0b9a4eec3e3e6ab569677e48b299 100644 (file)
@@ -32,6 +32,16 @@ perl_back_bind(
 
        PerlBackend *perl_back = (PerlBackend *) op->o_bd->be_private;
 
+       /* allow rootdn as a means to auth without the need to actually
+        * contact the proxied DSA */
+       switch ( be_rootdn_bind( op, rs ) ) {
+       case SLAP_CB_CONTINUE:
+               break;
+
+       default:
+               return rs->sr_err;
+       }
+
 #if defined(HAVE_WIN32_ASPERL) || defined(USE_ITHREADS)
        PERL_SET_CONTEXT( PERL_INTERPRETER );
 #endif