Re: authentication



Ah, I found a solution within 10 minutes of me posting this. It was written
for ADSI, but a slight mod and it works with WinNT. (I guess they operate
the same way. I am using it currently on XP Pro).

I have to use interop and call the advapi32.dll (DLLImport), which is what I
was trying to avoid. (I don't want it to be platform specific, i.e. at some
stage, I would like to try my app on MONO).

If anyone has a method that doesn't use interop (or that can work on other
platforms than just windows) it would be much appreciated.

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available
"David" <david.colliver.NEWS@xxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:uL8$EwOhHHA.4140@xxxxxxxxxxxxxxxxxxxxxxx
Hi all,

Using C# .NET 1.1

Forms Authentication.

I have my site set up to be anonymous access, almost all the way through.
I have a login page, that when someone logs in, the site now has extra
features. I don't need to protect the directories using web.config or
anything, just to have the features enabled based on authentication and
authorisation. This is working as expected.

My authentication is currently from my database. I want to have various
authentication options, for example, database, windows and ADSI. In
another part of my application, I have a "roles" system, where I can see
all users/groups from database, windows or ADSI. What I want to do, but
don't know where to look is to first, check the database to see if the
user exists and what their authentication option is. If the auth option is
windows, then I need to pass the user/password to windows. (same with
ADSI).

All I need back is to check if that user is valid/authenticated. My
authorisation is handled locally.

How do I pass the details to windows for authentication in my scenario?

Thanks.

--
Best regards,
Dave Colliver.
http://www.AshfieldFOCUS.com
~~
http://www.FOCUSPortals.com - Local franchises available



.



Relevant Pages

  • Re: Windows Authentification against a list of users
    ... > One thing you might do would be to validate against a group in the domain ... > as your list of allowed users instead of your database though. ... > using Forms authentication instead of Windows authentication and creating ... That would allow you to combine Windows ...
    (microsoft.public.dotnet.security)
  • Re: Sql Server Login
    ... firstly I was under the impression SQL authenticaiton will be better ... But now I know windows authentication is recommended. ... Now my application is ready and talking to this database in MSDE. ...
    (microsoft.public.sqlserver.msde)
  • Re: Authenticating domain users
    ... Is it a Web Application or a Windows ... network authentication based upon the model used. ... and now I want to access the database. ... > password be set to the the user's domain username and password? ...
    (microsoft.public.dotnet.languages.csharp)
  • Authorization question, w/ "Windows" authentication mode
    ... im familar w/ *forms* based authentication, ... all users use the windows network to login, ... bring up my webapp. ... which means a hit to the database to get the ...
    (microsoft.public.dotnet.framework.aspnet.security)
  • Re: Replacing IIS Loging Dialog with my own
    ... a SQL or MySQL database table or if necessary an Access database table ... these keywords [especially ADSI, if you want to authenticate against Windows ... I'm really not sure I see the advantage to discarding Basic authentication, ...
    (microsoft.public.inetserver.iis.security)