Hi All,
I have a use case in which we are trying to do authentication and authorization using LDAP. In the LDAP an username can be part of multiple groups.
mc_adgroup = {String[]} size = 2 (First LDAP groups)
[0] = {String} "cn=grp-consumer-company-edwb2c-stg,ou=groups,ou=security,o=company WorldWide,dc=company,dc=com"
[1] = {String} "cn=grp-consumer-unauthorized-grp,ou=groups,ou=security,o=company WorldWide,dc=company,dc=com"
_mc_groups = {String[]} size = 2 (Second LDAP group)
[0] = {String} "cn=grp-consumer-company-edwb2c-stg,ou=groups,ou=security,o=company WorldWide,dc=company,dc=com"
[1] = {String} "cn=grp-consumer-another-authorized-grp,ou=groups,ou=security,o=company WorldWide,dc=company,dc=com"
When I tried to compare both variable using compare variable ( pass any value match) since _mc_group[0] is matching the compare variable should give success; however it's getting failed.
Any thoughts from anyone?