Re: [Dovecot] Integrating with Drupal SQL db SOLVED

2013-03-19 Thread Tobias
Hi again I have now solved this with a workaround. In short, it involves a Drupal 7 module called HTPasswdSync that intercepts password creation and changes in Drupal, and writes the password in SHA-1 hash format to a file (/etc/apache2/dovecot). I then point Dovecot to use this file as userd

Re: [Dovecot] Integrating with Drupal SQL db

2013-03-12 Thread info
On Tue, 12 Mar 2013 09:41:42 -0500, "l...@airstreamcomm.net" wrote: > On 3/11/13 10:54 PM, i...@stos.se wrote: >> Hi again, >> >> this is what I've found regarding how Drupal 7 hashes. >> >> $hash = md5($salt . $password, TRUE); >> do { >> $hash = md5($hash . $password, TRUE); >> } while (--$

Re: [Dovecot] Integrating with Drupal SQL db

2013-03-12 Thread l...@airstreamcomm.net
On 3/11/13 10:54 PM, i...@stos.se wrote: Hi again, this is what I've found regarding how Drupal 7 hashes. $hash = md5($salt . $password, TRUE); do { $hash = md5($hash . $password, TRUE); } while (--$count); The whole final hash value is encoded into 16 base64 characters and prepended by

Re: [Dovecot] Integrating with Drupal SQL db

2013-03-11 Thread info
Hi again, this is what I've found regarding how Drupal 7 hashes. $hash = md5($salt . $password, TRUE); do { $hash = md5($hash . $password, TRUE); } while (--$count); The whole final hash value is encoded into 16 base64 characters and prepended by an identifying string, the standard phpass M

Re: [Dovecot] Integrating with Drupal SQL db

2013-03-11 Thread info
Hi! I dont know if thats related. The specific error message in the log is that the hash is not a valid one. Regards Tobias On Mon, 11 Mar 2013 20:38:39 +0100, Andreas Meyer wrote: > Hello! > > I took the thread back to the list. > > Tobias RÃ¥denholt wrote: > >> I think it is ssha512 hashi

Re: [Dovecot] Integrating with Drupal SQL db

2013-03-11 Thread info
Do you have any clue on how to rewrite Dovecot to support Drupal 7 hashes? I have a feeling this is going to become over my head. Regards Tobias On Mon, 11 Mar 2013 20:40:16 -0400, Patrick Domack wrote: > The issue is, drupal uses a custom password format. > > You could rewrite the password has

Re: [Dovecot] Integrating with Drupal SQL db

2013-03-11 Thread Patrick Domack
The issue is, drupal uses a custom password format. You could rewrite the password hashs that drupal uses, into a normal crypt ssha256 version, that dovecot will understand, but it will probably going be much easier, to just program it into dovecot to support it. http://joncave.co.uk/2011

Re: [Dovecot] Integrating with Drupal SQL db

2013-03-11 Thread Andreas Meyer
Hello! I took the thread back to the list. Tobias RÃ¥denholt wrote: > I think it is ssha512 hashing. It's not stos.se that's affected. It's > swedishschoolinsydney.org.au Just found this: capabilities are 'IMAP4rev1 LITERAL+ SASL-IR LOGIN-REFERRALS ID ENABLE STARTTLS LOGINDISABLED' meaning

Re: [Dovecot] Integrating with Drupal SQL db

2013-03-11 Thread Andreas Meyer
wrote: > Hi > > I'm trying to get Dovecot to use Drupal users password for authenticating > IMAP users. But I just cant figure out how to make Dovecot understand the > password hash type that Drupal 7 is using. > > My example user with password Teacher1 looks like this in Drupal database: > $S$

Re: [Dovecot] Integrating with Drupal SQL db

2013-03-11 Thread l...@airstreamcomm.net
On 3/11/13 11:57 AM, i...@stos.se wrote: Hi I'm trying to get Dovecot to use Drupal users password for authenticating IMAP users. But I just cant figure out how to make Dovecot understand the password hash type that Drupal 7 is using. My example user with password Teacher1 looks like this in Dr