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

RE: Unknown directive "file"

There is a bug in the released code, in init.c the reference to
passwd_back_db_config is missing so the configuration code is never used.
I.e., the "file" directive is unrecognized because the code to process it
is never called. I patched this in the HEAD source a couple weeks ago, it's
a one-line fix.

  -- Howard Chu
  Chief Architect, Symas Corp.       Director, Highland Sun
  http://www.symas.com               http://highlandsun.com/hyc
  Symas: Premier OpenSource Development and Support

> -----Original Message-----
> From: owner-openldap-software@OpenLDAP.org
> [mailto:owner-openldap-software@OpenLDAP.org]On Behalf Of Norman
> Paterson
> Sent: Thursday, January 10, 2002 7:59 AM
> To: OpenLDAP-Software@OpenLDAP.org
> Subject: 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/