Re: Addressbook with Squirrelmail

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The O.S. of the LDAP server is Windows NT.

Is it necessary to have OpenLDAP installed in the mail server?

At the moment, I don´t know why the script fails with "Protocol error".

Thanks.


>From: "Tomas Kuliavas" <tokul@xxxxxxxxxxxxxxxxxxxxx>
>To: "Gonzalo Carmona Martinez" <maidenero@xxxxxxxxxxx>
>CC: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
>Subject: Re:  Addressbook with Squirrelmail
>Date: Tue, 19 Jun 2007 19:19:57 +0300 (EEST)
>
>Test script works correctly with remote Win2k3 R2 ADS server. Tested ADS
>in Windows 2000 and 2003 functionality levels. $ldap_host is set to IP
>address or 'ldap://ip-address'. Client uses OpenLDAP 2.3.30 libraries on
>Linux.
>
>LDAP base is read in v2 and in v3 bind protocol with anonymous or
>authenticated bind. Other entries are read with authenticated bind.
>
>If you will find why script is failing with "Protocol error", let me know.
>
>
> > This is the whole message I receive when running test-ldap.php:
> >
> > *************
> >
> > LDAP query test
> >
> > Connecting ...
> > connect result - resource(2) of type (ldap link)
> >
> >
> > Setting LDAP options:
> > Using LDAPv3
> > Not using LDAP STARTTLS.
> > Not using limit_scope option.
> >
> > Reading LDAP base:
> >
> > Warning: ldap_read(): Search: Protocol error in
> > /var/www/html/hospital/test-ldap.php on line 128
> > Unable to read LDAP base.
> >
> > Authentication:
> > Binding with anonymous bind ...
> > Bind result - bool(true)
> >
> >
> > Search:
> > Searching for (mail=*) ...
> >
> > Warning: ldap_search(): Search: Protocol error in
> > /var/www/html/hospital/test-ldap.php on line 160
> > LDAP search failed.
> >
> > Closing connection
> >
> > **************
> >
> > Sorry, I have no acces to any information about the ADS domain.
> >
> > Thank you for your help, Tomas.
> >
> >
> >
> >>From: "Tomas Kuliavas" <tokul@xxxxxxxxxxxxxxxxxxxxx>
> >>To: "Gonzalo Carmona Martinez" <maidenero@xxxxxxxxxxx>
> >>CC: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
> >>Subject: Re:  Addressbook with Squirrelmail
> >>Date: Tue, 19 Jun 2007 15:07:07 +0300 (EEST)
> >>
> >>Please show all script output. If output contains private information -
> >>hide or mangle only private information. Other text printed by that
> >> script
> >>shows how script is executed. If you show only error message, I know 
>when
> >>it occurred, but I don't know what happened before that error.
> >>
> >>If you haven't modified scope setting in ldap_test.php, then LDAP base
> >>should not fail on Win2k3 ADS.
> >>
> >>Could you provide more information about your ADS domain functionality
> >>level? It is displayed in Administrative Tools -> Active Directory Users
> >>and Computers. Right click on domain and select 'Properties'.
> >>
> >> > Hello,
> >> >
> >> > I run the script you give me and I get two errors. The error messages
> >> > don�´t
> >> > help me to find the solution to my problem.
> >> >
> >> > These are the errors:
> >> >
> >> > Warning: ldap_read(): Search: Protocol error in
> >> > /var/www/html/hospital/test-ldap.php on line 128
> >> > Unable to read LDAP base.
> >> >
> >> > Warning: ldap_search(): Search: Protocol error in
> >> > /var/www/html/hospital/test-ldap.php on line 160
> >> > LDAP search failed.
> >> >
> >> > I forgot to tell you that my LDAP server use Microsoft Exchange. 
>Could
> >>it
> >> > be
> >> > this the cause of the problem?
> >> >
> >> > Thank you for your help.
> >> >
> >> >
> >> >>From: "Tomas Kuliavas" <tokul@xxxxxxxxxxxxxxxxxxxxx>
> >> >>To: "Gonzalo Carmona Martinez" <maidenero@xxxxxxxxxxx>
> >> >>CC: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
> >> >>Subject: Re:  Addressbook with Squirrelmail
> >> >>Date: Mon, 18 Jun 2007 13:06:13 +0300 (EEST)
> >> >>
> >> >>SquirrelMail 1.5.2svn has ldap test script in contrib directory.
> >> >>
> >> >>You can download it from
> >> 
> >>http://squirrelmail.svn.sourceforge.net/viewvc/*checkout*/squirrelmail/trunk/squirrelmail/contrib/test_ldap.phps?revision=11044
> >> >>
> >> >>save script as test-ldap.php, set configuration variables correctly,
> >> run
> >> >>that script in browser or console and show results
> >> >>
> >> >> > I have made the changes you told me, but I get the same error.  I
> >> set
> >> >>the
> >> >> > protocol to 3. Changing the 'base' variable doesn���´t change 
>the
> >>error
> >> >> > message
> >> >> > I receive.
> >> >> >
> >> >> > Do I need to set other variables? Do you have any idea?
> >> >> >
> >> >> > Thank you very much for your help.
> >> >> >
> >> >> >>From: Tomas Kuliavas <tokul@xxxxxxxxxxxxxxxxxxxxx>
> >> >> >>To: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
> >> >> >>Subject: Re:  Addressbook with Squirrelmail
> >> >> >>Date: Mon, 18 Jun 2007 07:46:51 +0000 (UTC)
> >> >> >>
> >> >> >> > I have a mail server with postfix and Squirrelmail, and I would
> >> >> like
> >> >> >> to
> >> >> >>use
> >> >> >> > an address book, that is allocated in another server.
> >> >> >> >
> >> >> >> > In the squirrelmail configuration file I worte this lines:
> >> >> >> >
> >> >> >> > $ldap_server[0] = array(
> >> >> >> > 'host' => <ip_ldap_server>,
> >> >> >> > 'name' => <addressbook_name>
> >> >> >> > );
> >> >> >> >
> >> >> >> > where <ip_ldap_server> is the IP of the addressbook server.
> >> >> >> >
> >> >> >> > When I try to find addresses in the addressbook I always get
> >> this
> >> >> >>message:
> >> >> >> > "Protocol error".
> >> >> >> >
> >> >> >> > As I said, mail server address and addressbook servers are
> >> >> DIFFERENT.
> >> >> >>Colud
> >> >> >> > anybody help me?
> >> >> >>
> >> >> >>PHP LDAP extension defaults to LDAP v2 bind protocol. Latest
> >> OpenLDAP
> >> >>and
> >> >> >>ADS
> >> >> >>versions don't allow v2 binding. Set protocol to 3, when you add
> >> LDAP
> >> >> >>address
> >> >> >>book in SquirrelMail configuration. Please note that 'base' is
> >> >> required
> >> >> >>LDAP
> >> >> >>address book configuration option.
> >> >> >>
> >> >> >>$ldap_server[0] = array(
> >> >> >>  'host' => 'address_of_ldap_server',
> >> >> >>  'name' => 'address_book_name',
> >> >> >>  'base' => 'your-basedn',
> >> >> >>  'protocol' => 3
> >> >> >>);
> >> >> >>
> >>
> >
> > _________________________________________________________________
> > Grandes éxitos, superhéroes, imitaciones, cine y TV...
> > http://es.msn.kiwee.com/ Lo mejor para tu móvil.
> >
> >
>
>

_________________________________________________________________
Acepta el reto MSN Premium: Protección para tus hijos en internet. 
Descárgalo y pruébalo 2 meses gratis. 
http://join.msn.com?XAPID=1697&DI=1055&HL=Footer_mailsenviados_proteccioninfantil


-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
--
squirrelmail-users mailing list
Posting Guidelines: http://www.squirrelmail.org/wiki/MailingListPostingGuidelines
List Address: squirrelmail-users@xxxxxxxxxxxxxxxxxxxxx
List Archives: http://news.gmane.org/thread.php?group=gmane.mail.squirrelmail.user
List Archives:  http://sourceforge.net/mailarchive/forum.php?forum_id=2995
List Info: https://lists.sourceforge.net/lists/listinfo/squirrelmail-users


[Index of Archives]     [Video For Linux]     [Yosemite News]     [Yosemite Photos]     [gtk]     [KDE]     [Cyrus SASL]     [Gimp on Windows]     [Steve's Art]     [Webcams]

  Powered by Linux