active directory - C# System.DirectoryServices.AccountManagement search for ou, by a custom attribute -


so have ad tree kind of

> root > -centers > --center1 > ---customattribute (a string containing unique id/code center) > ---center1 groups > ----center user group 1 > ----center user group 2 > --center2 

...

(see image more detail) want use system.directoryservices.accountmanagement search center user group 1(all alaska students)...

but because of work politics can't search name, have search center customattribute (centercode) matches string pass in.. (centernames in ad don't match centername in db, cant' fix ad or db match..)

then need traverse tree down groups ou, , correct group... if can list of groups seems trivial

but how search ou not using it's name?

also, how find child ous of ou??

i can't find ou principal, or ou searcher., (group principal closest), searching for/with?

any appreciated


Comments

Popular posts from this blog

python - How to insert QWidgets in the middle of a Layout? -

python - serve multiple gunicorn django instances under nginx ubuntu -

module - Prestashop displayPaymentReturn hook url -