function _simple_ldap_user_drush_missing in Simple LDAP 7.2
1 string reference to '_simple_ldap_user_drush_missing'
- simple_ldap_user_drush_export_all in simple_ldap_user/
simple_ldap_user.drush.inc
File
- simple_ldap_user/
simple_ldap_user.drush.inc, line 188
Code
function _simple_ldap_user_drush_missing($authname, $user) {
$dummy_context = array();
// Make sure we don't have an authmap collision.
$am_entry = db_query("SELECT uid,authname FROM {authmap} WHERE authname=:puid AND module='simple_ldap'", array(
':puid' => $user['authname'],
))
->fetchAssoc();
if (!empty($am_entry['uid']) && $am_entry['uid'] != $user['uid']) {
drush_log(dt(' PUID COLLISION: Authname @authname used by both UIDs @this and @that. Skipping @user.', array(
'@this' => $user['uid'],
'@that' => $am_entry['uid'],
'@authname' => $user['authname'],
'@user' => $user['name'],
)), 'error');
return;
}
drush_log(dt('Provisioning @user', array(
'@user' => $user['name'],
)), 'notice');
simple_ldap_user_export_user($user['uid'], $dummy_context);
}