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

Re: adding VLV support to OpenLDAP 2.4.31



On Tue, Nov 11, 2014 at 11:48:59PM +0200, Igor Shmukler wrote:

> Thank you for your answer. I spent quite a lot of time reading various
> man pages including the one for slaps.conf(5), of course.
> As I mentioned, there is no slapd-config on my system. [How] is it
> possible that system is configured cn=config without it?

slapd-config is a manual page, not an executable.

	man slapd-config
		Describes the LDAP/LDIF configuration method

	man slapd.conf
		Describes the flat text-file configuration method

Both methods configure the same things, so those pages are quite
similar. The keywords / attribute names are different though, so
make sure you read the right one for the method you are using.

> Is there a way to determine whether slapd.conf is used and where the
> daemon is trying to find it, short of doing a system call trace?

Use 'ps ax | grep slap' to see whether there are any command-line options
applied to the slapd process. If there are, look them up in 'man slapd'
taking particular note of the -f and -F options. If those options are not
present then the daemon will use the default config database (see slapd-config
above) or, failing that, will use the default config file (see slapd.conf
above).

Each of those manual pages starts with a note of exactly where the
default database or config file will be found on your system.

> Also, is there a command to list loadable modules in use?

'lsof -p <slapd PID>' perhaps :-)

Modules can be backends or overlays. I cannot think of a single command
that finds all loaded slapd modules. You can find what backends and
overlays are available/active by browsing under cn=monitor. Similarly
you could search under cn=config to find what the config says *should*
be loaded.

Andrew
-- 
-----------------------------------------------------------------------
|                 From Andrew Findlay, Skills 1st Ltd                 |
| Consultant in large-scale systems, networks, and directory services |
|     http://www.skills-1st.co.uk/                +44 1628 782565     |
-----------------------------------------------------------------------