[colug-432] secure ldap via php page

Tom Hanlon tom at functionalmedia.com
Sat Oct 17 00:14:51 EDT 2015


It has been a while since I have done PHP stuff, but here are some
thoughts..

Have you tried to run the script as the apache user.

Assuming the user is webuser

su - webuser

php yourphp.php

Also apache has logs, ldap has logs, see what those show you.

--
Tom

On Wed, Oct 14, 2015 at 3:14 PM, Keith Larson <klarson at k12group.net> wrote:

> I have a php script that works fine when I run it interactively at a bash
> prompt
> php myscript.php
>
> part of what it does is establish a secure ldap connection.  the cert used
> for ldaps is self-signed.  this doesn't present a problem running it
> manually.
>
> when i execute that exact same command from a php web page it fails to
> establish the connection.
>
> is this a permissions issue with the user that is running apache?  or does
> apache need something to trust the self-signed cert?
>
>
> _______________________________________________
> colug-432 mailing list
> colug-432 at colug.net
> http://lists.colug.net/mailman/listinfo/colug-432
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.colug.net/pipermail/colug-432/attachments/20151017/57eaf351/attachment.html 


More information about the colug-432 mailing list