nixpkgs/nixos/modules/services/databases
Jörg Thalheim 382b0aa52d
nixos/openldap: check configuration with slaptest
slapd does only print the error and not the line number.
Sometimes it is not even clear that it fails to start
due to an incorrect configuration file.

Example output of slaptest:

5e1b2179 /nix/store/gbn2v319d4qgw851sg41mcmjm5dpn39i-slapd.conf: line 134 objectClass: Missing closing parenthesis before end of input
ObjectClassDescription = "(" whsp
  numericoid whsp                 ; ObjectClass identifier
  [ "NAME" qdescrs ]
  [ "DESC" qdstring ]
  [ "OBSOLETE" whsp ]
  [ "SUP" oids ]                ; Superior ObjectClasses
  [ ( "ABSTRACT" / "STRUCTURAL" / "AUXILIARY" ) whsp ]
                                  ; default structural
  [ "MUST" oids ]               ; AttributeTypes
  [ "MAY" oids ]                ; AttributeTypes
  whsp ")"
slaptest: bad configuration file!
2020-01-12 14:25:49 +00:00
..
aerospike.nix
cassandra.nix
clickhouse.nix
cockroachdb.nix
couchdb.nix
firebird.nix
foundationdb.nix
foundationdb.xml
hbase.nix
influxdb.nix
memcached.nix
monetdb.nix
mongodb.nix
mysql.nix
neo4j.nix
openldap.nix nixos/openldap: check configuration with slaptest 2020-01-12 14:25:49 +00:00
opentsdb.nix
pgmanage.nix
postgresql.nix
postgresql.xml
redis.nix
rethinkdb.nix
riak-cs.nix
riak.nix
stanchion.nix
virtuoso.nix