]> git.sur5r.net Git - openldap/commitdiff
Fix SLAPD_SPASSWD typo which caused passwd_mutex not to be used
authorKurt Zeilenga <kurt@openldap.org>
Mon, 9 Oct 2000 19:09:28 +0000 (19:09 +0000)
committerKurt Zeilenga <kurt@openldap.org>
Mon, 9 Oct 2000 19:09:28 +0000 (19:09 +0000)
consistently.

servers/slapd/backend.c
servers/slapd/init.c
servers/slapd/passwd.c

index 8f061ffff18ecaeffa31e38317ff3c7348461dd8..8aca7e0e1eb36e34501206db1d0871124ae82a82 100644 (file)
@@ -519,7 +519,7 @@ be_isroot_pw( Backend *be,
                return 0;
        }
 
-#if defined( SLAPD_CRYPT ) || defined( SLAPD_PASSWD )
+#if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
        ldap_pvt_thread_mutex_lock( &passwd_mutex );
 #ifdef SLAPD_SPASSWD
        lutil_passwd_sasl_conn = conn->c_sasl_context;
@@ -528,7 +528,7 @@ be_isroot_pw( Backend *be,
 
        result = lutil_passwd( &be->be_root_pw, cred, NULL );
 
-#if defined( SLAPD_CRYPT ) || defined( SLAPD_PASSWD )
+#if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
 #ifdef SLAPD_SPASSWD
        lutil_passwd_sasl_conn = NULL;
 #endif
index 69f64d4b7a32f8feb02e8267215c83178376c003..fe57be4c20099434feb9d221c868bd4efae6f53c 100644 (file)
@@ -40,7 +40,7 @@ char          **g_argv;
  */
 ldap_pvt_thread_pool_t connection_pool;
 ldap_pvt_thread_mutex_t        gmtime_mutex;
-#if defined( SLAPD_CRYPT ) || defined( SLAPD_PASSWD )
+#if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
 ldap_pvt_thread_mutex_t        passwd_mutex;
 #endif
 
@@ -103,7 +103,7 @@ slap_init( int mode, const char *name )
                        ldap_pvt_thread_mutex_init( &num_sent_mutex );
 
                        ldap_pvt_thread_mutex_init( &gmtime_mutex );
-#if defined( SLAPD_CRYPT ) || defined( SLAPD_PASSWD )
+#if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
                        ldap_pvt_thread_mutex_init( &passwd_mutex );
 #endif
 
index 381fb088fdcba8e72708bc615121af1d6c582353..63110da27139c33830be51c5fdc79db42bb7c1ed 100644 (file)
@@ -224,7 +224,7 @@ slap_passwd_check(
        int     i;
        int result = 1;
 
-#if defined( SLAPD_CRYPT ) || defined( SLAPD_PASSWD )
+#if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
        ldap_pvt_thread_mutex_lock( &passwd_mutex );
 #ifdef SLAPD_SPASSWD
        lutil_passwd_sasl_conn = conn->c_sasl_context;
@@ -238,7 +238,7 @@ slap_passwd_check(
                }
        }
 
-#if defined( SLAPD_CRYPT ) || defined( SLAPD_PASSWD )
+#if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
 #ifdef SLAPD_SPASSWD
        lutil_passwd_sasl_conn = NULL;
 #endif
@@ -266,13 +266,13 @@ struct berval * slap_passwd_hash(
 
        struct berval *new;
 
-#if defined( SLAPD_CRYPT ) || defined( SLAPD_PASSWD )
+#if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
        ldap_pvt_thread_mutex_lock( &passwd_mutex );
 #endif
 
        new = lutil_passwd_hash( cred , hash );
        
-#if defined( SLAPD_CRYPT ) || defined( SLAPD_PASSWD )
+#if defined( SLAPD_CRYPT ) || defined( SLAPD_SPASSWD )
        ldap_pvt_thread_mutex_unlock( &passwd_mutex );
 #endif