Skip to content

Conversation

@lgetwan
Copy link
Contributor

@lgetwan lgetwan commented Sep 5, 2025

Pull request type

Please check the type of change your PR introduces:

  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no API changes)
  • Build related changes
  • Documentation content changes
  • Other (please describe):

What is the current behavior?

Since 2.4.0, the REST API has LDAP connections endpoints, but there was no LDAP module in the collection.

What is the new behavior?

Now there is an LDAP module and two lookup modules (LDAP connection & LDAP connections).

@lgetwan lgetwan marked this pull request as draft September 5, 2025 06:11
@lgetwan lgetwan marked this pull request as ready for review September 18, 2025 05:42
@robin-checkmk robin-checkmk self-assigned this Oct 16, 2025
@robin-checkmk robin-checkmk linked an issue Nov 3, 2025 that may be closed by this pull request
Copy link
Member

@robin-checkmk robin-checkmk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I never submitted my comments. 🤦
@lgetwan you could never see these comments. I think the first two are obsolete, but we should probably discuss the last one.

register: __checkmk_var_result_create
failed_when: __checkmk_var_result_create.changed | bool

- name: "{{ outer_item.version }} - {{ outer_item.edition | upper }} - Lookup an LDAP connection."
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I am uncertain, if we should mix the lookup module tests and the module tests.
I see, why we use the lookup here and it makes perfect sense. The issue I have, that with this layout, we cannot trigger tests for the lookup modules and the module separately. And that could trigger some weird cross-dependencies. It is not terrible, but something to consider for sure.

Comment on lines +153 to +156
# api_auth_type = self.get_option("api_auth_type") or "bearer"
# api_auth_cookie = self.get_option("api_auth_cookie")
automation_user = self.get_option("automation_user")
automation_secret = self.get_option("automation_secret")
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I 'fixed' the authentication options, so the tests do not fail anymore, but with the api_ variables I got other errors, so I am certainly missing something here.

Comment on lines +163 to +166
# api_auth_type=api_auth_type,
# api_auth_cookie=api_auth_cookie,
automation_user=automation_user,
automation_secret=automation_secret,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I 'fixed' the authentication options, so the tests do not fail anymore, but with the api_ variables I got other errors, so I am certainly missing something here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEED] Implement module for LDAP Connections

3 participants