Yeah - you have to be careful splitting on ',' - '\,' is an escaped comma in the DN. That's why I tend to use a regex.
You can split on ',ou=' which will give you the components before the OU. That should do it for you...
Peter
Yeah - you have to be careful splitting on ',' - '\,' is an escaped comma in the DN. That's why I tend to use a regex.
You can split on ',ou=' which will give you the components before the OU. That should do it for you...
Peter