Re: PHP5 and ldap

2009-09-18 Thread FreeBSD admin

Hi folks, I don't know how to enable ldap for php5 on my Freebsd 7.2 system

this is a client only ldap system.
ldapsearch works well with tls on it.
but I try to enable roundcube ldap, and roundcube says:

 LDAP Error: No ldap support in this installation of PHP (GET
/?_task=addressbook_action=list_source=ldap_page=1_remote=1)

here is the output of pkg_info:
 pkg_info | grep ldap
openldap-client-2.4.16 Open source LDAP client implementation
php5-ldap-5.2.9 The ldap shared extension for php

find / -name ldap.so
/usr/local/lib/php/20060613/ldap.so

any idea?
-- 
View this message in context: 
http://www.nabble.com/PHP5-and-ldap-tp22183625p25510735.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP5 and ldap

2009-09-18 Thread Bill Moran
In response to FreeBSD admin alligator...@free.fr:

 
 Hi folks, I don't know how to enable ldap for php5 on my Freebsd 7.2 system
 
 this is a client only ldap system.
 ldapsearch works well with tls on it.
 but I try to enable roundcube ldap, and roundcube says:
 
  LDAP Error: No ldap support in this installation of PHP (GET
 /?_task=addressbook_action=list_source=ldap_page=1_remote=1)
 
 here is the output of pkg_info:
  pkg_info | grep ldap
 openldap-client-2.4.16 Open source LDAP client implementation
 php5-ldap-5.2.9 The ldap shared extension for php
 
 find / -name ldap.so
 /usr/local/lib/php/20060613/ldap.so
 
 any idea?

I have a couple of guesses.

1) If you installed php5-ldap from ports, you generally have to restart
   Apache for the running PHP to recognize that it's there.
2) Check /usr/local/etc/php/extensions.ini to ensure the .so was
   properly listed.  I've seen cases where it's not listed correctly.

You can check the output of php_info() to make sure PHP thinks it's
there.

Hope this helps.

-- 
Bill Moran
http://www.potentialtech.com
http://people.collaborativefusion.com/~wmoran/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP5 and ldap

2009-09-18 Thread FreeBSD admin

SOLVED!
i had an incorrect php.ini in front of my apache installation. You put me on
the right tracks!
problem solved.

no I have a TLS negociation error, but this is another part.

Cheers
-- 
View this message in context: 
http://www.nabble.com/PHP5-and-ldap-tp22183625p25511444.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP5 and ldap

2009-09-18 Thread FreeBSD admin

and now it working... 

tls_ssf=256 ssf=256

great thanks for php.ini trick!

@+
-- 
View this message in context: 
http://www.nabble.com/PHP5-and-ldap-tp22183625p25511620.html
Sent from the freebsd-questions mailing list archive at Nabble.com.

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP5 and ldap

2009-02-26 Thread Pieter Donche

I started, as suggested
# cd /usr/ports
# portupgrade -fr net/openldap24-client

yesterdat at 10:00 it continued all day and somewhere during the night
ended with:
...
===   Registering installation for koffice-1.6.3_7,2
===  Cleaning for koffice-1.6.3_7,2
---  Cleaning out obsolete shared libraries
[Updating the pkgdb format:bdb_btree in /var/db/pkg ... - 486 packages found
(-0 +1) . done]
---  Skipping 'x11/kde3' (kde-3.5.10_1) because a requisite package 'kdegraphi
cs-3.5.10' (graphics/kdegraphics3) failed (specify -k to force)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
! graphics/kdegraphics3 (kdegraphics-3.5.10)(configure error)
* x11/kde3 (kde-3.5.10_1)

How does one go from here ? I checked:
# cd /usr/ports/graphics/kdegraphics3
# make
...
checking for posix_memalign... yes
checking pkg-config files for X11 are available... yes
checking for LIBDRM... configure: error: Package requirements (libdrm = 2.4.3)
 were not met:
Requested 'libdrm = 2.4.3' but version of libdrm is 2.3.1

OK, I did:
# cd /usr/ports/graphics/libdrm
# portsnap fetch
# portsnap update
# portupgrade -R libdrm

this did: Upgrading 'libdrm-2.3.1' to 'libdrm-2.4.5' (graphics/libdrm)

How do I continue now with the master rebuild which was aborted this 
night?


Is it OK to just doing the same thing as yesterday:
# cd /usr/ports
# portupgrade -fr net/openldap24-client

Or what else?

On Tue, 24 Feb 2009, Mikhail Goriachev wrote:


Pieter Donche wrote:

