hey,
I have a listing of active directory groups in an array by distinguished name, like so:
I want to convert it into a multi dimentional array with the objects as the arrays keys and in reverse order, so it gourps them like in the following format:
Yea, sorry that looks well confusing... i basically want to group them into an array by category starting at the end. So the first key of the array would be "myou", and that would contain an array of any other groups in that category etc.
Andy
I have a listing of active directory groups in an array by distinguished name, like so:
Code:
myar[0] "CN=my sub group, CN=my group, OU=myou" myar[1] "CN=another subgroup, CN=my group, OU=myou" myar[3] "CN=diff group, OU=myou" myar[4] "CN=foo group, OU=ou2" myar[5] "CN=wowgroup, CN=foo group, OU=ou2"
I want to convert it into a multi dimentional array with the objects as the arrays keys and in reverse order, so it gourps them like in the following format:
Code:
arr['myou']['mygroup']['my sub group'] ----------------------['another sub group'] -----------['diff group'] arr['ou2']-['foo group']['wowgroup']
Yea, sorry that looks well confusing... i basically want to group them into an array by category starting at the end. So the first key of the array would be "myou", and that would contain an array of any other groups in that category etc.
Andy
Comment