Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Fix path to dev server ldif

Oliver Günther096f57c9318c
diff --git a/modules/ldap_groups/lib/tasks/ldap_groups.rake b/modules/ldap_groups/lib/tasks/ldap_groups.rake
index cb7ca014031..f79df6eb0e7 100644
--- a/modules/ldap_groups/lib/tasks/ldap_groups.rake
+++ b/modules/ldap_groups/lib/tasks/ldap_groups.rake
@@ -38,7 +38,7 @@ namespace :ldap_groups do
desc 'Create a development LDAP server from the fixtures LDIF'
task :ldap_server do
require 'ladle'
- ldif = ENV['LDIF_FILE'] || File.expand_path('../../../spec/fixtures/users.ldif', __FILE__)
+ ldif = ENV['LDIF_FILE'] || Rails.root.join('spec/fixtures/ldap/users.ldif')
ldap_server = Ladle::Server.new(quiet: false, port: '12389', domain: 'dc=example,dc=com', ldif: ldif).start
puts <<~EOS