@@ -20,7 +20,8 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 |
|
23 | validates_presence_of :attr_firstname, :attr_lastname, :attr_mail, :if => Proc.new { |a| a.onthefly_register? } | ||
|
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 | |
26 | end |
|
27 | end |
General Comments 0
You need to be logged in to leave comments.
Login now