imap authentication backend ?

General development questions

imap authentication backend ?

Postby mark.nellemann » Mon Jun 07, 2010 1:52 pm

Hi,

Would it be possible to check username/password against default imap server, if OK, then allow user to login, or create user if he doesn't exist ?

I've just found the great piece of software and I'm very exited :)


/Mark
mark.nellemann
 
Posts: 7
Joined: Mon Jun 07, 2010 1:12 pm
Location: Denmark

Re: imap authentication backend ?

Postby nelius » Wed Jun 09, 2010 11:55 am

Hi Mark,

it's not yet supported, sorry

But if I see it right, all of the hard basework to support IMAP auth is already done, so with a little PHP coding this should be working

cu
Cornelius
Cornelius Weiss
Tine 2.0 Lead Developer

Visit http://www.tine20.com for commercial support / consulting / development.
Visit http://www.officespot20.com for Tine 2.0 hosting.
User avatar
nelius
Tine 2.0 Core Developer
 
Posts: 1150
Joined: Tue Nov 06, 2007 7:25 pm

Re: imap authentication backend ?

Postby lkneschke » Wed Jun 09, 2010 4:37 pm

I started working on the IMAP authentication class last week. Maybe in 2 weeks we will a have a working IMAP authentication class.
Lars Kneschke
Head of Tine 2.0

Visit tine20.com for commercial support / consulting / development.
Visit tine20.net for Tine 2.0 hosting.
User avatar
lkneschke
Tine 2.0 Core Developer
 
Posts: 979
Joined: Tue Nov 06, 2007 7:31 pm
Location: Hamburg, Germany

Re: imap authentication backend ?

Postby mark.nellemann » Wed Jun 09, 2010 7:54 pm

Hi all,

Thank you for your replies. This sound really good.
Looking forward to test it for you :)

Mark
mark.nellemann
 
Posts: 7
Joined: Mon Jun 07, 2010 1:12 pm
Location: Denmark

Re: imap authentication backend ?

Postby mark.nellemann » Thu Sep 23, 2010 12:40 pm

Hi,

Any news on this? Would like to test... :)


Mark
mark.nellemann
 
Posts: 7
Joined: Mon Jun 07, 2010 1:12 pm
Location: Denmark

Re: imap authentication backend ?

Postby mark.nellemann » Tue Nov 30, 2010 1:52 pm

Hi,

Any news on the IMAP authentication?
Would still like to help with testing.


Mark
mark.nellemann
 
Posts: 7
Joined: Mon Jun 07, 2010 1:12 pm
Location: Denmark

Re: imap authentication backend ?

Postby ph_il » Tue Nov 30, 2010 4:46 pm

it's finished :)
http://www.tine20.org/bugtracker/view.php?id=1470

if you like to test, just checkout the trunk from svn.
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.tine20.net (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3513
Joined: Fri Mar 07, 2008 11:41 am

Re: imap authentication backend ?

Postby mark.nellemann » Tue Nov 30, 2010 6:45 pm

Thanks :)

When I try to login, I see the IMAP server (courier) auth. working fine, but I get 'Username or password is wrong' from Tine20 login.

My maillog shows
Nov 30 17:43:29 druss imapd: IMAP connect from @ [127.0.0.1]INFO: LOGIN, user=my@email, ip=[127.0.0.1], protocol=IMAP
Nov 30 17:43:31 druss imapd: 1291135411.272631 LOGOUT, user=my@email, ip=[127.0.0.1], headers=0, body=0, rcvd=13, sent=86, maildir=/var/qmail/mailnames/email/my/Maildir

This is checkout from trunk today.

What could be wrong?


Mark
mark.nellemann
 
Posts: 7
Joined: Mon Jun 07, 2010 1:12 pm
Location: Denmark

Re: imap authentication backend ?

Postby mark.nellemann » Tue Nov 30, 2010 7:22 pm

Enabled the logging, and got the following. I guess it means that the user it not created in account storage. Any way to autocreate account upon successfull imap authentication?

4326f -- none -- - 2010-11-30T17:18:19+00:00 DEBUG (7): Tinebase_Auth::setBackend::249 authentication backend: Imap
4326f -- none -- - 2010-11-30T17:18:19+00:00 DEBUG (7): Tinebase_Auth::authenticate::188 Trying to authenticate my@email
4326f -- none -- - 2010-11-30T17:18:19+00:00 INFO (6): Tinebase_Auth::authenticate::196 Authentication of my@email succeeded
4326f -- none -- - 2010-11-30T17:18:19+00:00 DEBUG (7): Tinebase_User::getInstance::124 accounts backend: Sql
4326f -- none -- - 2010-11-30T17:18:19+00:00 DEBUG (7): Tinebase_Group::getInstance::58 groups backend: Sql
4326f -- none -- - 2010-11-30T17:18:19+00:00 CRIT (2): Tinebase_Controller::login::92Account my@email not found in account storage.
4326f -- none -- - 2010-11-30T17:18:19+00:00 CRIT (2): Tinebase_User_Sql::setLastLoginFailure::383 Invalid password provided for: my@email
4326f -- none -- - 2010-11-30T17:18:21+00:00 DEBUG (7): Tinebase_TransactionManager::startTransaction::84 startTransaction request
4326f -- none -- - 2010-11-30T17:18:21+00:00 DEBUG (7): Tinebase_TransactionManager::startTransaction::86 new transactionable. Starting transaction on this resource
4326f -- none -- - 2010-11-30T17:18:21+00:00 DEBUG (7): Tinebase_TransactionManager::startTransaction::99 queued transaction with id 8402e8af8145c8f67bb2b0c385c764506a49f499
4326f -- none -- - 2010-11-30T17:18:21+00:00 DEBUG (7): Tinebase_TransactionManager::commitTransaction::112 commitTransaction request for 8402e8af8145c8f67bb2b0c385c764506a49f499
4326f -- none -- - 2010-11-30T17:18:21+00:00 DEBUG (7): Tinebase_TransactionManager::commitTransaction::120 no more open transactions in queue commiting all transactionables
4326f -- none -- - 2010-11-30T17:18:21+00:00 INFO (6): index.php (68) TIME: 2.55405402184 seconds 14 MBytes
mark.nellemann
 
Posts: 7
Joined: Mon Jun 07, 2010 1:12 pm
Location: Denmark

Re: imap authentication backend ?

Postby ph_il » Wed Dec 01, 2010 9:47 am

Any way to autocreate account upon successfull imap authentication?


not yet. you need to create the users in tine at the moment.

you can put a feature request in the bugtracker if you like.
Philipp Schüle
Tine 2.0 Core Developer

Visit http://www.tine20.com (commercial support, consulting and development)
Visit http://www.tine20.net (Tine 2.0 hosting)
User avatar
ph_il
Tine 2.0 Core Developer
 
Posts: 3513
Joined: Fri Mar 07, 2008 11:41 am

Next

Return to General

Who is online

Users browsing this forum: No registered users and 6 guests

Startseite
NewsDemoDownloadForumWikiBlog
Support
Support at first hand!
If the forum does not help anymore ... Professional support is available directly from our Tine2.0 core Developers.

more »