php-windows Digest 13 May 2010 08:16:04 -0000 Issue 3809
Topics (messages 30098 through 30105):
Re: 2 questions on mssql and ldap
30098 by: Lester Caine
30099 by: Bruno CHALOPIN
30100 by: Sascha Meyer
30101 by: Bruno CHALOPIN
30102 by: Sascha Meyer
30103 by: Bruno CHALOPIN
30104 by: Venkat Raman Don
30105 by: Pierre Joye
Administrivia:
To subscribe to the digest, e-mail:
php-windows-digest-subscr...@lists.php.net
To unsubscribe from the digest, e-mail:
php-windows-digest-unsubscr...@lists.php.net
To post to the list, e-mail:
php-wind...@lists.php.net
----------------------------------------------------------------------
--- Begin Message ---
Venkat Raman Don wrote:
Hi,
While configuring PHP (configure command) one has to use the switch
--with-ldap-sasl, otherwise this function is undefined. Probably the LDAP
library you are using is not configured with this switch. Try compiling with
this switch yourself.
This IS the windows PHP list - so compiling special versions is not appropriate!
There are a number of extensions available ready compiled, so it is just a
matter of checking that they have loaded in phpinfo() or looking for errors in
the log which explain why they haven't
--
Lester Caine - G8HFL
-----------------------------
Contact - http://lsces.co.uk/wiki/?page=contact
L.S.Caine Electronic Services - http://lsces.co.uk
EnquirySolve - http://enquirysolve.com/
Model Engineers Digital Workshop - http://medw.co.uk//
Firebird - http://www.firebirdsql.org/index.php
--- End Message ---
--- Begin Message ---
Hi,
Le 12/05/2010 09:40, Lester Caine a écrit :
This IS the windows PHP list - so compiling special versions is not
appropriate!
I agree that compiling special versions is not appropriate on Windows.
There are a number of extensions available ready compiled, so it is just
a matter of checking that they have loaded in phpinfo() or looking for
errors in the log which explain why they haven't
I only get this error : "Fatal error: Call to undefined function
ldap_sasl_bind()". It's a little bit light to find how to make it work :-/
Regards,
Bruno
--- End Message ---
--- Begin Message ---
Hi Bruno,
Bruno wrote:
> I only get this error : "Fatal error: Call to undefined function
> ldap_sasl_bind()". It's a little bit light to find how to make it work :-/
I checked bugs.php.net and found the following bug:
http://bugs.php.net/bug.php?id=43233
Quote:
"This is not a bug, just missing feature or rather: missing sasl support in the
ldap libraries used to build win32 binaries."
The bug's status is "open" so I assume that this is also a problem with more
recent builds of Windows PHP versions.
Regards,
Sascha
--
Freundliche Grüße / Kind regards,
Sascha Meyer
--------------------------------------------------
EE: http://www.experts-exchange.com/M_761556.html
ZCE: http://www.zend.com/en/yellow-pages#show-ClientCandidateID=ZEND011290
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
--- End Message ---
--- Begin Message ---
Hi Sascha,
Le 12/05/2010 10:51, Sascha Meyer a écrit :
I checked bugs.php.net and found the following bug:
http://bugs.php.net/bug.php?id=43233
Quote:
"This is not a bug, just missing feature or rather: missing sasl support in the ldap
libraries used to build win32 binaries."
The bug's status is "open" so I assume that this is also a problem with more
recent builds of Windows PHP versions.
Thanks for the search. It is a pity that it hasn't been resolved since
2007. Seems like the win32 binaries of PHP are not considered that much
despite the fact that the use of PHP is getting higher with the last
versions of IIS. I suppose I'll be obliged to use COM components within
PHP to simulate this not so native feature.
Regards,
Bruno
--- End Message ---
--- Begin Message ---
Hi Bruno,
Bruno wrote:
> I suppose I'll be obliged to use COM components within
> PHP to simulate this not so native feature.
You might also look into the PEAR repository before switching to COM:
http://pear.php.net/package/Auth_SASL
http://pear.php.net/package/Net_LDAP2 (contains a function
supportedSASLMechanism() to check if an LDAP server supports SASL auth)
I haven't used the above packages yet but you might consider checking these
before doing any COM-related programming.
Regards,
Sascha
--
Freundliche Grüße / Kind regards,
Sascha Meyer
--------------------------------------------------
EE: http://www.experts-exchange.com/M_761556.html
ZCE: http://www.zend.com/en/yellow-pages#show-ClientCandidateID=ZEND011290
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
--- End Message ---
--- Begin Message ---
Hi Sascha,
Le 12/05/2010 12:02, Sascha Meyer a écrit :
You might also look into the PEAR repository before switching to COM:
http://pear.php.net/package/Auth_SASL
http://pear.php.net/package/Net_LDAP2 (contains a function
supportedSASLMechanism() to check if an LDAP server supports SASL auth)
I haven't used the above packages yet but you might consider checking these
before doing any COM-related programming.
The Net_LDAP2 doesn't provide sasl authentication and Auth_SASL won't
work threw ldap_bind.
Regards,
Bruno
--- End Message ---
--- Begin Message ---
Hi Sascha,
I was just saying that if your LDAP extension is not compiled with option
--with-ldap-sasl, this function will not be defined. Since Bruno is getting
other functions defined other than this particular function, this means that
LDAP DLL he is using was not configured with --with-ldap-sasl option at build
time. This is what I got from PHP manual. Look at
http://us2.php.net/manual/en/function.ldap-sasl-bind.php under requirement.
An obvious solution is to compile it with the option --with-ldap-sasl. I told
Bruno to do it because I thought it will be convenient. If not, someone has to
compile it with the option mentioned above and upload it so that others can
use. I can also see that LDAP is very much part of PHP MSI, so probably bundled
MSI/ZIP package has to be modified. So a change in Windows build script
somewhere is needed.
Thanks,
Don.
-----Original Message-----
From: Sascha Meyer [mailto:harlequ...@gmx.de]
Sent: Wednesday, May 12, 2010 12:22 AM
To: Venkat Raman Don; php-wind...@lists.php.net; bruno.chalo...@laposte.net
Subject: Re: RE: [PHP-WIN] 2 questions on mssql and ldap
Hi Don,
Don wrote:
> While configuring PHP (configure command) one has to use the switch
> --with-ldap-sasl, otherwise this function is undefined. Probably the LDAP
> library
> you are using is not configured with this switch. Try compiling with this
> switch yourself.
could you give us some more info on this topic? I didn't knew that you have to
compile PHP on windows for extensions to work and thought compiling was just a
requirement on most *nix systems.
Which files are necessary to compile SASL support into PHP and which steps have
to be taken?
Thanks and regards,
Sascha
--
Freundliche Grüße / Kind regards,
Sascha Meyer
--------------------------------------------------
EE: http://www.experts-exchange.com/M_761556.html
ZCE: http://www.zend.com/en/yellow-pages#show-ClientCandidateID=ZEND011290
GRATIS für alle GMX-Mitglieder: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://portal.gmx.net/de/go/maxdome01
--- End Message ---
--- Begin Message ---
On Wed, May 12, 2010 at 11:02 AM, Bruno CHALOPIN
<bruno.chalo...@laposte.net> wrote:
> Hi Sascha,
>
> Le 12/05/2010 10:51, Sascha Meyer a écrit :
>>
>> I checked bugs.php.net and found the following bug:
>>
>> http://bugs.php.net/bug.php?id=43233
>>
>> Quote:
>> "This is not a bug, just missing feature or rather: missing sasl support
>> in the ldap libraries used to build win32 binaries."
>>
>> The bug's status is "open" so I assume that this is also a problem with
>> more recent builds of Windows PHP versions.
>>
>
> Thanks for the search. It is a pity that it hasn't been resolved since 2007.
> Seems like the win32 binaries of PHP are not considered that much despite
> the fact that the use of PHP is getting higher with the last versions of
> IIS. I suppose I'll be obliged to use COM components within PHP to simulate
> this not so native feature.
See my comment in the bug report. SASL is not well supported by AD
either. I'm really not sure we can get SASL support in openldap client
libraries working well for Windows.
About the sqlserver support question, I strongly suggest to use the
Microsoft SqlSrv driver instead. It is much more stable, works with
all active PHP versions and supports all authentification methods you
can have with the native sqlserver drivers on windows.
Cheers.
--
Pierre
@pierrejoye | http://blog.thepimp.net | http://www.libgd.org
--- End Message ---