how to configure open ldap to work on localhost
You can put whatever you want. Suffix has nothing to do with what IPs/interfaces slapd listens on. Suffix is the top level of the data tree, it doesn't have to be DNS/network names. Think of it as your database name. So while you could use:
suffix "dc=localhost,dc=localdomain"
or
suffix "dc=example,dc=com"
you could also use:
suffix "dc=my,dc=ldap"
You can have more than two parts if you want
suffix "dc=my,dc=ldap,dc=server"
Related videos on Youtube
Itay Moav -Malimovka
SOreadytohelp Below are some of the open source projects I work on. A PHP Library the wrappes SurveyMonkey's API https://github.com/itay-moav/TheKofClient A tool to Schema Check, manage Stored Procedures, Triggers, Views and get autocompletion: https://github.com/itay-moav/rahl_commander A fun way to point users at the right direction in your site ;-) https://github.com/itay-moav/babahandofgod An old version of WMD which I converted to Mootools, 8 years ago... http://moowmd.awardspace.info Feel free to contact me through linkedin http://www.linkedin.com/in/itaymoav
Updated on September 17, 2022Comments
-
Itay Moav -Malimovka over 1 year
From the documentation:
Use your favorite editor to edit the provided slapd.conf(5) example (usually installed as /usr/local/etc/openldap/slapd.conf) to contain a BDB database definition of the form:
database bdb suffix "dc=<MY-DOMAIN>,dc=<COM>" rootdn "cn=Manager,dc=<MY-DOMAIN>,dc=<COM>" rootpw secret directory /usr/local/var/openldap-data
But, my domain is either 127.0.1.1 or localhost,
What should I put instead of MY-DOMAIN and in COM ? -
Phil P over 14 yearsSince dc explicitly means domain-component, and is for those new-fangled DNS users who think that Internet domains matter :) you could always revert to an old-style setup based on components other than dc=. This has the advantage of not causing confusion when systems try to locate servers with SRV records based on the dc path.