On Tue, 24 Feb 2009, Vasadi I. Claudiu Florin wrote:


what does  php --versionsay now?


the same as before :

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/ldap.so' - 
Shared object libldap-2.4.so.5 not found, required by ldap.so in Unknown on 
line 0
PHP 5.2.8 with Suhosin-Patch 0.9.6.3 (cli) (built: Jan 19 2009 08:43:08)
Copyright (c) 1997-2008 The PHP Group
Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies


I had a similar problem. You not gonna love it, but according to
/usr/ports/UPDATING:

20090216:
 AFFECTS: users of net/openldap24-{client,server}
 AUTHOR: delp...@freebsd.org

 OpenLDAP has been upgraded to 2.4.14, which requires a shared
 library version bump.  Therefore, you need to reinstall all
 ports depending on it.  Run something like:

   # portupgrade -fr net/openldap24-client

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP5 and ldap

2009-02-26 Thread Matthias Fechner

Hi Pieter,

Pieter Donche wrote:

---  Skipping 'x11/kde3' (kde-3.5.10_1) because a requisite package 'kdegraphi
cs-3.5.10' (graphics/kdegraphics3) failed (specify -k to force)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
 ! graphics/kdegraphics3 (kdegraphics-3.5.10)(configure error)
 * x11/kde3 (kde-3.5.10_1)


it seems that only this two packages failed to build.
So a
portupgrade -f kdegraphics3 kde3
should be enough.

Bye,
Matthias

--
Programming today is a race between software engineers striving to 
build bigger and better idiot-proof programs, and the universe trying to 
produce bigger and better idiots. So far, the universe is winning. -- 
Rich Cook

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP5 and ldap

2009-02-26 Thread Pieter Donche


On Thu, 26 Feb 2009, Matthias Fechner wrote:


Hi Pieter,

Pieter Donche wrote:
---  Skipping 'x11/kde3' (kde-3.5.10_1) because a requisite package 
'kdegraphi

cs-3.5.10' (graphics/kdegraphics3) failed (specify -k to force)
** Listing the failed packages (-:ignored / *:skipped / !:failed)
 ! graphics/kdegraphics3 (kdegraphics-3.5.10)(configure error)
 * x11/kde3 (kde-3.5.10_1)


it seems that only this two packages failed to build.
So a
portupgrade -f kdegraphics3 kde3
should be enough.


# cd /usr/ports
# portupgrade -f kdegraphics3 kde3
[Updating the pkgdb format:bdb_btree in /var/db/pkg ... - 489 packages found 
(-1 +4) (...) done]
#
this is all the output
is this normal? seems very little ...


Bye,
Matthias

--
Programming today is a race between software engineers striving to build 
bigger and better idiot-proof programs, and the universe trying to produce 
bigger and better idiots. So far, the universe is winning. -- Rich Cook



___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP5 and ldap

2009-02-24 Thread Vasadi I. Claudiu Florin

what does  php --versionsay now?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


RE: PHP5 and ldap

2009-02-24 Thread Paul Schmehl
-Original Message-
From: owner-freebsd-questi...@freebsd.org
[mailto:owner-freebsd-questi...@freebsd.org] On Behalf Of Pieter Donche
Sent: Tuesday, February 24, 2009 9:12 AM
To: mail.list freebsd-questions
Subject: PHP5 and ldap

Since yesterday, I get at

$ php --version
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20060613/ldap.so' - Shared object libldap-2.4.so.5 not

found, required by ldap.so in Unknown on line 0

I see that my /usr/local/lib/ now contains lrwxr-xr-x  1 root  wheel 16 Feb
23 
14:09 libldap-2.4.so - libldap-2.4.so.6
-rw-r--r--  1 root  wheel  307762 Feb 23 14:09 libldap-2.4.so.6
  etc.. so, only references to libldap-2.4.so.6, but no more
libldap-2.4.so.5

[snipped]

So php5-ldap was already the last version...

What's going wrong and how to solve all that ?

% ln -s /usr/local/lib/libldap-2.4.so /usr/local/lib/libldap-2.4.so.5

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP5 and ldap

2009-02-24 Thread Pieter Donche

On Tue, 24 Feb 2009, Vasadi I. Claudiu Florin wrote:


what does  php --versionsay now?


the same as before :

PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20060613/ldap.so' - 
Shared object libldap-2.4.so.5 not found, required by ldap.so in Unknown on 
line 0
PHP 5.2.8 with Suhosin-Patch 0.9.6.3 (cli) (built: Jan 19 2009 08:43:08) 
Copyright (c) 1997-2008 The PHP Group

Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP5 and ldap

