##// END OF EJS Templates
Firstname, lastname and email LDAP attributes are now required if "on-the-fly register" is checked....
Jean-Philippe Lang -
r628:7e755a53b853
parent child
Show More
@@ -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