hi all
Adesso una parte del problema l' ho risolta, ovvero courier va a fare le query
su ldap, il problema stava in qualche carattere non visibile nel file di
configurazione authdldaprc.cio' impiegato due gg caocmq adesso ho
un altro problma ovvero l'utente di prova che ho creato riceve sempre acesso
negato
Ho gia' provato piu' volte a cambiargli la passwd ma non e' quello, penso che
sia qualcosa che ho sbagliato io in ldap.
queste sono un po di mie conf::
acl di ldap
access to dn=".*,o=([^,]+),o=hosting,dc=example,dc=net"
attr=userPassword
by self write
by group/organizationalRole/roleOccupant=\
"cn=postmaster,o=$1,o=hosting,dc=example,dc=net" write
by anonymous read
by * read
access to dn=".*o=([^,]+),o=hosting,dc=example,dc=net"
by self write
by
group/organizationalRole/roleOccupant="cn=postmaster,o=$1,o=hosting,dc=example,dc=net"
write
by anonymous read
by * read
#
file ldif di un dominio virtuale
dn: o=karm4.net, o=hosting, dc=example,dc=net
objectClass: top
objectClass: organization
o: karm4.net
dn: cn=postmaster, o=karm4.net, o=hosting, dc=example,dc=net
mail: [EMAIL PROTECTED]
roleOccupant: [EMAIL PROTECTED], o=karm4.net, o=hosting, dc=exemple, dc=net
objectClass: top
objectClass: organizationalRole
objectClass: CourierMailAlias
maildrop: postmaster
cn: postmaster
dn: [EMAIL PROTECTED], o=karm4.net, o=hosting, dc=example,dc=net
mail: [EMAIL PROTECTED]
gidNumber: 1001
userPassword:: e1NTSEF9L3FLRWZQZ0svN05IanBUWFh3WEJUb2daSVh5YXFQSlQ=
uidNumber: 1001
objectClass: top
objectClass: courierMailAccount
homeDirectory: /home/vmail/domains
mailbox: karm4.net/user1/
dn: [EMAIL PROTECTED], o=karm4.net, o=hosting, dc=example,dc=net
mail: [EMAIL PROTECTED]
objectClass: top
objectClass: CourierMailAlias
maildrop: abuse
###
il filtro di authldaprc
LDAP_FILTER (objectClass=CourierMailAccount)(accountActive=TRUE)(delete=FALSE)
#
questo e' il comando per provare gli utenti
#courierauthtest [EMAIL PROTECTED]
Authenticated: module authdaemon
Home directory: /home/vmail/domains
UID/GID: 1001/1001
[EMAIL PROTECTED]
AUTHFULLNAME=
questo e' l'output di slapd -d 256 del comando courierauthtest
daemon: conn=0 fd=9 connection from IP=192.168.1.39:32824 (IP=0.0.0.0:34049)
accepted.
conn=0 op=0 BIND dn="CN=ADMIN,DC=example,DC=NET" method=128
ber_flush: 14 bytes to sd 9
deferring operation
conn=0 op=0 RESULT tag=97 err=0 text=
conn=0 op=1 SRCH base="dc=example, dc=net" scope=2 filter="([EMAIL PROTECTED])"
ber_flush: 200 bytes to sd 9
ber_flush: 14 bytes to sd 9
conn=0 op=1 SEARCH RESULT tag=101 err=0 text=
#à
1. nell' utente virtuale user1 come uid e gid devo impostare quelli dell'
utente vmail???
2. devo creare un file userdb con l' utente vmail???
grazie