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

Re: doubt



On 08/09/12 14:41 -0300, Luiz Guilherme Nunes Fernandes wrote:
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

Your ppolicy configuration should be contained within a database
definition. Move your config statements below this point.

See the example contained within the slapo-ppolicy manpage.

--
Dan White