Dear,
i have one doubt, after running slaptest, the error is displayed:
slapo-ppolicy cannot be global
slaptest: bad configuration file!
##########################
My config:
# Slapd.conf
# Converter slapd.conf para diretório slapd.d
# slaptest -f /etc/openldap/slapd.conf -F /etc/openldap/slapd.d
# schema Padrão
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/inetorgperson.schema
# schema adicionais
include /etc/openldap/schema/collective.schema
include /etc/openldap/schema/corba.schema
include /etc/openldap/schema/duaconf.schema
include /etc/openldap/schema/dyngroup.schema
include /etc/openldap/schema/java.schema
include /etc/openldap/schema/misc.schema
include /etc/openldap/schema/openldap.schema
include /etc/openldap/schema/pmi.schema
include /etc/openldap/schema/ppolicy.schema
include /etc/openldap/schema/qmail.schema
include /etc/openldap/schema/sudo.schema
# Permitir o protocolo LDAPv2
allow bind_v2
# Arquivo de informação de processos slapd
pidfile /var/run/slapd/slapd.pid
# Lista de argumentos que são repassados ao servidoe slapd
argsfile /var/run/slapd/slapd.args
# Nivel de logs
loglevel 256
modulepath /usr/lib/ldap/
moduleload back_bdb.la
moduleload ppolicy.la
# Politicas de senhas
overlay ppolicy
ppolicy_default "cn=StandardPolicy,dc=abc"
ppolicy_use_lockout
# Limites Aplicado a toda as buscas no LDAP, Tamanho e Tempo Limite
(Segundos)
sizelimit 500
# Número de CPUs Utilizada para criar indíces
tool-threads 1
# Banco de Dados
backend bdb
database bdb