diff options
| author | luisgulo <luisgulo@gmail.com> | 2025-10-24 18:01:10 +0200 |
|---|---|---|
| committer | luisgulo <luisgulo@gmail.com> | 2025-10-24 18:01:10 +0200 |
| commit | 533e79ba959143f0459431a486bfb85c56c72ddc (patch) | |
| tree | 91974de1bbbdc4c51c76ed591fc5c6e02a3342b6 /examples/ldap_search.yaml | |
| parent | 45019c81cfd0fc1d18dce18cdfd5f127c6d61073 (diff) | |
Releasing code version 1.8.0
Diffstat (limited to 'examples/ldap_search.yaml')
| -rw-r--r-- | examples/ldap_search.yaml | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/examples/ldap_search.yaml b/examples/ldap_search.yaml new file mode 100644 index 0000000..11d3bab --- /dev/null +++ b/examples/ldap_search.yaml @@ -0,0 +1,24 @@ +tasks: + - name: Buscar usuarios en OpenLDAP + module: ldap_openldap + args: + state: search + server: ldap://ldap.example.com + port: 389 + base_dn: "dc=example,dc=com" + filter: "(objectClass=person)" + attributes: "cn,mail,uid" + bind_dn: "cn=admin,dc=example,dc=com" + password: "secreta" + + - name: Buscar usuarios en Active Directory + module: ldap_ad + args: + state: search + server: ldap://ad.example.local + port: 389 + base_dn: "dc=example,dc=local" + filter: "(sAMAccountName=luisgulo)" + attributes: "cn,mail,sAMAccountName" + bind_dn: "CN=Administrador,CN=Users,DC=example,DC=local" + password: "secreta" |
