At Sat, 23 Aug 2003 02:37:14 -0700 (PDT), Phillipus Gunawan wrote: > My debian box is running LDAP server, slapd. It seems > working fine because I can query the server from > 127.0.0.1/localhost address. > > I dont have any 'ldap.conf' file in my box, but I do > have the slapd.conf. Later on, I try to open/browse > the LDAP database using LDAP browser from another > computer (Softerra LDAP Browser 2.2) but no matter how > many times I tried to, it always failed to connect.
In what way does it fail to connect? Any useful error messages? What do the logs say on your ldap server? Have you restricted access using something like /etc/hosts.deny ? > - Is this has anything to do with my missing > 'ldap.conf'? No. ldap.conf configures the client-side tools (like ldapsearch(1)). > - In debian, can I create it from a text file? Create what? ldap.conf *is* a text file. > - Where I have to put it? /etc or /etc/ldap? Debian expects to find it as /etc/ldap/ldap.conf on my (testing/unstable) system and its in the libldap2 package. See http://packages.debian.org/ and search for packages containing "ldap.conf" for a full search of all packages from different Debian versions. Of the packges you currently have installed "dpkg -S ldap.conf" would do a similar search. If you have the relevant package installed ("dpkg -l libldap2") and you still don't have an ldap.conf file, then you probably deleted it at some point. To get it back (as root): touch /etc/ldap/ldap.conf apt-get --reinstall install libldap2 choose "yes, replace my version with the package version" when prompted (ldap.conf is a "conffile", and actions such as deleting are preserved across package upgrades) -- - Gus -- SLUG - Sydney Linux User's Group - http://slug.org.au/ More Info: http://lists.slug.org.au/listinfo/slug
