parent
526c4b5b3f
commit
8bded30158
16 changed files with 39 additions and 4 deletions
@ -0,0 +1,4 @@ |
||||
define("LDAP_HOST", "ldap://127.0.0.1/"); |
||||
define("LDAP_PORT", "389"); |
||||
define("ANONYMOUS_BIND", true); |
||||
|
@ -0,0 +1,13 @@ |
||||
{ |
||||
use esmith::util; |
||||
my $c = esmith::ConfigDB->open_ro; |
||||
my $domain = $c->get('DomainName')->value; |
||||
my $basedn = esmith::util::ldapBase($domain); |
||||
|
||||
$OUT .=<<"EOF"; |
||||
|
||||
define("LDAP_SEARCH_BASE", "ou=Users,$basedn"); |
||||
define("LDAP_SEARCH_FILTER", "(|(cn=*SEARCHVALUE*)(mail=*SEARCHVALUE*))"); |
||||
|
||||
EOF |
||||
} |
@ -0,0 +1,14 @@ |
||||
global $ldap_field_map; |
||||
$ldap_field_map = array( |
||||
SYNC_GAL_DISPLAYNAME => 'cn', |
||||
SYNC_GAL_PHONE => 'telephonenumber', |
||||
SYNC_GAL_OFFICE => 'l', |
||||
SYNC_GAL_TITLE => 'title', |
||||
SYNC_GAL_COMPANY => 'o', |
||||
SYNC_GAL_ALIAS => 'uid', |
||||
SYNC_GAL_FIRSTNAME => 'givenname', |
||||
SYNC_GAL_LASTNAME => 'sn', |
||||
SYNC_GAL_HOMEPHONE => 'extensionnumber', |
||||
SYNC_GAL_MOBILEPHONE => 'mobile', |
||||
SYNC_GAL_EMAILADDRESS => 'mail', |
||||
); |
Loading…
Reference in new issue