Q: convert to C#

G

Guest

Hello,
This is the way I can catching my group name from AD collection.

If UCase(pKey) = "MEMBEROF" And UCase(pCollection) Like
"CN=MYGROUP_*" Then
ADUserMYGROUP = Mid(pCollection, 11, 3)
Return ADUserMYGROUP
End If

It seems like is not recognizable by C#, how would you do it in C#?
Thanks,
Jim.
 
P

Patrick Olurotimi Ige

JIM.H,
Is your code doing forms authentication against Active Directory?
Cos i'm interested in doing something related by validating users
against ROLES in the Active directory using forms Authentication.
i.e if a USER logs on and the user doesn't belong to ROLES A in the
Active Directory redirect to anoter page or do something else..
Any ideas?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top