Re: PHP and LDAP over SSL
| From: | Curtis Robinson | Date: | Mon, 26 Aug 2002 18:43:43 +0000 |
| Subject: | Re: PHP and LDAP over SSL | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-114157@lists.php.net to get a copy of this message | ||
Yea, I am using OpenLDAP. Putting the .ldaprc in the user homedir for
the web server worked like a charm. Thanks.
On Mon, Aug 26, 2002 at 08:37:52AM +0200, Stig Venaas wrote:
> On Fri, Aug 23, 2002 at 11:52:11AM -0500, Curtis Robinson wrote:
> > So, I see that php does not have the CA. But, I have no clue as to where
> > to define the location of the CA in the php configuration. So, does
> > anyone know how I can configure this option?
>
> Are you using OpenLDAP? The below is only valid for OpenLDAP.
>
> When you tested on the command line, didn't you modify your ldap.conf?
> Anyway, in ldap.conf you can specify:
>
> TLS_CACERT /path/to/ca.crt
>
> Make sure that this file is readable by your webserver.
>
> You might also want to specify the following in .ldaprc (in the
> users home directory):
>
> TLS_CERT /path/to/client.crt
> TLS_KEY /path/to/client.key
>
> If you run apache as say nobody, they must be in the home directory
> of nobody I guess...
>
> Stig
--
Curtis Robinson
crobinso@fit.edu