mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
7dcbb1ade4
plugins/modules/ldap_search: Add support for multipage searches (#6648)
* Add more integration tests for ldap_search
* Add new page_size option to ldap_search
* Add changelog fragment
* Apply suggestions from code review
Co-authored-by: Felix Fontein <felix@fontein.de>
* Simplify if statement to reduce negatives
* Apply suggestions from code review
Co-authored-by: Felix Fontein <felix@fontein.de>
---------
Co-authored-by: Felix Fontein <felix@fontein.de>
(cherry picked from commit 8801463575
)
Co-authored-by: Gnonthgol <gnonthgol+github@gmail.com>
40 lines
856 B
Text
40 lines
856 B
Text
dn: ou=users,dc=example,dc=com
|
|
objectClass: organizationalUnit
|
|
objectClass: top
|
|
ou: users
|
|
|
|
dn: uid=ldaptest,ou=users,dc=example,dc=com
|
|
uid: ldaptest
|
|
uidNumber: 1111
|
|
gidNUmber: 100
|
|
objectClass: top
|
|
objectClass: posixAccount
|
|
objectClass: shadowAccount
|
|
objectClass: person
|
|
objectClass: organizationalPerson
|
|
objectClass: inetOrgPerson
|
|
loginShell: /bin/sh
|
|
homeDirectory: /home/ldaptest
|
|
cn: LDAP Test
|
|
gecos: LDAP Test
|
|
displayName: LDAP Test
|
|
mail: ldap.test@example.com
|
|
sn: Test
|
|
|
|
dn: uid=second,ou=users,dc=example,dc=com
|
|
uid: second
|
|
uidNumber: 1112
|
|
gidNUmber: 102
|
|
objectClass: top
|
|
objectClass: posixAccount
|
|
objectClass: shadowAccount
|
|
objectClass: person
|
|
objectClass: organizationalPerson
|
|
objectClass: inetOrgPerson
|
|
loginShell: /bin/sh
|
|
homeDirectory: /home/second
|
|
cn: Second Test
|
|
gecos: Second Test
|
|
displayName: Second Test
|
|
mail: second.test@example.com
|
|
sn: Test
|