cityexplorer
>...it works on SME v7 as well. but not sure what it does and how to re-enable it..
It replaces the template fragment 50LocalLDAP with an empty version of that fragment, so when the template is expended the empty fragment in .../templates-custom/... is read instead of the original fragment in .../templates/...
To undo the changes simply delete the 50LocalLDAP fragment in .../templates-custom/.... and re-expand the template & disable & enable webmail as per above method.
Here is the original code, so work out what it used to do.
if (Util::extensionExists('ldap')) \{
$cfgSources['localldap'] = array(
'title' => 'Local LDAP',
'type' => 'ldap',
'params' => array(
'server' => 'localhost',
'port' => 389,
'tls' => false,
'root' => '',
'sizelimit' => 200,
'dn' => array('cn'),
'objectclass' => array('top',
'person',
'organizationalPerson','inetOrgPerson'),
'scope' => 'one',
'charset' => 'iso-8859-1',
// 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 enabl
ed. To enable - config setprop horde freebusy enabled" unless ($hordefreebusy e
q "enabled");
$OUT .= ' \'homeAddress\' => \'homepostaladdress\','
. "\n"
. ' \'freebusyUrl\' => \'calFBURL\'';
}
),
'search' => array(
'name',
'email',
'homePhone',
'workPhone',
'cellPhone',
'homeAddress'
),
'strict' => array(
'dn',
),
'export' => true,
'browse' => true,
);
\}