17 Sep '13, 12am

Redmineの認証をIMAPで行うようにしたい。

## # Redmine IMAP Authentication Module # # All rights avoided, you are free to distribute or modify # the source code under the terms you reserve the author information. # # Author: # Dingding Technology, Inc. # Sunding Wei <swei(at)dingding.me> # # File: redmine/app/models/auth_source_imap.rb # require "net/imap" require 'timeout' # # HOWTO # # 1. Execute the SQL # INSERT INTO auth_sources (type, name) values ("AuthSourceIMAP", "IMAP") # 2. Change as you like # 3. Redmine: set the user authentication mode to IMAP # 4. Restart your web server # class AuthSourceIMAP < AuthSource def authenticate(login, password) # Define your IMAP server self.host = "imap.qq.com" self.port = 143 retVal = { :firstname => self.attr_firstname, :lastname => self.attr_lastname, :mail => self.attr_mail, :auth_source_id => self.id } # Email as account if you use Google Apps suffix = "@dingding.me...

Full article: http://www.redmine.org/boards/1/topics/9938

Tweets

@hdbresale ATTN! FLAT WANTED in Jurong / Bt Bat...

sg-house.com 17 Sep '13, 5am

ATTN! FLAT WANTED in Jurong / Bt Batok / Clementi / Choa Chu Kang / Bt Panjang within the HDB For Sale forums, part of the...

Everything You Wanted to Know About Fracking, B...

cleantechnica.com 15 Sep '13, 6pm

Consumer technology is going to exist indefinitely, perhaps for as long as the human species exists. At CleanTechnica, we ...