summaryrefslogtreecommitdiffstats
path: root/app/models
diff options
context:
space:
mode:
authorJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-02 22:07:56 +0000
committerJean-Philippe Lang <jp_lang@yahoo.fr>2007-12-02 22:07:56 +0000
commit7d8af70a6362517cab9aa2dc2054fa8dd8581ad8 (patch)
tree2e548d81ebeb8c3e9964b8d6b87b37ec78a0ea0e /app/models
parent8c65cc47122b802150bf3591cb4eba4f8c4fb4b4 (diff)
downloadredmine-7d8af70a6362517cab9aa2dc2054fa8dd8581ad8.tar.gz
redmine-7d8af70a6362517cab9aa2dc2054fa8dd8581ad8.zip
Changed the maximum length of LDAP account to 255 characters.
Added length validations on AuthSource model. git-svn-id: http://redmine.rubyforge.org/svn/trunk@948 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'app/models')
-rw-r--r--app/models/auth_source.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/app/models/auth_source.rb b/app/models/auth_source.rb
index 47eec106d..2f651ade5 100644
--- a/app/models/auth_source.rb
+++ b/app/models/auth_source.rb
@@ -20,6 +20,9 @@ class AuthSource < ActiveRecord::Base
validates_presence_of :name
validates_uniqueness_of :name
+ validates_length_of :name, :host, :account_password, :maximum => 60
+ validates_length_of :account, :base_dn, :maximum => 255
+ validates_length_of :attr_login, :attr_firstname, :attr_lastname, :attr_mail, :maximum => 30
def authenticate(login, password)
end