[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: What should I use as hostname for php to connect to openLDAP?



On 07/07/13 17:04 -0400, Jason Huang wrote:
Hello - I am a newbie to openLDAP and wants to get some help here.

I've deployed apache on a EC2 server, obtain an elastic IP from amazon and
point xyz.com to this IP.

I've installed a service provider(simplesamlphp) with hostname sp.xyz.com,
pointing to this same IP.

I've also installed an identity provider (simplesamlphp) with hostname
idp.xyz.com, pointing to this same IP.

Now I am installing openLDAP on this same server. What hostname should I
use for php to connect to this ldap server? Should I use "xyz.com" or "
sp.xyz.com" or "idp.xyz.com", or something else like "ldap.xyz.com"? If I
am using "ldap.xyz.com", where should I specify this hostname?

Consult the PHP documentation:

http://php.net/manual/en/function.ldap-bind.php
http://php.net/manual/en/function.ldap-sasl-bind.php

The hostname you use within PHP generally shouldn't matter, unless you're
performing a sasl bind and using a hostname-aware-mechanism, such as
GSSAPI.

--
Dan White