2017-05-19 00:59:11 UTC
current dn - cn=galaDOC09876543,ou=sales,o=ibm
new dn - cn=DOC09876543,ou=sales,o=ibm
the issue here is that on the LDAP there's a reference of this dn on the LDAP group on a multi valued attribute "member"
how can i get the index of the dn and change it?
i tried by looping as follow
var memberArray = work.member.getValuesVector()
var memberArray = work.member.getValues()
but on either of the two i get the comparison right
memberArray[i].toString().toUppedCase() == newDN.toUppedCase()
this comparison always return false, also, on the production environment there's almost 1 million on members on each group, so this solution is not the correct approach.
There's a way to get the index of this dn without loop through the list of values? i tried with indexOf but always get as return -1.