@ -25,22 +25,7 @@ in
description = "
Whether to enable the ldap server .
" ;
example = literalExample ''
openldap . enable = true ;
openldap . extraConfig = '' '
include '' ${ pkgs . openldap } / e t c / o p e n l d a p / s c h e m a / c o r e . s c h e m a
include '' ${ pkgs . openldap } / e t c / o p e n l d a p / s c h e m a / c o s i n e . s c h e m a
include '' ${ pkgs . openldap } / e t c / o p e n l d a p / s c h e m a / i n e t o r g p e r s o n . s c h e m a
include '' ${ pkgs . openldap } / e t c / o p e n l d a p / s c h e m a / n i s . s c h e m a
database bdb
suffix dc = example , dc = org
rootdn cn = admin , dc = example , dc = org
# NOTE: change after first start
rootpw secret
directory /var/db/openldap
'' ' ;
'' ;
example = true ;
} ;
user = mkOption {
@ -67,6 +52,19 @@ in
description = "
sldapd . conf configuration
" ;
example = ''
include '' ${ pkgs . openldap } / e t c / o p e n l d a p / s c h e m a / c o r e . s c h e m a
include '' ${ pkgs . openldap } / e t c / o p e n l d a p / s c h e m a / c o s i n e . s c h e m a
include '' ${ pkgs . openldap } / e t c / o p e n l d a p / s c h e m a / i n e t o r g p e r s o n . s c h e m a
include '' ${ pkgs . openldap } / e t c / o p e n l d a p / s c h e m a / n i s . s c h e m a
database bdb
suffix dc = example , dc = org
rootdn cn = admin , dc = example , dc = org
# NOTE: change after first start
rootpw secret
directory /var/db/openldap
'' ;
} ;
} ;