Skip to content

Instantly share code, notes, and snippets.

@ohadlevy
Created November 20, 2012 13:42
Show Gist options
  • Save ohadlevy/4117999 to your computer and use it in GitHub Desktop.
Save ohadlevy/4117999 to your computer and use it in GitHub Desktop.
diff --git a/app/models/auth_source_ldap.rb b/app/models/auth_source_ldap.rb
index 561628e..d31f0da 100644
--- a/app/models/auth_source_ldap.rb
+++ b/app/models/auth_source_ldap.rb
@@ -103,7 +103,7 @@ class AuthSourceLdap < AuthSource
end
def required_ldap_attributes
- return [] unless onthefly_register?
+ return {} unless onthefly_register?
{ :firstname => attr_firstname,
:lastname => attr_lastname,
:mail => attr_mail,
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment