Hi All,
Here's my forth tip in the "OpenLDAP Quick Tips" series:
"You want to test your configuration for your directory server":
The
OpenLDAP Software Suite comes with many great command line tools which we will cover in the
OpenLDAP Quick Tips series. The first one you should always use is
slaptest:
CODE:
[root@suretec src]# /usr/local/sbin/slaptest -f /usr/local/etc/openldap/slapd.conf
config file testing succeeded
The above means our configuration is all good. If we are using dynamic configuration, we would use
-F. For more information, always use the
-d flag which we will cover in another tip.
For some errors like below, it's obvious what's wrong:
CODE:
[root@suretec src]# /usr/local/sbin/slaptest -f /usr/local/etc/openldap/slapd.conf
could not stat config file "/usr/local/etc/openldap/schema/suretec.schema": No such file or directory (2)
slaptest: bad configuration file!
Thanks,
Gavin.
If you have an entry for our "OpenLDAP Quick Tips" series, why not e-mail your tip to us.
P.S. For direct access to this section, you can click
OpenLDAP Quick Tips.
Comments
Thu, 18.12.2008 21:49
Thu, 18.12.2008 21:19
Thu, 18.12.2008 12:35