You are here

private function LdapUserConfAdmin::checkPuidOrphans in Lightweight Directory Access Protocol (LDAP) 7.2

Parameters

$sid:

$orphan_handling:

1 call to LdapUserConfAdmin::checkPuidOrphans()
LdapUserConfAdmin::drupalFormValidate in ldap_user/LdapUserConfAdmin.class.php
Validate submitted form.

File

ldap_user/LdapUserConfAdmin.class.php, line 376

Class

LdapUserConfAdmin

Code

private function checkPuidOrphans($sid, $orphan_handling) {
  $ldap_server = ldap_servers_get_servers($sid, NULL, TRUE);
  if ($ldap_server && empty($ldap_server->unique_persistent_attr) && $orphan_handling != 'ldap_user_orphan_do_not_check') {
    drupal_set_message(t('You\'ve configured the orphan check but are missing the required persistent user ID property.'), 'error');
  }
}