2009-02-24 Thread Mikhail Goriachev
Pieter Donche wrote:
 On Tue, 24 Feb 2009, Vasadi I. Claudiu Florin wrote:
 
 what does  php --versionsay now?
 
 the same as before :
 
 PHP Warning:  PHP Startup: Unable to load dynamic library 
 '/usr/local/lib/php/20060613/ldap.so' - Shared object libldap-2.4.so.5 not 
 found, required by ldap.so in Unknown on line 0
 PHP 5.2.8 with Suhosin-Patch 0.9.6.3 (cli) (built: Jan 19 2009 08:43:08) 
 Copyright (c) 1997-2008 The PHP Group
 Zend Engine v2.2.0, Copyright (c) 1998-2008 Zend Technologies



I had a similar problem. You not gonna love it, but according to
/usr/ports/UPDATING:

20090216:
  AFFECTS: users of net/openldap24-{client,server}
  AUTHOR: delp...@freebsd.org

  OpenLDAP has been upgraded to 2.4.14, which requires a shared
  library version bump.  Therefore, you need to reinstall all
  ports depending on it.  Run something like:

# portupgrade -fr net/openldap24-client



Regards,
Mikhail.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP5 and ldap

2009-02-24 Thread Matthias Fechner

Hi Pieter,

Pieter Donche wrote:

Since yesterday, I get at

$ php --version
PHP Warning:  PHP Startup: Unable to load dynamic library 
'/usr/local/lib/php/20060613/ldap.so' - Shared object libldap-2.4.so.5 not 
found, required by ldap.so in Unknown on line 0


have you upgrade openldap the last days (i expect yes)?
If yes, read the /usr/ports/UPDATING

Bye,
Matthias

--
Programming today is a race between software engineers striving to 
build bigger and better idiot-proof programs, and the universe trying to 
produce bigger and better idiots. So far, the universe is winning. -- 
Rich Cook


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP5 and ldap

2009-02-24 Thread Mel
On Tuesday 24 February 2009 06:36:00 Paul Schmehl wrote:

 I see that my /usr/local/lib/ now contains lrwxr-xr-x  1 root  wheel 16 Feb
 23
 14:09 libldap-2.4.so - libldap-2.4.so.6
 -rw-r--r--  1 root  wheel  307762 Feb 23 14:09 libldap-2.4.so.6
   etc.. so, only references to libldap-2.4.so.6, but no more
 libldap-2.4.so.5

 [snipped]

 So php5-ldap was already the last version...

 What's going wrong and how to solve all that ?

 % ln -s /usr/local/lib/libldap-2.4.so /usr/local/lib/libldap-2.4.so.5

Bad bad. Generally, programmers don't bump library versions, breaking 
backwards compatibility, for fun.

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP5 and ldap

2009-02-24 Thread Pieter Donche

what the hell is a library 'bump' ??

On Tue, 24 Feb 2009, Mel wrote:


On Tuesday 24 February 2009 06:36:00 Paul Schmehl wrote:


I see that my /usr/local/lib/ now contains lrwxr-xr-x  1 root  wheel 16 Feb
23
14:09 libldap-2.4.so - libldap-2.4.so.6
-rw-r--r--  1 root  wheel  307762 Feb 23 14:09 libldap-2.4.so.6
  etc.. so, only references to libldap-2.4.so.6, but no more
libldap-2.4.so.5

[snipped]

So php5-ldap was already the last version...

What's going wrong and how to solve all that ?

% ln -s /usr/local/lib/libldap-2.4.so /usr/local/lib/libldap-2.4.so.5


Bad bad. Generally, programmers don't bump library versions, breaking
backwards compatibility, for fun.

--
Mel

Problem with today's modular software: they start with the modules
   and never get to the software part.


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: PHP5 and ldap

2009-02-24 Thread Jonathan Chen
On Tue, Feb 24, 2009 at 07:38:05PM +0100, Pieter Donche wrote:
 what the hell is a library 'bump' ??

A library bump occurs when the interface to the shared library has changed.
This requires a rebuild of dependant applications as the method
invocations or the structures used in method invocations to the library have
changed. Failure to rebuild may result in sporadic crashes, data
corruption and General Bad Things (tm).
-- 
Jonathan Chen j...@chen.org.nz
--
With sufficient thrust, pigs fly just fine. However, this is not necessarily
a good idea. It is hard to be sure where they are going to land, and it
could be dangerous sitting under them as they fly overhead. -- RFC 1925
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org