[thelist] Windows Authentication in ASP.Net

Martyn Haigh martyn.haigh at virgincosmetics.com
Thu Mar 20 09:55:42 CST 2003


Hi,

I'm using windows authentication in .net (c#) to make an intranet.  I'm
getting the users details off a database according to their login name
(DOMAIN\USER).  Within the DB I have their department and custom roles
(finance admin, IT content updater, etc), to enable me to let certain people
update bits of their intranet site themselves.  

Is there anyway I can add my custom roles to the default roles so that :

user.IsInRole("IT content updater");

will work if IT content updater is in their roles list on the DB.  I know
this can be done with forms authentication, but I'm not sure about how to
merge the two together.

Any help would be appreciated.

Thank you

Martyn Haigh

DISCLAIMER: The information in this message may be confidential.  It is
intended solely for the addressee.  Access to this message by anyone else is
unauthorised.  If you are not the intended recipient, any disclosure,
copying, distribution or any action taken or omitted to be taken in reliance
on it is prohibited and may be unlawful.   If you have received this
communication in error, please notify us immediately by responding to this
e-mail and then delete it. 
 An e-mail response to this address may be subject to interception or
monitoring for operational reasons or for lawful business practices.  If you
contact us by e-mail, we may store your name and address to facilitate
communications.
We do not accept legal responsibility for the contents of this message and
any statements contained in this message are those of the individual and not
The Virgin Cosmetics Company Limited.
Internet communications cannot be guaranteed to be secure or error-free as
information could be intercepted, lost, arrive late or contain viruses and
whilst every effort has been made to ensure that this e-mail and any
attachments are free of viruses, you should rely on your own virus checker
and procedures.  The sender therefore does not accept liability for any
errors or omissions in the contents of this message that arise as a result
of Internet transmission.


More information about the thelist mailing list