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

Move ldap groups info to the bottom

Oliver Günther9d585850ce49
diff --git a/modules/ldap_groups/lib/tasks/ldap_groups.rake b/modules/ldap_groups/lib/tasks/ldap_groups.rake
index 3ddd039cacd..d109e66f929 100644
--- a/modules/ldap_groups/lib/tasks/ldap_groups.rake
+++ b/modules/ldap_groups/lib/tasks/ldap_groups.rake
@@ -58,36 +58,6 @@ namespace :ldap_groups do
ldif = ENV.fetch('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:).start
- puts <<~INFO
- LDAP server ready at localhost:12389
- Users Base dn: ou=people,dc=example,dc=com
- Admin account: uid=admin,ou=system
- Admin password: secret
-
- --------------------------------------------------------
-
- Attributes
- Login: uid
- First name: givenName
- Last name: sn
- Email: mail
- Admin: isAdmin
- memberOf: (Hard-coded, not virtual)
-
- --------------------------------------------------------
-
- Users:
- uid=aa729,ou=people,dc=example,dc=com (Password: smada)
- uid=bb459,ou=people,dc=example,dc=com (Password: niwdlab)
- uid=cc414,ou=people,dc=example,dc=com (Password: retneprac)
-
- --------------------------------------------------------
-
- Groups:
- cn=foo,ou=groups,dc=example,dc=com (Members: aa729)
- cn=bar,ou=groups,dc=example,dc=com (Members: aa729, bb459, cc414)
- INFO
-
puts "Creating a connection called ladle"
source = LdapAuthSource.find_or_initialize_by(name: 'ladle local development')
@@ -118,6 +88,36 @@ namespace :ldap_groups do
LdapGroups::SynchronizationJob.perform_now
+ puts <<~INFO
+ LDAP server ready at localhost:12389
+ Users Base dn: ou=people,dc=example,dc=com
+ Admin account: uid=admin,ou=system
+ Admin password: secret
+
+ --------------------------------------------------------
+
+ Attributes
+ Login: uid
+ First name: givenName
+ Last name: sn
+ Email: mail
+ Admin: isAdmin
+ memberOf: (Hard-coded, not virtual)
+
+ --------------------------------------------------------
+
+ Users:
+ uid=aa729,ou=people,dc=example,dc=com (Password: smada)
+ uid=bb459,ou=people,dc=example,dc=com (Password: niwdlab)
+ uid=cc414,ou=people,dc=example,dc=com (Password: retneprac)
+
+ --------------------------------------------------------
+
+ Groups:
+ cn=foo,ou=groups,dc=example,dc=com (Members: aa729)
+ cn=bar,ou=groups,dc=example,dc=com (Members: aa729, bb459, cc414)
+ INFO
+
puts "Send CTRL+D to stop the server"
require 'irb'
binding.irb