GITLAB_OPTS not available in user model?
Created by: tobert
I'm using LDAP authentication on master and kept getting the following error message:
(ldap) Authentication failure! ldap_error: NoMethodError, undefined method `[]' for nil:NilClass
It turns out this was the actual culprit. Obviously my hack isn't ideal, but I'm up and running with this change:
diff --git a/app/models/user.rb b/app/models/user.rb index ccb1ddd..6190aa7 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -91,7 +91,7 @@ class User < ActiveRecord::Base :email => email, :password => password, :password_confirmation => password,
-
:projects_limit => GITLAB_OPTS["default_projects_limit"]
-
) end end:projects_limit => 500
Maybe you want ::GITLAB_OPTS?