How can I view the groups a userid is a member of, using the LDAP protocol?

How can I view the groups a userid is a member of, using the LDAP protocol?
I'm doing this in C# with .NET framework 2.0

I'm forced to use the protocol.....


and not the nice components available...

silentthread2kSenior Software EngineerAsked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Do you read these articles about your problem?
Maybe this will help :

public ArrayList Groups(string userDn, bool recursive)
    ArrayList groupMemberships = new ArrayList();
    return AttributeValuesMultiString("memberOf", userDn,
        groupMemberships, recursive);

Open in new window

source :

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
silentthread2kSenior Software EngineerAuthor Commented:
How dare you talk to me like that!
Problems using Powershell and Active Directory?

Managing Active Directory does not always have to be complicated.  If you are spending more time trying instead of doing, then it's time to look at something else. For nearly 20 years, AD admins around the world have used one tool for day-to-day AD management: Hyena. Discover why


@silentthread2k What the problem???
Do you read these articles about your problem?

It was a joke.. However it is difficult to read emotion though forum.

I think it was the reference to
"His Problem"
There is not jokes my comment. There are some solutions about LDAP and C# in these articles.  

In thise article

using method AttributeValuesMultiString(), which you also recommended author in your comment.

Your Killing me.. Anyway, if the Author is interested in explaining this, I will let he/she do so, otherwise, I am not going to attempt to discuss it further as you clearly don't understand why he/she responded the way they did.
Shaun VermaakTechnical SpecialistCommented:
You can use System.Management and basically use VBScript in your .NET app seeing that you can not use

All the links posted above use System.DirectoryServices.AccountManagement, PrincipalContext etc unless I checked incorrectly
silentthread2kSenior Software EngineerAuthor Commented:
Resolved using different google searches and information provided in this post.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.