Re: authenticate LDAP to email server
i edited "dovecot-ldap.conf.ext" and added the lines hosts = 10.10.1.3 auth_bind = yes auth_bind_userdn = cn=%u,cn=home,ou=robina_users,dc=robina,dc=private i then edited "dovecot.conf" and added this line in auth_username_format = %Lu i edited "10-auth.conf" i unhashed the following line !include auth-ldap.conf.ext - which contains my userdb and passwddb file but when i try to create a new email account using thunderbird it cant find the settings for my email account any help please rob
Re: authenticate LDAP to email server
Am 28.06.2015 um 19:50 schrieb robert k Wild: i edited "dovecot-ldap.conf.ext" and added the lines hosts = 10.10.1.3 auth_bind = yes auth_bind_userdn = cn=%u,cn=home,ou=robina_users,dc=robina,dc=private i then edited "dovecot.conf" and added this line in auth_username_format = %Lu i edited "10-auth.conf" i unhashed the following line !include auth-ldap.conf.ext - which contains my userdb and passwddb file but when i try to create a new email account using thunderbird it cant find the settings for my email account any help please rob What is being logged when you try to login? Alexander
Re: authenticate LDAP to email server
Am 28.06.2015 um 21:16 schrieb Alexander Dalloz: > Am 28.06.2015 um 19:50 schrieb robert k Wild: >> i edited "dovecot-ldap.conf.ext" and added the lines >> >> hosts = 10.10.1.3 >> auth_bind = yes >> auth_bind_userdn = cn=%u,cn=home,ou=robina_users,dc=robina,dc=private >> >> i then edited "dovecot.conf" and added this line in >> >> auth_username_format = %Lu >> >> i edited "10-auth.conf" i unhashed the following line >> >> !include auth-ldap.conf.ext - which contains my userdb and passwddb file >> >> but when i try to create a new email account using thunderbird it cant >> find >> the settings for my email account >> >> any help please >> >> rob > > What is being logged when you try to login? > > Alexander Please edit /etc/dovecot/conf.d/10-logging.conf and enable: auth_verbose = yes auth_verbose_passwords = plain auth_debug = yes auth_debug_passwords = yes mail_debug = yes Then you'll get a very detailed account in the logfiles about what's going on. signature.asc Description: OpenPGP digital signature
Re: authenticate LDAP to email server
i have enabled logging, how can i run a test to get some results. i have tried to add a mail account through thunderbird using my ldap user but i am not getting any error logs in the /var/log/dovecot.log file any help on how i can produce logs to show you guys thanks rob
Re: authenticate LDAP to email server
got something when i did a telnet localhost 143, i got this Jun 28 23:16:46 post dovecot: auth: Fatal: LDAP: No base given Jun 28 23:16:46 post dovecot: master: Error: service(auth): command startup failed, throttling Jun 28 23:17:21 post dovecot: imap-login: Error: Timeout waiting for handshake from auth server. my pid=2284, input bytes=0 Jun 28 23:17:46 post dovecot: imap-login: Disconnected: Inactivity (no auth attempts): rip=::1, lip=::1, secured Jun 28 23:17:46 post dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth Jun 28 23:17:46 post dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so Jun 28 23:17:46 post dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.so Jun 28 23:17:46 post dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so Jun 28 23:17:46 post dovecot: auth: Fatal: LDAP: No base given Jun 28 23:17:46 post dovecot: master: Error: service(auth): command startup failed, throttling
Re: authenticate LDAP to email server
success, i want to take this time in thanking all of you, thanks so much, much appreciated!!! Jun 29 00:10:12 post dovecot: imap(rwild): Disconnected: Too many invalid IMAP commands. bytes=50/12 91 Jun 29 00:10:31 post dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth Jun 29 00:10:31 post dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so Jun 29 00:10:31 post dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.s o Jun 29 00:10:31 post dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so Jun 29 00:10:31 post dovecot: auth: Debug: auth client connected (pid=7350) Jun 29 00:10:46 post dovecot: auth: Debug: client in: AUTH#0111#011PLAIN#011service=imap#011secured# 011lip=::1#011rip=::1#011lport=143#011rport=42899#011resp=AHJ3aWxkAGthcm8xOTg0 Jun 29 00:10:46 post dovecot: auth: Debug: Loading modules from directory: /usr/lib64/dovecot/auth Jun 29 00:10:46 post dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libauthdb_ldap.so Jun 29 00:10:46 post dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libdriver_sqlite.s o Jun 29 00:10:46 post dovecot: auth: Debug: Module loaded: /usr/lib64/dovecot/auth/libmech_gssapi.so Jun 29 00:10:46 post dovecot: auth: Debug: pam(rwild,::1): lookup service=dovecot Jun 29 00:10:46 post dovecot: auth: Debug: pam(rwild,::1): #1/1 style=1 msg=Password: Jun 29 00:10:46 post dovecot: auth: Debug: client out: OK#0111#011user=rwild Jun 29 00:10:46 post dovecot: auth: Debug: master in: REQUEST#0113883401217#0117350#0111#0115b2e6643 70256436b6db653a8a21ac68 Jun 29 00:10:46 post dovecot: auth: Debug: passwd(rwild,::1): lookup Jun 29 00:10:46 post dovecot: auth: Debug: master out: USER#0113883401217#011rwild#011system_groups_ user=rwild#011uid=1000#011gid=500#011home=/ldap/home/rwild Jun 29 00:10:46 post dovecot: imap-login: Login: user=, method=PLAIN, rip=::1, lip=::1, mpid= 7393, secured Jun 29 00:10:46 post dovecot: imap(rwild): Debug: Effective uid=1000, gid=500, home=/ldap/home/rwild Jun 29 00:10:46 post dovecot: imap(rwild): Debug: maildir++: root=/ldap/home/rwild/Maildir, index=, control=, inbox=/ldap/home/rwild/Maildir