@@ -20,6 +20,7 require 'iconv' | |||||
20 |
|
20 | |||
21 | class AuthSourceLdap < AuthSource |
|
21 | class AuthSourceLdap < AuthSource | |
22 | validates_presence_of :host, :port, :attr_login |
|
22 | validates_presence_of :host, :port, :attr_login | |
|
23 | validates_presence_of :attr_firstname, :attr_lastname, :attr_mail, :if => Proc.new { |a| a.onthefly_register? } | |||
23 |
|
24 | |||
24 | def after_initialize |
|
25 | def after_initialize | |
25 | self.port = 389 if self.port == 0 |
|
26 | self.port = 389 if self.port == 0 |
General Comments 0
You need to be logged in to leave comments.
Login now