Q: convert to C#

  • Thread starter Thread starter Guest
  • Start date Start date
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.
 
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

Back
Top