New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Added ldap_search module for searching in LDAP servers #126
Added ldap_search module for searching in LDAP servers #126
Conversation
@gundalow Please see the latest commit. All errors from the pipeline are already fixed now :-) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All new plugins should have tests. Please add unit and/or integration tests (even if the integration tests are unsupported
for now).
@eryx12o45 this PR contains more than one new module. Please submit only one new module per pull request. For a detailed explanation, please read the grouped modules documentation |
@gundalow @felixfontein shouldn't it be _info module? |
@Andersson007 good question. I've been thinking about that a bit as well. |
@felixfontein maybe |
|
@felixfontein practicaly it can imply modifications https://www.postgresql.org/docs/current/sql-update.html for example |
I would argue that anyone who is familiar with LDAP wouldn't assume this :) It would be really nice to have more opinions and ideas though... |
@felixfontein search or query sound equal to me in terms of proper module naming:) |
sorry, i didn't want to close the pr:) the idea LGTM:) |
I don't think |
@felixfontein ok, so ldap_search for me personally sounds good) |
Ok, so if nobody else has an opinion, let's keep |
@felixfontein @Andersson007 Thanks a lot four your support here. I've updated the code with your suggestions. Hopefully the way you've meant them ^^ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM, thank you guys
shipit
@eryx12o45 thanks a lot for reviving and updating this module, and especially for adding tests! :) |
@felixfontein @gundalow @Andersson007 Thanks a lot. Would it be possible to get a new release 0.1.2 of the collection, because otherwise unfortunately I'm not able to install it via ansible-galaxy :-/ |
@eryx12o45 it definitely won't be 0.1.2, since according to semantic versioning patch releases cannot have new features :) I'm not sure when a new release will happen; the discussion how release manangement etc. should go are still going on. |
@felixfontein I see, sorry didn't had that insight before, but this absolutely makes sense. |
@eryx12o45 no problem, the current versioning docs are not really there / somewhat hidden, and the whole discussion is also happening pretty hidden... there are a lot more people wondering on what's happening ;) |
@eryx12o45 ansible/ansible#69154 will allow to install collections from git repositories |
@felixfontein Great! Thanks a lot. |
SUMMARY
Add a module for executing ldap_search commands on an LDAP server to query for entries which can be filtered by attributes or filterstrings.
ISSUE TYPE
COMPONENT NAME
ldap_search
ADDITIONAL INFORMATION
The module returns a json-based string with elements that match the filter.
I've found an old version by Peter Sagerson, which was not Python3 compatible and was not working as intended. I've updated the module for Python3 and Ansible 2.10 compatibility.