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

Re: LDAP APIs -- ldap_get_option -- question



Vladimir Tsyshevsky wrote:
> 
> Hi,
> 
> my question is about draft-ietf-ldapext-ldap-c-api-04.txt ldap_get_option call.
> 
> Why the default port value cannot be asked for (but LDAP_OPT_HOST_NAME
> can). The same about default LDAP base.

Someone else suggested that the operation of LDAP_OPT_HOST_NAME needs
clarification in the draft.  The intent is that a call to
ldap_get_option() with option LDAP_OPT_HOST_NAME will return the entire
hostname string that was passed to ldap_init().  But if the port was
passed separately, there is no way to retrieve it, so maybe we should
say that LDAP_OPT_HOST_NAME will return a string with :PORT on the end,
e.g.,

   ldap_init( "ldap.netscape.com", 3389 )

would result in an LDAP_OPT_HOST_NAME string of:

    "ldap.netscape.com:3389"

etc.

Comments?

-- 
Mark Smith
iPlanet Directory Architect / Sun-Netscape Alliance
My words are my own, not my employer's.   Got LDAP?