summaryrefslogtreecommitdiffstats
path: root/app/models/auth_source_ldap.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/auth_source_ldap.rb')
-rw-r--r--app/models/auth_source_ldap.rb3
1 files changed, 2 insertions, 1 deletions
diff --git a/app/models/auth_source_ldap.rb b/app/models/auth_source_ldap.rb
index b7ab0cf30..76b1c25f4 100644
--- a/app/models/auth_source_ldap.rb
+++ b/app/models/auth_source_ldap.rb
@@ -27,7 +27,8 @@ class AuthSourceLdap < AuthSource
before_validation :strip_ldap_attributes
- def after_initialize
+ def initialize(attributes=nil, *args)
+ super
self.port = 389 if self.port == 0
end