ldap config

Fórumok

Az openldap-al kapcsolatban lenne szükségem néhány infóra.

Van -e különbség a slapd.conf és cn=config között? (pl cn= .. esetén több beállítási lehetőség van?)

Hol tudom állítani, hogy melyiket használja?
(telepítéskor, vagy később is módosítható?, illetve konvertálható-e oda-vissza a konfig állományok?)

Hozzászólások

A cn=config már az újabb openldap szerverek sajátossága...

--
Debian Linux rulez... :D

"Van -e különbség a slapd.conf és cn=config között? (pl cn= .. esetén több beállítási lehetőség van?)"
man slapd-config:
The config backend is backward compatible with the older slapd.conf(5) file but provides the ability to change the configuration dynamically at runtime. If slapd is run with only a slapd.conf file dynamic changes will be allowed but they will not persist across a server restart. Dynamic changes are only saved when slapd is running from a slapd.d configuration directory.

"Hol tudom állítani, hogy melyiket használja?"
man slapd:
-f slapd-config-file
Specifies the slapd configuration file. The default is /etc/openldap/slapd.conf.

-F slapd-config-directory
Specifies the slapd configuration directory. The default is /etc/openldap/slapd.d. If both -f and -F are specified, the config file will be read and converted to config directory format and written to the specified directory. If neither option is specified, slapd will attempt to read the default config directory before trying to use the default config file. If a valid config directory exists then the default config file is ignored. All of the slap tools that use the config options observe this same behavior.

"telepítéskor, vagy később is módosítható?"
See above

"konvertálható-e oda-vissza a konfig állományok?"
slapd.conf convertalhato slapd.d tree-re a slaptest command-al, visszafele nem tudok konverziorol:
slaptest -f slapd.conf -F slapd.d