[imp] Re: Re: Something I don't understand

Santiago Romero sromero@servicom2000.com
Fri, 25 May 2001 16:34:26 +0200


El vie, 25 de may de 2001, a las 10:27:03 -0400, Chuck Hagenbuch dijo:
> 
> >  I have an LDAP server on another machine of my Intranet, and I DONT
> >  KNOW if I must change phplib/prepend.php3 to change ct_sql to
> >  ct_ldap. If i quit the loading of ct_sql... ¿it will continue
> >  connecting to my oracle database? ¿Should I load ct_sql or ct_ldap?
> >  I just want to be able to search the LDAP server on the
> >  CONTACT window.
> 
> No. The contact window doesn't use ct_ldap (or anything from
> phplib, for that  matter).

 Thanks a lot! Your answer _Really_ helps me a lot, as I was trying
 to include ct_ldap.inc because I thought it was the only way of
 having LDAP support. Now I know I must use ct_sql... :)

> >  At this moment (I load ct_sql.inc and CTHorde is defined as CtSQL on
> >  local.inc) all works perfect except the LDAP SEARCH which returns:
> > 
> > > Couldn't bind to LDAP server.
> 
> You probably haven't configured your ldap server correctly in 
> imp/config/ldap.php3.

 Ok, that's my ldap.php3:

$LDAPServers['servicom2000'] = new LDAPServer('mail.servicom2000.com',
                                           'mail.servicom2000.com',
                                           'mail.servicom2000.com',
                                           '',
                                           'sn',
                                           'cn,mail,sn',
                                           'is,is_strict,contains,begins,ends');

$LDAPServers['sistemas'] = new LDAPServer('sistemas.servicom2000',
                                           'sistemas.servicom2000',
                                           'sistemas.servicom2000',
                                           '',
                                           'sn',
                                           'cn,mail,sn',
                                           'is,is_strict,contains,begins,ends');

 I know not very much about LDAP (I'm not the LDAP administrator), but
 I use the following string to consult ldap on my Debian Linux box:

  ldapsearch -L "(objectclass=*)"
 
 My ldap/conf is:

[sromero@compiler:~]$ cat /etc/umich-ldap/defaultbase.ldap 
dc=servicom2000,dc=com

[sromero@compiler:~]$ cat /etc/umich-ldap/ldapserver 
mail.servicom2000.com


 If I don't include ct_ldap.inc, I can't find nowhere on the
 horde config files to include the dc=servicom2000,dc=com .

 Any idea?

 Anyway, thanks a lot for your answer!!!!! :)

-- 
Santiago Romero
Departamento de Sistemas
sromero@servicom2000.com

Av. Primado Reig 189, entlo
46020 Valencia - Spain
Telf. (+34) 96 332 12 00
Fax. (+34) 96 332 12 01
http://www.servicom2000.com