OpenLDAP 2.0.X Engineering
Fixed slapd spasswd mutex bug
Fixed slapd ACL nameuid bug
+ Fixed slapd SASL layerring bug
Updated -lldap SASL error reporting
Updated -lldap TLS error reporting
Updated slapadd error reporting
ldap_pvt_thread_mutex_lock( &conn->c_mutex );
conn->c_dn = edn;
conn->c_authmech = mech;
- if( ssf ) conn->c_sasl_layers++;
conn->c_sasl_ssf = ssf;
if( ssf > conn->c_ssf ) {
conn->c_ssf = ssf;
authzid ? authzid : "<empty>" );
if ( authzid == NULL || *authzid == '\0' ||
+ ( authzid[0] == 'u' && authzid[1] == ':' &&
+ strcmp( authcid, &authzid[2] ) == 0 ) ||
strcmp( authcid, authzid ) == 0 )
{
+ /* authzid is:
+ * empty
+ * u:authcid
+ * authcid
+ */
+
char* cuser;
size_t len = sizeof("u:") + strlen( authcid );
}
if( rc == LDAP_SUCCESS ) {
+ if( ssf ) {
+ ldap_pvt_thread_mutex_lock( &conn->c_mutex );
+ conn->c_sasl_layers++;
+ ldap_pvt_thread_mutex_unlock( &conn->c_mutex );
+ }
+
send_ldap_sasl( conn, op, rc,
NULL, NULL, NULL, NULL,
response.bv_len ? &response : NULL );