function cas_ldap_attributes in CAS Attributes 7
Same name and namespace in other branches
- 6.3 cas_ldap.module \cas_ldap_attributes()
Returns an array containing LDAP attributes for the specified user.
Parameters
$name:
3 calls to cas_ldap_attributes()
- cas_attributes_map_roles in ./
cas_attributes.module - Map roles to the pre-defined CAS or LDAP attributes.
- cas_ldap_list in ./
cas_ldap.admin.inc - Lists available CAS Attributes.
- cas_ldap_tokens in ./
cas_ldap.tokens.inc - Implements hook_tokens().
File
- ./
cas_ldap.module, line 58 - Allows user account and profile attributes to be automatically populated using tokens. Provides basic tokens for attributes returned by an LDAP server.
Code
function cas_ldap_attributes($name) {
$attributes =& drupal_static(__FUNCTION__, array());
if (!isset($attributes[$name])) {
$attributes[$name] = _cas_ldap_attributes($name);
}
return $attributes[$name];
}