[horde] LDAP Prefs + Horde 3.0 + IMP 4.0 Prob

Joel Wiesmann joel at secuserv.ch
Wed May 22 10:43:38 PDT 2002


Am Mittwoch, 22. Mai 2002 18.20 schrieben Sie:
> well ... got some new stuff ;)
>
> I've modified the storage format, now it's using one multi-valued attribute
> per application ( hordePrefs, impPrefs, turbaPrefs ... )
> $conf['prefs']['params']['field'] is no longer used
>
> this patch assume that all shared prefs are stored in hordePrefs attribute,
> hope this is ok.
>
> the patch (contain the 2nd version of my previous patch modified) :
> http://kaalh.smol.org/horde/ldap.php.diff
>
> the schema diff :
> http://kaalh.smol.org/horde/horde.schema.diff
>
> now you deal with all applications preferences.

Heya

Jeah, you were right. When I switched the language to english it works
without any probs! I tried your patches (2nd version, the schema patch and
ldap.php patch) but I still run into Problems:
Warning: LDAP: modify operation could not be completed. in
/usr/local/apache/htdocs/horde/lib/Prefs/ldap.php on line 452

Didn't you rip everything with the utf8 encoding?

speedy: pwd
/usr/local/apache/htdocs/horde/lib/Prefs
speedy: grep utf8_encode *
ldap.php:            $new_values[$this->getScope($pref) . 'Prefs'][] =
utf8_encode($entry);
ldap.php.orig:            $new_values[$this->params['field']][] =
utf8_encode($entry);
patch:-            $new_values[$this->params['field']][] =
utf8_encode($entry);
patch:+            $new_values[$this->getScope($pref) . 'Prefs'][] =
utf8_encode($entry);

Oh, and here's the ldap debug:
daemon: conn=10 fd=9 connection from IP=127.0.0.1:21893 (IP=0.0.0.0:34049) 
accepted.
conn=10 op=0 BIND dn="CN=MANAGER,DC=SECUSERV,DC=CH" method=128
ber_flush: 14 bytes to sd 9
conn=10 op=0 RESULT tag=97 err=0 text=
conn=10 op=1 SRCH base="dc=secuserv,dc=ch" scope=2 filter="(mail=tr0nix)"
ber_flush: 38 bytes to sd 9
ber_flush: 14 bytes to sd 9
conn=10 op=1 SEARCH RESULT tag=101 err=0 text=
conn=10 op=2 SRCH base="dc=secuserv,dc=ch" scope=2 filter="(mail=tr0nix)"
ber_flush: 1697 bytes to sd 9
ber_flush: 14 bytes to sd 9
conn=10 op=2 SEARCH RESULT tag=101 err=0 text=
conn=10 op=3 MOD dn="cn=tr0nix,dc=secuserv,dc=ch"
ber_flush: 48 bytes to sd 9
conn=10 op=3 RESULT tag=103 err=17 text=impPrefs: attribute type undefined 
conn=10 op=4 UNBIND
conn=-1 fd=9 closed

(Sorry for sending it twice, sent it first to your personal box, you maybe 
noticed, but without ldap debug)

Greets
Joel 


More information about the horde mailing list