RE: custom contact list

  • From: "Jeffrey Robillard" <jrobill@xxxxxxxxxxxxx>
  • To: "[ExchangeList]" <exchangelist@xxxxxxxxxxxxx>
  • Date: Wed, 23 Jul 2003 12:21:58 -0400

make sure the extensions section of your php.ini file has the ldap line 
uncommented.   as a default it comes remarked out so its not supported.

extension=php_ldap.dll


if you run the phpinfo script attached you should see something like this in 
the result.  If you do not then the ldap support function isn't working in php.

LDAP Support enabled 
RCS Version $Id: ldap.c,v 1.116.2.1 2002/04/23 18:59:57 derick Exp $ 
Total Links 0/unlimited 
API Version 2004 
Vendor Name OpenLDAP 
Vendor Version 20023 






-----Original Message-----
From: Vadim Shulaev [mailto:vshulaev@xxxxxxxxxxxxxxxxxxx]
Sent: Wednesday, July 23, 2003 12:06 PM
To: [ExchangeList]
Subject: [exchangelist] RE: custom contact list


http://www.MSExchange.org/

Jeffrey,

The script looks like what i want to be able to do with contact list.
I have a problem though... it doesn't seems to work for me. Here is the
error i get from my server:

Fatal error: Call to undefined function: ldap_connect() in
c:\inetpub\wwwroot\ldap_exchange.php on line 2

It looks like i can't connect to my LDAP server. I know it is working
fine. Is ther something has to be activated on my server???

Here is my settings i put in the script:

<?php
   $ds=ldap_connect("172.16.8.5");
   $dn = "cn=administrator, cn=users, dc=casinomontelago, dc=com";  
   $password = "*****";
   if ($ds) { 
      $r=ldap_bind($ds, $dn, $password);
      $sr=ldap_search($ds,"cn=users, dc=casinomontelago, dc=com",
"mailnickname=".$uid);  

      $info = ldap_get_entries($ds, $sr);

Vadim.

-----Original Message-----
From: Jeffrey Robillard [mailto:jrobill@xxxxxxxxxxxxx] 
Sent: Friday, July 18, 2003 11:06 AM
To: [ExchangeList]
Subject: [exchangelist] RE: custom contact list


http://www.MSExchange.org/


This is a multi-part message in MIME format.

------------------------------------------------------
List Archives: http://www.webelists.com/cgi/lyris.pl?enter=exchangelist
Exchange Newsletters: http://www.msexchange.org/pages/newsletter.asp
Exchange FAQ: http://www.msexchange.org/pages/larticle.asp?type=FAQ
------------------------------------------------------
Other Internet Software Marketing Sites:
Leading Network Software Directory: http://www.serverfiles.com
No.1 ISA Server Resource Site: http://www.isaserver.org
Windows Security Resource Site: http://www.windowsecurity.com/
Network Security Library: http://www.secinf.net/
Windows 2000/NT Fax Solutions: http://www.ntfaxfaq.com
------------------------------------------------------
You are currently subscribed to this MSExchange.org Discussion List as: 
jrobill@xxxxxxxxxxxxx
To unsubscribe send a blank email to $subst('Email.Unsub')

Message sent 23/7/2003 from Jeffrey Robillard to [ExchangeList]

Other related posts: