if ( c->op == SLAP_CONFIG_EMIT ) {
- ldap_pvt_thread_mutex_lock( &agi->agi_mutex );
-
switch( c->type ){
case AG_ATTRSET:
for ( i = 0 ; agd ; i++, agd = agd->agd_next ) {
return 1;
}
- ldap_pvt_thread_mutex_unlock( &agi->agi_mutex );
-
return rc;
}else if ( c->op == LDAP_MOD_DELETE ) {
autogroup_filter_t *agf = age->age_filter,
*agf_next;
- ldap_pvt_thread_mutex_lock( &agi->agi_mutex );
-
for ( agd_next = agd; agd_next; agd = agd_next ) {
agd_next = agd->agd_next;
ch_free( age );
}
- ldap_pvt_thread_mutex_unlock( &agi->agi_mutex );
-
- ldap_pvt_thread_mutex_destroy( &agi->agi_mutex );
ch_free( agi );
on->on_bi.bi_private = NULL;
autogroup_filter_t *agf,
*agf_next;
- ldap_pvt_thread_mutex_lock( &agi->agi_mutex );
-
for ( i = 0, agdp = &agi->agi_def;
i < c->valx; i++ )
{
ch_free( agd );
agd = agi->agi_def;
- ldap_pvt_thread_mutex_unlock( &agi->agi_mutex );
}
return 1;
}
- ldap_pvt_thread_mutex_lock( &agi->agi_mutex );
-
for ( agdp = &agi->agi_def ; *agdp ; agdp = &(*agdp)->agd_next ) {
/* The same URL attribute / member attribute pair
* cannot be repeated */
Debug( LDAP_DEBUG_ANY, "%s: %s.\n",
c->log, c->cr_msg, 0 );
- ldap_pvt_thread_mutex_unlock( &agi->agi_mutex );
return 1;
}
agdp = &(*agdp)->agd_next;
(*agdp)->agd_member_ad = member_ad;
(*agdp)->agd_next = agd_next;
- ldap_pvt_thread_mutex_unlock( &agi->agi_mutex );
-
} break;
case AG_MEMBER_OF_AD: {
return 1;
}
- ldap_pvt_thread_mutex_lock( &agi->agi_mutex );
-
agi->agi_memberof_ad = memberof_ad;
- ldap_pvt_thread_mutex_unlock( &agi->agi_mutex );
-
} break;
default: