]> git.sur5r.net Git - openldap/commitdiff
Sync with HEAD
authorKurt Zeilenga <kurt@openldap.org>
Fri, 18 Mar 2005 00:32:27 +0000 (00:32 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Fri, 18 Mar 2005 00:32:27 +0000 (00:32 +0000)
servers/slapd/bconfig.c
servers/slapd/passwd.c
tests/data/slapd-translucent-local.conf

index e83f6c737b9683ee0c73c6a2d4b7c3a9cb0acdc3..d8d88704093b99a79bf6c127f552581b19505d0f 100644 (file)
@@ -2586,7 +2586,7 @@ config_setup_ldif( BackendDB *be, const char *dir ) {
 
        cfb->cb_db.bd_info = backend_info( "ldif" );
        if ( !cfb->cb_db.bd_info )
-               return 1;
+               return 0;       /* FIXME: eventually this will be a fatal error */
 
        if ( cfb->cb_db.bd_info->bi_db_init( &cfb->cb_db )) return 1;
 
index a262a9911aa74009a485b084d9ad4139f9e2d982..265681c4a4aa34e303646cf56642dadc6bbccd94 100644 (file)
@@ -415,33 +415,37 @@ slap_passwd_check(
        struct berval           *bv;
        AccessControlState      acl_state = ACL_STATE_INIT;
 
-#if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
-       ldap_pvt_thread_mutex_lock( &passwd_mutex );
-#ifdef SLAPD_SPASSWD
-       lutil_passwd_sasl_conn = op->o_conn->c_sasl_authctx;
-#endif
-#endif
-
        for ( bv = a->a_vals; bv->bv_val != NULL; bv++ ) {
+               int     rc;
+
                /* if e is provided, check access */
                if ( e && access_allowed( op, e, a->a_desc, bv,
                                        ACL_AUTH, &acl_state ) == 0 )
                {
                        continue;
                }
-               
-               if ( !lutil_passwd( bv, cred, NULL, text ) ) {
-                       result = 0;
-                       break;
-               }
-       }
 
 #if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
+               ldap_pvt_thread_mutex_lock( &passwd_mutex );
 #ifdef SLAPD_SPASSWD
-       lutil_passwd_sasl_conn = NULL;
+               lutil_passwd_sasl_conn = op->o_conn->c_sasl_authctx;
 #endif
-       ldap_pvt_thread_mutex_unlock( &passwd_mutex );
 #endif
+       
+               rc = lutil_passwd( bv, cred, NULL, text );
+
+#if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
+#ifdef SLAPD_SPASSWD
+               lutil_passwd_sasl_conn = NULL;
+#endif
+               ldap_pvt_thread_mutex_unlock( &passwd_mutex );
+#endif
+
+               if ( !rc ) {
+                       result = 0;
+                       break;
+               }
+       }
 
        return result;
 }
index 8f9db688012727f383ad80b69ff093327ccf2d6a..8185df803e4451eee29e59dd937e9239f223f51c 100644 (file)
@@ -24,9 +24,10 @@ include ./schema/nis.schema
 pidfile     ./testrun/slapd.2.pid
 argsfile    ./testrun/slapd.2.args
 
-#mod#modulepath        ../servers/slapd/back-@BACKEND@/:../servers/slapd/back-ldap/:../servers/slapd/overlays
+#mod#modulepath        ../servers/slapd/back-@BACKEND@
 #mod#moduleload        back_@BACKEND@.la
-#mod#moduleload back_ldap.la
+#ldapmod#modulepath ../servers/slapd/back-ldap
+#ldapmod#moduleload back_ldap.la
 #translucentmod#modulepath     ../servers/slapd/overlays
 #translucentmod#moduleload     translucent.la