[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ldap <--> heimdal again
Ilia Chipitsine wrote:
>> On Mon, Mar 14, 2005 at 07:18:02PM +0500, Ilia Chipitsine wrote:
>>
>>>>>>>> 1) how can I specify path to the socket openldap is listening on ?
>>>>>>
>>>>>>
>>>>>> In /etc/rc.conf ( FreeBSD box )
>>>>>
>>>>>
>>>>> the question was "how does heimdal recognize where to look for that
>>>>> socket
>>>>> ?"
>>>>
>>>>
>>>> Hardcoded in
>>>> /usr/ports/security/heimdal/work/heimdal-0.6.3/lib/hdb/hdb-ldap.c
>>>>
>>>> rc = ldap_initialize((LDAP **) & db->db, "ldapi:///");
>
> ^^^^^^^^^^^^^
>
> but how to You know that string means "/var/run/openldap/ldapi" ?
See the OpenLDAP source code: include/ldap_defaults.h defines LDAPI_SOCK
which is the default socket path. Heimdal doesn't know anything about
the actual pathname of the socket, it's purely a libldap item.
--
-- Howard Chu
Chief Architect, Symas Corp. Director, Highland Sun
http://www.symas.com http://highlandsun.com/hyc
Symas: Premier OpenSource Development and Support