I have two development drupal sites - the older of the two has a copy of 6.x-1.x-dev and when it is enabled there is an option on the groups configuration page to "Delete users in LDAP when deleted in Drupal". More recently, I downloaded copies of both the 6.x-1.x-dev and the 6.x-1.0-alpha2 versions and this option was not available. In particular it appears part of this code has been removed from the extended_ldapgroups.admin.inc:
function extended_ldapgroups_admin_settings_form() {
$form['options'] = array(
'#type' => 'fieldset',
'#title' => t('Integration Options'),
'#collapsed' => false,
'#collapsible' => true,
'#weight' => -10,
);
$form['options']['extended_ldapgroups_ldap_group_remove_membership'] = array(
'#type' => 'checkbox',
'#default_value' => variable_get('ldapgroups_block_user', 0),
'#title' => t('Remove LDAP group membership for blocked users'),
'#description' => t('When a user is blocked in Drupal, this option will remove all group memberships for the user in LDAP. When the user is unblocked, group membership will be restored based on the user account roles.'),
);
$form['options']['extended_ldapgroups_ldap_remove_user'] = array(
'#type' => 'checkbox',
'#default_value' => variable_get('ldapgroups_delete_user', 0),
'#title' => t('Delete users in LDAP when deleted in Drupal'),
'#description' => t('When a user account is deleted in Drupal, this option will remove the user account in LDAP.'),
);
$form['options']['submit'] = array(
'#type' => 'submit',
'#value' => t('Save Options'),
);
return $form;
}
I have configured the ldap so that each group exists as ldap entries with multivalued attributes containing member CNs (ie. the group has a list of uniquemembers). The user entry is removed from the ldap when they are deleted from the drupal user database, but they are still listed as unique members in their assigned groups. Is the functionality to automatically remove users from their associated ldap groups when their drupal account is deleted no longer available? Was there a problem?
Thanks!
Comments
Comment #1
ebeyrent commentedMore likely it was a mess-up on my part related to my inability to deal effectively with the suckiness of CVS....