Description

"LDAP mode is not official supported by OBS!". See: config/options.yml.example#L100-L102

However, there is an RSpec file which tests LDAP mode in OBS. These tests use the ruby-ldap rubygem, mocking the results returned by a LDAP server.

The ruby-ldap rubygem seems no longer maintaned, and also prevents from updating to a more recent Ruby version. A good alternative is to replace it with the net-ldap rubygem.

Before replacing the ruby-ldap rubygem, we should modify the tests so the don't mock the responses of a LDAP server. Instead, we should modify the tests and run them against a real LDAP server.

Goals

Goals of this project:

  • Modify the RSpec tests and run them against a real LDAP server
  • Replace the net-ldap rubygem with the ruby-ldap rubygem

Achieving the above mentioned goals will:

  • Permit upgrading OBS from Ruby 3.1 to Ruby 3.2
  • Make a step towards officially supporting LDAP in OBS.

Resources

Looking for hackers with the skills:

obs ldap rspec ruby rubyonrails

This project is part of:

Hack Week 24

Activity

  • 6 months ago: enavarro_suse started this project.
  • 6 months ago: enavarro_suse added keyword "obs" to this project.
  • 6 months ago: enavarro_suse added keyword "ldap" to this project.
  • 6 months ago: enavarro_suse added keyword "rspec" to this project.
  • 6 months ago: enavarro_suse added keyword "ruby" to this project.
  • 6 months ago: enavarro_suse added keyword "rubyonrails" to this project.
  • 6 months ago: enavarro_suse originated this project.

  • Comments

    Be the first to comment!

    Similar Projects

    This project is one of its kind!