[horde] Trying to set Default Values for preferences.

김 덕곤 dgkim at dgkim.net
Wed Sep 2 09:44:53 UTC 2015


Hi

I got it working with following code.
(in file hooks.php)

//            $ldap = $GLOBALS['injector']->getInstance('Horde_Ldap');
             $ldap = new Horde_Ldap($GLOBALS['conf']['ldap']);

Would there any problem with this code?


2015-09-02 오전 11:02에 김 덕곤 이(가) 쓴 글:
> Hi
>
> I am trying to set Default Values for preferenes.
>
> Starting from 'from_addr' value.
>
> 1. copied horde/config/hooks.php.dist to hooks.php
> 2. copied horde/config/prefs.php to prefs.local.php
> 3. uncommented public function prefs_init on hooks.php file.
> 4. added $_prefs['from_addr']['hook'] = true; line on prefs.local.php 
> file.
>
> then server raised an error.
>
> Could not connect to localhost:389
>
>  1. require() /var/www/html/horde/login.php:243
>
> The LDAP server is on the other server.
>
> How can I set LDAP server hostname for hook.php?
>
> Horde configuration is as follows.
>
> $conf['ldap']['hostspec'] = array('ldap.hostname');
> $conf['ldap']['port'] = 389;
> $conf['ldap']['tls'] = true;
> $conf['ldap']['timeout'] = 5;
> $conf['ldap']['version'] = 3;
> $conf['ldap']['user']['uid'] = 'uid';
> $conf['ldap']['user']['objectclass'] = array('inetOrgPerson');
> $conf['ldap']['user']['filter_type'] = 'objectclass';
> $conf['ldap']['bindas'] = 'user';
> $conf['ldap']['useldap'] = true;
>
> // server name is replaced.
>
>



More information about the horde mailing list