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

Unknown directive "file"



I get this error message in my log file:

	/usr/local/etc/openldap/slapd.conf: line 105: unknown directive "file"
	inside backend database definition (ignored)

which I can't get past.

I'm running OpenLdap-2.0.18 on Solaris 7.

I'm trying to specify a passwd backend database, using /local/ldap/passwd
as the password file rather than /etc/passwd.  (I'm not 100% sure I
_should_ be trying to do this but I may be able to answer that if I can
just get the thing to work!) So I have a "file" directive in my slapd.conf
file:

	include         /local/etc/openldap/schema/core.schema
	include         /local/etc/openldap/schema/corba.schema
	include         /local/etc/openldap/schema/cosine.schema
	include         /local/etc/openldap/schema/inetorgperson.schema
	include         /local/etc/openldap/schema/java.schema
	include         /local/etc/openldap/schema/krb5-kdc.schema
	include         /local/etc/openldap/schema/misc.schema
	include         /local/etc/openldap/schema/nadf.schema
	include         /local/etc/openldap/schema/nis.schema
	include         /local/etc/openldap/schema/openldap.schema
	pidfile         /usr/local/var/slapd.pid
	argsfile        /usr/local/var/slapd.args
	loglevel        -1
	backend		passwd
	database	passwd
	readonly        on
	rootdn          "cn=Manager,dc=dcs,dc=st-and,dc=ac,dc=uk"
	rootpw          yahoo
	suffix          "dc=dcs,dc=st-and,dc=ac,dc=uk"
	file            /local/ldap/passwd

I've configured openldap with --enable-passwd.

If I take out the file directive line, what's left seems to work correctly
- ldapsearch goes to /etc/passwd and from there (under control of
nssswitch.conf) to the nis databases.  I just can't get it to go to a
non-default passwd file.

I've looked in the archives, the source, the docs, the man pages, with no
joy.  Has anyone any suggestions?

--
Norman Paterson, University of St Andrews
http://www.dcs.st-and.ac.uk/~norman/