//50LocalLDAP
if (Util::extensionExists('ldap')) \{

$cfgSources['localldap'] = array(
    'title' => 'Local LDAP',
    'type' => 'ldap',
    'params' => array(
        'server' => 'localhost',
        'port' => 389,
        'tls' => false,
{
    my $domainName = $DomainName;
    $domainName =~ s/\./,dc=/g;
    $OUT = qq(        'root' => 'dc=$domainName',);
}
        'sizelimit' => 200,
        'dn' => array('cn'),
        'objectclass' => array('top',
                               'person',
                               'organizationalPerson','inetOrgPerson'),
        'scope' => 'one',
        'charset' => 'UTF-8',
        // check if all required attributes for an entry are set and add them
        // if needed.
        'checkrequired' => false,
        // string to put in missing required attributes.
        'checkrequired_string' => ' ',
        'version' => 3
    ),
    'map' => array(
        '__key' => 'dn',
        '__uid' => 'uid',
        'name' => 'cn',
        'email' => 'mail',
        'homePhone' => 'homephone',
        'workPhone' => 'telephonenumber',
        'cellPhone' => 'mobiletelephonenumber',
{
        my $hordefreebusy = $horde{'freebusy'} || 'disabled'; return "        \'homeAddress\' => \'homepostaladdress\'\n        #freebusy is currently not enabled.  To enable - config setprop horde freebusy enabled" unless ($hordefreebusy eq "enabled");
        $OUT .= '        \'homeAddress\' => \'homepostaladdress\','
                . "\n"
                . '        \'freebusyUrl\' => \'calFBURL\'';
}
    ),
    'search' => array(
        'name',
        'email',
        'homePhone',
        'workPhone',
        'cellPhone',
        'homeAddress'
    ),
    'strict' => array(
        'dn',
    ),
    'export' => true,
    'browse' => true, 
);
\}
