function _ldapdata_edition in LDAP integration 6
Same name and namespace in other branches
- 5.2 ldapdata.module \_ldapdata_edition()
- 5 ldapdata.module \_ldapdata_edition()
Retrieve LDAP write credentials.
Parameters
$sid: A server ID or user object.
Return value
An array with the LDAP write username and password.
6 calls to _ldapdata_edition()
- ldapdata_admin_edit_submit in ./
ldapdata.admin.inc - Submit hook for the settings form.
- ldapdata_node_update in ./
ldapdata.module - Drupal 7 hook_node_update. Handles the case of content profile updates being written back to ldap if needed.
- _ldapdata_user_form in ./
ldapdata.module - Implements hook_user() categories operation. Only used for editable LDAP attributes with no Drupal equivalents.
- _ldapdata_user_load in ./
ldapdata.module - Implements hook_user() load operation.
- _ldapdata_user_submit in ./
ldapdata.module - Implements hook_user() submit operation.
File
- ./
ldapdata.module, line 779 - ldapdata provides data maping against ldap server.
Code
function _ldapdata_edition($sid) {
if (!($sid = is_object($sid) ? isset($sid->ldap_config) ? $sid->ldap_config : NULL : $sid)) {
return;
}
$server = ldapauth_server_load($sid);
return array(
'dn' => $server->ldapdata_binddn ? $server->ldapdata_binddn : (isset($_SESSION['ldap_login']['dn']) ? $_SESSION['ldap_login']['dn'] : ''),
'pass' => $server->ldapdata_bindpw ? $server->ldapdata_bindpw : (isset($_SESSION['ldap_login']['pass']) ? $_SESSION['ldap_login']['pass'] : ''),
);
}