summaryrefslogtreecommitdiff
path: root/examples/ldap_search.yaml
blob: 11d3babe8cc5e2f55d905fb7a2d4d37846355680 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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"