1 /* bind.c - ldbm backend bind and unbind routines */
4 * Copyright 1998-1999 The OpenLDAP Foundation, All Rights Reserved.
5 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
13 #include <ac/socket.h>
14 #include <ac/string.h>
15 #include <ac/unistd.h>
29 for ( i = 0; a->a_vals[i] != NULL; i++ ) {
30 if ( a->a_syntax == SYNTAX_BIN ) {
34 ldap_pvt_thread_mutex_lock( &crypt_mutex );
37 result = lutil_passwd(
39 (char*) a->a_vals[i]->bv_val,
43 ldap_pvt_thread_mutex_unlock( &crypt_mutex );
49 if ( value_cmp( a->a_vals[i], cred, a->a_syntax, 1 ) == 0 ) {