Revision e26886b3
Added by Ohad Levy over 12 years ago
- ID e26886b35f63a5705159dc48ec9717a353f78c1f
app/models/auth_source_ldap.rb | ||
---|---|---|
require 'iconv'
|
||
|
||
class AuthSourceLdap < AuthSource
|
||
validates_presence_of :host, :port, :attr_login
|
||
validates_presence_of :host, :port
|
||
validates_presence_of :attr_login, :attr_firstname, :attr_lastname, :attr_mail, :if => Proc.new {|auth| auth.onthefly_register? }
|
||
validates_length_of :name, :host, :account_password, :maximum => 60, :allow_nil => true
|
||
validates_length_of :account, :base_dn, :maximum => 255, :allow_nil => true
|
||
validates_length_of :attr_login, :attr_firstname, :attr_lastname, :attr_mail, :maximum => 30, :allow_nil => true
|
Also available in: Unified diff
fixes #1150 - When ticking On-the-fly user creation submit button and fields are hidden