2 /** External authentication via LDAP for FusionForge Mapping
4 * These are pairs of internal user variables and LDAP attributes used when
5 * creating new accounts, top half are required, bottom half are optional.
6 * Note you can use global config variables defined in local.inc or elsewhere.
9 function plugin_ldapextauth_mapping ($entry) {
12 $result['firstname'] = $entry['givenname'][0] ;
13 $result['lastname'] = $entry['sn'][0] ;
15 // Defines new user email address, from LDAP or based on forge domain.
16 $result['email'] = $entry['mail'][0] ;
17 //$result['email'] = $entry['uid'][0] . '@' . forge_get_config('web_host') ;
19 // Defines new user theme, causes error if left blank.
20 $result['themeid']=$GLOBALS['sys_default_theme_id'];
23 //$result['jabber_address'] = '' ;
24 //$result['address'] = '' ;
25 //$result['address2'] = '' ;
26 //$result['phone'] = $entry['telephonenumber'][0]; //AD
27 //$result['fax'] = '' ;
28 //$result['title'] = '' ;
29 //$result['ccode']=$GLOBALS['sys_default_country_code'];
30 //$result['language_id'] = '' ;
31 //$result['timezone']=$GLOBALS['sys_default_timezone'];