[Dovecot] Auth password problem

arleal nairda91 at hotmail.com
Wed Jun 13 23:46:20 EEST 2012


i have debian squeeze. i have installed mds with ldap integration and i want
to use dovecot/LDAP but i have problems with login. I have dovecot 1.2.

I try all of dovecot wiki but i dont know how to configure it good

dovecot.conf

protocols = imap imaps pop3 pop3s 
listen = *, ::
auth_verbose = yes
auth_debug = yes
auth_debug_passwords = yes
mail_debug = yes
verbose_ssl = yes
login_greeting = royoleal.com mailserver ready. 
mail_location = maildir:/home/users/%u/Maildir 
disable_plaintext_auth = no 
ssl_cert_file = /etc/ssl/certs/mail.pem 
ssl_key_file = /etc/ssl/private/mail.key 
log_path = /var/log/dovecot.log 
info_log_path = /var/log/dovecot.log 

# IMAP configuration 
protocol imap { 
 mail_plugins = quota imap_quota 
} 

# POP3 configuration 
protocol pop3 { 
 pop3_uidl_format = %08Xu%08Xv 
 mail_plugins = quota 
} 

# LDA configuration 
protocol lda { 
 postmaster_address = postmaster 
 auth_socket_path = /var/run/dovecot/auth-master 
 mail_plugins = quota 
} 

# LDAP authentication 

auth default { 
 mechanisms = plain login 

 passdb ldap { 
  args = /etc/dovecot/dovecot-ldap.conf 
 } 

 userdb ldap { 
  args = /etc/dovecot/dovecot-ldap.conf 
 } 

 socket listen { 
  master { 
   path = /var/run/dovecot/auth-master 
   mode = 0660 
   user = dovecot 
   group = mail 
  } 

  client { 
   path = /var/spool/postfix/private/auth 
   mode = 0660 
   user = postfix 
   group = postfix 
  }
 }
}


And this is dovecot-ldap.conf

hosts = 127.0.0.1
auth_bind = yes
ldap_version = 3
dn = cn=admin,dc=royoleal,dc=com
dnpass = royoleal
base = dc=royoleal,dc=com
auth_bind_userdn = cn=%u,ou=Users,dc=royoleal,dc=com
scope = subtree
user_attrs = uidNumber=uid,gidNumber=gid
user_filter = (&(objectClass=mailAccount)(mail=%u)(mailenable=OK))
pass_attrs = mail=mail,userPassword=password
pass_filter = (&(objectClass=mailAccount)(mail=%u)(mailenable=OK))
default_pass_scheme = CRYPT

When i try login with telnet or other program i have this problem in
dovecot.log


Jun 13 22:45:13 auth(default): Info: client in: AUTH    1       PLAIN  
service=imap    secured lip=127.0.0.1   rip=127.0.0.1   lport=14      3      
rport=55040     resp=AHBydWViYUByb3lvbGVhbC5jb20AcHJ1ZWJh
Jun 13 22:45:13 auth(default): Info: ldap(prueba at royoleal.com,127.0.0.1):
invalid credentials (given password: prueba)
Jun 13 22:45:13 auth(default): Info: new auth connection: pid=2613
Jun 13 22:45:15 auth(default): Info: client out: FAIL   1      
user=prueba at royoleal.com
Jun 13 22:45:20 imap-login: Info: Aborted login (auth failed, 1 attempts):
user=<prueba at royoleal.com>, method=PLAIN, rip=127.0.0.1, lip=     
127.0.0.1, secured

Thanks.
-- 
View this message in context: http://old.nabble.com/Auth-password-problem-tp34008289p34008289.html
Sent from the Dovecot mailing list archive at Nabble.com.




More information about the dovecot mailing list