Hello,
Could you please help me, Im stuck at this. I don't know why its not returning all users.
If I do this ldapsearch, it works and I can retrieve all users:
ldapsearch -x -D "uid=user,ou=People,dc=domain,dc=com" -w password -h Ldap.domain.com -b "ou=People,dc=domain,dc=com" -s sub "(objectClass=person)"
But in the playbook its throwing me FAILED! => {"changed": false, "msg": "No users found in LDAP"}
This is my playbook:
name: sync with LDAP
environment:
ORACLE_HOME: /u01/app/oracle/
LD_LIBRARY_PATH: /u01/app/oracle/lib:/lib:/usr/lib
Hello, Could you please help me, Im stuck at this. I don't know why its not returning all users.
If I do this ldapsearch, it works and I can retrieve all users: ldapsearch -x -D "uid=user,ou=People,dc=domain,dc=com" -w password -h Ldap.domain.com -b "ou=People,dc=domain,dc=com" -s sub "(objectClass=person)"
But in the playbook its throwing me FAILED! => {"changed": false, "msg": "No users found in LDAP"}
This is my playbook:
name: sync with LDAP environment: ORACLE_HOME: /u01/app/oracle/ LD_LIBRARY_PATH: /u01/app/oracle/lib:/lib:/usr/lib
oracle_ldapuser: service_name: orcl user: admin password: password ldap_connect: ldap://Ldap.domain.com:389 ldap_binddn: uid=user,ou=People,dc=domain,dc=com ldap_bindpassword: password ldap_user_basedn: OU=People,DC=domain,DC=com ldap_user_filter: (objectClass=person) ldap_username_attribute: uid user_profile: LDAP_USER user_grants:
Can it be something related to the uid=user,ou=People,dc=domain,dc=com authorization?
Thanks in advance!