Fwd: [horde] Horde Preferences in LDAP

Edwin Culp eculp at viviendaatualcance.com.mx
Sat Mar 6 12:17:32 PST 2004


Quoting Hannes Seidel <h.seidel at iunds.com>:

> Hi again,
>
> so here's my horde/config/horde.php ldap section:
>
> $conf['prefs']['driver'] = 'ldap';
> $conf['prefs']['params']['hostspec']  = 'ldap.ssos.local';
> $conf['prefs']['params']['port'] = '389';
> $conf['prefs']['params']['basedn'] = 'dc=ssos,dc=local';
> $conf['prefs']['params']['uid'] = 'admin';
>
> $conf['prefs']['params']['rootdn'] = 'cn=admin,dc=ssos,dc=local';
  $conf['prefs']['params']['rootdn'] = 'cn=Manager,o=worldinternet.org';
  $conf['prefs']['params']['password'] = 'secret';
Why do you need the following line?  I would think that it should probably be
deleted.
> $conf['prefs']['params']['username'] = 'admin';
Be sure that the following is the password that you have in your slapd.conf.
> $conf['prefs']['params']['password'] = ''xxxxxx;

 From what I am able to see at a glance it just may work with the above two
changes.

>
> And here the output from the slapd log during imp login:
>
> slapd[635]: conn=24 fd=26 ACCEPT from IP=192.168.199.1:32867 (IP=0.0.0.0:389)
> slapd[638]: conn=24 op=0 BIND dn="cn=admin,dc=ssos,dc=local" method=128
> slapd[638]: conn=24 op=0 BIND dn="cn=admin,dc=ssos,dc=local" 
> mech=simple ssf=0
> slapd[638]: conn=24 op=0 RESULT tag=97 err=0 text=
> slapd[639]: conn=24 op=1 SRCH base="dc=ssos,dc=local" scope=2
> filter="(uid=misterx)"
> slapd[639]: conn=24 op=1 SEARCH RESULT tag=101 err=0 nentries=1 text=
> slapd[638]: conn=24 op=2 BIND anonymous mech=implicit ssf=0
> slapd[638]: conn=24 op=2 BIND
> dn="uid=misterx,ou=user,ou=network,dc=ssos,dc=local" method=128
> slapd[638]: conn=24 op=2 BIND
> dn="uid=misterx,ou=user,ou=network,dc=ssos,dc=local" mech=simple ssf=0
> slapd[638]: conn=24 op=2 RESULT tag=97 err=0 text=
> slapd[639]: conn=24 op=3 BIND anonymous mech=implicit ssf=0
> slapd[639]: conn=24 op=3 BIND dn="cn=admin,dc=ssos,dc=local" method=128
> slapd[639]: conn=24 op=3 BIND dn="cn=admin,dc=ssos,dc=local" 
> mech=simple ssf=0
> slapd[639]: conn=24 op=3 RESULT tag=97 err=0 text=
> cyrus/imapd[663]: login: ldap.ssos.local[192.168.199.1] misterx plaintext
> slapd[635]: conn=25 fd=29 ACCEPT from IP=192.168.199.1:32868 (IP=0.0.0.0:389)
> slapd[638]: conn=25 op=0 BIND dn="cn=admin,dc=ssos,dc=local" method=128
> slapd[638]: conn=25 op=0 BIND dn="cn=admin,dc=ssos,dc=local" 
> mech=simple ssf=0
> slapd[638]: conn=25 op=0 RESULT tag=97 err=0 text=
> slapd[639]: conn=25 op=1 SRCH base="dc=ssos,dc=local" scope=2
> filter="(?=undefined)"
> slapd[639]: conn=25 op=1 SRCH attr=dn
> slapd[639]: conn=25 op=1 SEARCH RESULT tag=101 err=0 nentries=0 text=
> slapd[638]: conn=25 op=2 SRCH base="dc=ssos,dc=local" scope=2
> filter="(?=undefined)"
> slapd[638]: conn=25 op=2 SRCH attr=impPrefs hordePrefs
> slapd[638]: conn=25 op=2 SEARCH RESULT tag=101 err=0 nentries=0 text=
> slapd[639]: do_modify: invalid dn (admin=misterx at ssos.local,dc=ssos,dc=local)

I hope the above changes will make the above line 
admin=misterx at ssos.local come
out as cn=admin as it should.  I'm not sure.  If not we'll have to look 
deeper.

Good luck,

ed
> ------------------------------------------------------------------
>>> last line is definitively incorrect!
> ------------------------------------------------------------------
> slapd[639]: conn=25 op=3 RESULT tag=103 err=34 text=invalid DN
> slapd[638]: conn=25 op=4 UNBIND
> slapd[638]: conn=25 fd=29 closed
>
>
> So horde is still unable to store its preferences and produces the
> old warning:
>
>> Warning: Cannot modify header information - headers already sent by (output
>> started at /var/www/horde/lib/Prefs/ldap.php:470) in
>> /var/www/horde/imp/redirect.php on line 112
>
>
> btw. thanks for the hint, Yu Wang!
>
> --
> Hannes Seidel
> IUNDS AG
>
> h.seidel at iunds.com
>
> --
> Horde mailing list - Join the hunt: http://horde.org/bounties/#horde
> Frequently Asked Questions: http://horde.org/faq/
> To unsubscribe, mail: horde-unsubscribe at lists.horde.org





More information about the horde mailing list