krishnamuttevi opened a new pull request, #1376: URL: https://github.com/apache/ranger/pull/1376
UserSync LDAP and delta-sync behavior (including server-type-specific filters) is hard to validate without a real directory. Unit tests mock LDAP but do not cover end-to-end sync into Ranger Admin. ## Solution Dev-support Add .yml with local-ldap (and optional phpLDAPadmin) on the rangernw network. Add .ldif with a minimal DIT (ldapuser1, group engineering) suited to inetOrgPerson / groupOfNames and group search. Add .sh to seed LDAP and, when requested, point UserSync at local-ldap, optionally enable Admin LDAP auth, and restart ranger-usersync / ranger. Document the flow: bring up Ranger core plus LDAP compose file, then run the connect script (LDAP remains opt-in so default dev workflows stay on Unix sync). Functional tests (planned / in progress) Extend functional-tests/run-tests.sh with optional container ldap and suite ldapusersync. Add functional-tests/ldapusersync/ for assertions against Admin REST and UserSync logs (synced user/group, LDAP source, delta filter lines for ldap server type). Gate LDAP suites on env (e.g. ENABLE_LDAP_SYNC=true / SELECTED_CONTAINERS=ldap) so CI and local runs without LDAP are unchanged. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
