[Dovecot] Authentication without password
Hi all,
for one of my developpements, I need to be able to connect an IMAP
server
with a login but without password.
(I use dovecot 1.0.beta3)
For the userdb, I use "userdb static" :
userdb static { args = uid=114 gid=114 home=/mydev/mail/%u }
But I don't know how to allow IMAP connection by my application
without password.
I won't connect to a database, having a user/password file or
something like this ...
I think to use "passdb checkpassword" to call a fake authentication
script ....
Anyone have a better idea ?
Thanks,
Cyril Feraudet
On Mon, 2006-03-13 at 10:37 +0100, Feraudet Cyril wrote:
for one of my developpements, I need to be able to connect an IMAP
server with a login but without password.
Anyone have a better idea ?
Is the server remote? If not, just get a preauth session by calling dovecot --exec-mail imap (or similar)
johannes
Hi Johannes,
The server remote.
Where is documented the preauth session system ?
Thanks,
Cyril Feraudet
Le 13 mars 06 à 10:43, Johannes Berg a écrit :
On Mon, 2006-03-13 at 10:37 +0100, Feraudet Cyril wrote:
for one of my developpements, I need to be able to connect an IMAP server with a login but without password.
Anyone have a better idea ?
Is the server remote? If not, just get a preauth session by calling dovecot --exec-mail imap (or similar)
johannes
Feraudet Cyril wrote:
Hi Johannes,
The server remote.
You can always use something like writing a simple wraper that will launch a ssh connection to the server, run dovecot and make its stdin/stdout available on your machine on some port.
Where is documented the preauth session system ?
RFC 3501 :)
Cheers, -jkt
-- cd /local/pub && more beer > /dev/mouth
I've finaly find a dirty work around, but not dangerous in my case :
I've an anonymous login with the parent folder of mailboxes as home
directory ...
Cyril Feraudet
Le 13 mars 06 à 16:03, Jan Kundrát a écrit :
Feraudet Cyril wrote:
Hi Johannes,
The server remote.
You can always use something like writing a simple wraper that will launch a ssh connection to the server, run dovecot and make its stdin/stdout available on your machine on some port.
Where is documented the preauth session system ?
RFC 3501 :)
Cheers, -jkt
-- cd /local/pub && more beer > /dev/mouth
On Mon, 2006-03-13 at 10:37 +0100, Feraudet Cyril wrote:
Hi all,
for one of my developpements, I need to be able to connect an IMAP
server with a login but without password.
If passdb has empty password, you can log in with any password. This can be done with eg.:
passwd-file: leave the password field empty sql: select NULL as password, ..
participants (5)
-
Cyril Feraudet
-
Feraudet Cyril
-
Jan Kundrát
-
Johannes Berg
-
Timo Sirainen