Re: Authentication failure with OpenLDAP
Hi all,
Thank you all for the help. The was with the ldap user attributes. I corrected it. Now I am having an error with dovecot. User can log into ldap but, system doesn't allow user to create user's directory in Maildir. Error is below,
- Error: User initialization failed: Namespace '': mkdir(/home/users/"user"/Desktop/Maildir) failed: Permission denied (euid=1000(myuser) egid=5000(<unknown>) missing +w perm: /home, we're not in group 100(users), dir owned by 0:100 mode=0775)* How should I give the permission to overcome this error. This is a dovecot error. LDAP authentication is successful. And also, I don't know the default user whom is creating mail directories for mail users. I think the problem will be solved if I grant user the permission. But I don't know how to grant.
Best regards, Anushka Bandara Research Engineer, Lanka Software Foundation +94715846018
On Tue, Jul 10, 2018 at 2:54 PM, Aki Tuomi aki.tuomi@dovecot.fi wrote:
Turn on auth_verbose=yes and auth_debug=yes and post logs.
Aki Tuomi Dovecot oy
-------- Original message -------- From: Anushka Bandara anushkab@opensource.lk Date: 10/07/2018 08:53 (GMT+02:00) To: dovecot@dovecot.org Subject: Authentication failure with OpenLDAP
Hi all,
*Dovecot version: 2.2.22 (fe789d2)*
*Ubuntu version: 16.04* *OpenLDAP version: openldap-2.4.42+dfsg*
Configurations
*# 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf# Pigeonhole version 0.4.13 (7b14904)# OS: Linux 4.10.0-28-generic x86_64 Ubuntu 16.04.3 LTS disable_plaintext_auth = nolisten = *log_path = /var/log/dovecot.logmail_location = maildir:~/Maildirnamespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = }passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap}protocols = pop3 imapservice auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 }}ssl = nouserdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap}* I am having "*Authentication failed" *problem with dovecot-ldap. Before it, I had binding error and I fixed it. Now I am having authentication problem when I am trying to log dovecot (usign telnet localhost 110) using a user which is created in ldap server. I can provide any configuration file and I did this configurations according to this " https://help.ubuntu.com/community/DovecotLDAP". Now I am having an authentication error.
Thank you
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 10 Jul 2018, Anushka Bandara wrote:
- Error: User initialization failed: Namespace '': mkdir(/home/users/"user"/Desktop/Maildir) failed: Permission denied (euid=1000(myuser) egid=5000(<unknown>) missing +w perm: /home, we're not in group 100(users), dir owned by 0:100 mode=0775)*
Well, what is >>"user"<<, >>myuser<< and "<unknown>". Which information did you modified? Where is the correct data? Which permissions does /home/users/"user"/Desktop usually have? Is the uid/gid of /home/users/"user"/Desktop correspond to euid=1000 and egid=5000 ?
How should I give the permission to overcome this error. This is a dovecot error. LDAP authentication is successful. And also, I don't know the default user whom is creating mail directories for mail users. I think the problem will be solved if I grant user the permission. But I don't know how to grant.
Maybe, maybe not.
On Tue, Jul 10, 2018 at 2:54 PM, Aki Tuomi aki.tuomi@dovecot.fi wrote:
Turn on auth_verbose=yes and auth_debug=yes and post logs.
Aki Tuomi Dovecot oy
-------- Original message -------- From: Anushka Bandara anushkab@opensource.lk Date: 10/07/2018 08:53 (GMT+02:00) To: dovecot@dovecot.org Subject: Authentication failure with OpenLDAP
Hi all,
*Dovecot version: 2.2.22 (fe789d2)*
*Ubuntu version: 16.04* *OpenLDAP version: openldap-2.4.42+dfsg*
Configurations
*# 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf# Pigeonhole version 0.4.13 (7b14904)# OS: Linux 4.10.0-28-generic x86_64 Ubuntu 16.04.3 LTS disable_plaintext_auth = nolisten = *log_path = /var/log/dovecot.logmail_location = maildir:~/Maildirnamespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = }passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap}protocols = pop3 imapservice auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 }}ssl = nouserdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap}* I am having "*Authentication failed" *problem with dovecot-ldap. Before it, I had binding error and I fixed it. Now I am having authentication problem when I am trying to log dovecot (usign telnet localhost 110) using a user which is created in ldap server. I can provide any configuration file and I did this configurations according to this " https://help.ubuntu.com/community/DovecotLDAP". Now I am having an authentication error.
Thank you
Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBW0XKBsQnQQNheMxiAQIa/wf+NaN70/blWGeyOWyqiEwLap/OY1V69QyU RzKmz6ui+xCo/ULn5JUdH60t5Ye+sUPQg5TfVCSANR1Tl7in8rv0ZFmMglUquNUW gVXR9McSePdZYp/1ZO2Z8Rkz4YM0Ou9jDzolruWI1Qlcoz/QJNFheWP4LzlxFbzb su2uTUJwUAD8yj0yU2UNuOdoeoexn/YI8tlAzJtaIIKf2Zr1Hq7+EdsDKLC8U2xL EA6/lGknCM+K2fAnPdU14T2jjSeCyKU5ciUwQ3RlO6Vcm8U127+CTk4WbSdyNdgB 2f56zT3yXrH4lYAMtRsHTDjRWRRMg0y5G9OfsFlislIyjlaHv4N8Dg== =v6my -----END PGP SIGNATURE-----
Thank you all. I found the problem. The problem was a permission error of Maildir. I grant permission to write that folder. Problem solved. :)
Best regards, Anushka Bandara Research Engineer, Lanka Software Foundation +94715846018
On Wed, Jul 11, 2018 at 2:42 PM, Steffen Kaiser skdovecot@inf.h-brs.de wrote:
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
On Tue, 10 Jul 2018, Anushka Bandara wrote:
- Error: User initialization failed: Namespace '':
mkdir(/home/users/"user"/Desktop/Maildir) failed: Permission denied (euid=1000(myuser) egid=5000(<unknown>) missing +w perm: /home, we're not in group 100(users), dir owned by 0:100 mode=0775)*
Well, what is >>"user"<<, >>myuser<< and "<unknown>". Which information did you modified? Where is the correct data? Which permissions does /home/users/"user"/Desktop usually have? Is the uid/gid of /home/users/"user"/Desktop correspond to euid=1000 and egid=5000 ?
How should I give the permission to overcome this error. This is a dovecot
error. LDAP authentication is successful. And also, I don't know the default user whom is creating mail directories for mail users. I think the problem will be solved if I grant user the permission. But I don't know how to grant.
Maybe, maybe not.
On Tue, Jul 10, 2018 at 2:54 PM, Aki Tuomi aki.tuomi@dovecot.fi wrote:
Turn on auth_verbose=yes and auth_debug=yes and post logs.
Aki Tuomi Dovecot oy
-------- Original message -------- From: Anushka Bandara anushkab@opensource.lk Date: 10/07/2018 08:53 (GMT+02:00) To: dovecot@dovecot.org Subject: Authentication failure with OpenLDAP
Hi all,
*Dovecot version: 2.2.22 (fe789d2)*
*Ubuntu version: 16.04* *OpenLDAP version: openldap-2.4.42+dfsg*
Configurations
*# 2.2.22 (fe789d2): /etc/dovecot/dovecot.conf# Pigeonhole version 0.4.13 (7b14904)# OS: Linux 4.10.0-28-generic x86_64 Ubuntu 16.04.3 LTS disable_plaintext_auth = nolisten = *log_path = /var/log/dovecot.logmail_location = maildir:~/Maildirnamespace inbox { inbox = yes location = mailbox Drafts { special_use = \Drafts } mailbox Junk { special_use = \Junk } mailbox Sent { special_use = \Sent } mailbox "Sent Messages" { special_use = \Sent } mailbox Trash { special_use = \Trash } prefix = }passdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap}protocols = pop3 imapservice auth { unix_listener /var/spool/postfix/private/auth { mode = 0666 }}ssl = nouserdb { args = /etc/dovecot/dovecot-ldap.conf.ext driver = ldap}* I am having "*Authentication failed" *problem with dovecot-ldap. Before it, I had binding error and I fixed it. Now I am having authentication problem when I am trying to log dovecot (usign telnet localhost 110) using a user which is created in ldap server. I can provide any configuration file and I did this configurations according to this " https://help.ubuntu.com/community/DovecotLDAP". Now I am having an authentication error.
Thank you
- -- Steffen Kaiser -----BEGIN PGP SIGNATURE----- Version: GnuPG v1
iQEVAwUBW0XKBsQnQQNheMxiAQIa/wf+NaN70/blWGeyOWyqiEwLap/OY1V69QyU RzKmz6ui+xCo/ULn5JUdH60t5Ye+sUPQg5TfVCSANR1Tl7in8rv0ZFmMglUquNUW gVXR9McSePdZYp/1ZO2Z8Rkz4YM0Ou9jDzolruWI1Qlcoz/QJNFheWP4LzlxFbzb su2uTUJwUAD8yj0yU2UNuOdoeoexn/YI8tlAzJtaIIKf2Zr1Hq7+EdsDKLC8U2xL EA6/lGknCM+K2fAnPdU14T2jjSeCyKU5ciUwQ3RlO6Vcm8U127+CTk4WbSdyNdgB 2f56zT3yXrH4lYAMtRsHTDjRWRRMg0y5G9OfsFlislIyjlaHv4N8Dg== =v6my -----END PGP SIGNATURE-----
participants (2)
-
Anushka Bandara
-
Steffen Kaiser