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

doubt



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

# Raiz da estrutura hierarquica da base OpenLdap
suffix    Â"dc=abc"

# Conta admin da base OpenLdap
rootdn    Â"cn=admin,dc=abc"

# Senha da conta admin OpenLdap
# slappasswd -h {SSHA} -s novasenha -v
# novasenha = #######
rootpw Â######### Â Â ÂÂ

# DiretÃrio do banco de dados
# Obs: Altere a permissÃo do diretÃrio "chown -R ldap /var/lib/ldap"
directory  Â"/var/lib/ldap"

# Quantidade de memÃria RAM para o cache (2Mb)
dbconfig set_cachesize 0 2097152 0
Â
# NÃáero de objetos que podem ser bloqueados ao mesmo tempo
dbconfig set_lk_max_objects 1500
Â
# NÃmero de bloqueios
dbconfig set_lk_max_locks 1500
Â
# NÃmero de travas
dbconfig set_lk_max_lockers 1500

# OpÃÃes de indexaÃÃo para a base
#index    ÂobjectClass eq
index uid eq

# Armazena o tempo e data das entradas modificadas
lastmod   Âon

# Checagem periÃdica da base de dados
checkpoint  512 30

# Controle de acessos à base de dados
access to attrs=userPassword,shadowLastChange
by dn="cn=admin,dc=abc" write
by anonymous auth
by self write
by * none
access to dn.base="" by * read

access to *
by dn="cn=admin,dc=abc" write
by * read


Thanks for attention.


--
<<<<<<<<<<<<<<<<<<<------------------------------>>>>>>>>>>>>>>>>>>>

      Â -=| A idÃia de um fim que termina em um inÃcio. |=-

                        Att.
          â â Luiz Guilherme Nunes Fernandes â â

<<<<<<<<<<<<<<<<<<<------------------------------>>>>>>>>>>>>>>>>>>>