Security and IsInRole

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

Hi

When developing intranet applications in C# I use the
User.IsInRole(ROLENAME) to check for users permissions
e.g. Admin , General User etc.

However I am now developing an application that is to sit on a Novell based
network, and was wondering if anyone had any ideas or links to articles on
how to check if a user is in a Novell role (or whatever they are called - I
have zero knowledge of Novell)

Thanks very much for your time.

Cheers

Ian
 
Ian,

What you want to do is create a custom implementation of IPrincipal.
Then, you can call the APIs in Novell to check to see if a user belongs to a
group, and return the appropriate value in the IsInRole method.

You would have to set the principal though for every thread through the
static CurrentPrincipal method on the Thread.

Hope this helps.
 

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