[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
Re: OpenLDAP, PHP and OS X
Have you tried a php page with the following
<?
phpinfo();
?>
When you access it with your browser it will display more than you want to
know about your installation but there should be a section about ldap.
Mine fillows:
ldap
LDAP Support enabled
RCS Version $Id: ldap.c,v 1.114 2002/01/04 20:56:03 venaas Exp $
Total Links 0/unlimited
API Version 2004
Vendor Name OpenLDAP
Vendor Version 20019
This also reminds me to upgrade :-)
Good luck,
ed
Quoting Quinn Perkins <quinn@quinnperkins.com>:
> The frustrating part is, I had this working on OS X 10.0.4. I am now
> running 10.1.2 Server.
>
> I successfully built OpenLDAP and it is working fine.
>
> I successfully built a version of PHP 4.0.6 for OS 10.1 with the
> instructions found at
> http://developer.apple.com/internet/macosx/php.html. It compiled without
> error using:
>
> ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
> --mandir=/usr/share/man --with-apxs --with-zlib --with-
> ldap=/Users/quinn/Desktop/Services/ldap/ldap --disable-pear
> --enable-trans-sid
>
> After moving the libphp4.so and editing the httpd.conf file, I started
> the web server, but got the following error:
>
> dyld: /usr/sbin/httpd Undefined symbols:
> _ldap_add_s
> _ldap_bind_s
> _ldap_compare_s
> _ldap_count_entries
> _ldap_count_values
> _ldap_count_values_len
> _ldap_delete_s
> _ldap_dn2ufn
> _ldap_err2string
> _ldap_explode_dn
> _ldap_first_attribute
> _ldap_first_entry
> _ldap_first_reference
> _ldap_get_dn
> _ldap_get_option
> _ldap_get_values
> _ldap_get_values_len
> _ldap_initialize
> _ldap_memfree
> _ldap_modify_s
> _ldap_msgfree
> _ldap_next_attribute
> _ldap_next_entry
> _ldap_next_reference
> _ldap_open
> _ldap_parse_reference
> _ldap_parse_result
> _ldap_perror
> _ldap_rename_s
> _ldap_result
> _ldap_search
> _ldap_search_s
> _ldap_set_option
> _ldap_unbind_s
> _ldap_value_free
> _ldap_value_free_len
> /usr/sbin/apachectl start: httpd could not be started
>
> Now...my OpenLDAP works fine. My PHP with LDAP compiled without error.
> Anyone have any ideas as to what might be wrong?
>
> - Quinn
>
---