mirror of
https://github.com/ansible-collections/community.general.git
synced 2026-04-24 12:49:03 +00:00
* fix CI * Added ldap_search module for searching in LDAP servers * Fixes from pipeline * Fixed second script as well * fix DOCUMENTATION block * fix DOCUMENTATION block * fix DOCUMENTATION block * fix examples and remove changelog fragment * Added integration tests for ldap_search * fixes Co-authored-by: Sebastian Pfahl <sebastian.pfahl@dcso.de>
20 lines
621 B
YAML
20 lines
621 B
YAML
- debug:
|
|
msg: Running tests/basic.yml
|
|
|
|
####################################################################
|
|
## Search ##########################################################
|
|
####################################################################
|
|
- name: Test simple search for a user
|
|
ldap_search:
|
|
dn: "ou=users,dc=example,dc=com"
|
|
scope: "onelevel"
|
|
filter: "(uid=ldaptest)"
|
|
ignore_errors: yes
|
|
register: output
|
|
|
|
- name: assert that test LDAP user can be found
|
|
assert:
|
|
that:
|
|
- output is not failed
|
|
- output.results | length == 1
|
|
- output.results.0.displayName == "LDAP Test"
|