gnupg integração com o openLDAP - ACL Error

1

Por favor, você poderia me ajudar a resolver este erro com o OpenLDAP?

### ldif - To change ACL  ######

# userPassword may be written only by users themselves
dn: olcDatabase={1}hdb,cn=config
changetype: modify
add: olcAccess
# Allow access via localhost to add or modify keys.
# Allow authenticated PGP Users to update keys.
# Allow anyone else to read the keys.
olcAccess: {2} to dn.subtree="ou=PGP Keys,dc=example,dc=net"
 by peername.ip=127.0.0.1 write
 by peername.ip=:: write
 by dn.regex="^uid=([^,]+),ou=PGP Users,dc=example,dc=net" write by * read
# Allow any connection to localhost to update the PGP keys
# (including removing them!)  This is only needed if the anonymous
# updates from localhost are desired.
dn: cn=config
add: olcAllows
olcAllows: update_anon

-----------------------------------------

Quando tento modificar / adicionar com

ldapadd -Y EXTERNAL -H ldapi:/// -f /tmp/keyserver-acl.ldif

ou

ldapmodify -Y EXTERNAL -H ldapi:/// -f /tmp/keyserver-acl.ldif

não passa, sempre solicita um erro irritante de atributoTipo incorreto

****** Error

root@keyserver:/tmp# ldapadd -Y EXTERNAL -H ldapi:/// -f /tmp/keyserver-acl.ldif SASL/EXTERNAL authentication started SASL username: gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth SASL SSF: 0 ldapadd: wrong attributeType at line 5, entry "olcDatabase={1}hdb,cn=config"


    
por user2372925 05.03.2017 / 12:40

1 resposta

0

Acredito que você precisa de uma linha em branco antes da linha dn: cn=config .

    
por 05.03.2017 / 13:05