StrataFrame Forum
Home      Members   Calendar   Who's On
Welcome Guest ( Login | Register )
      



Active Directory authentication remoteyExpand / Collapse
Author
Message
Posted 01/20/2007 8:37:51 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Yesterday @ 12:10:08 PM
Posts: 1,327, Visits: 3,471
I think this is more of just a generic .NET question, but as it pertains to security, I'm thinking this might be a better place for it.

I'd like to authenticate users using Active Directory (domain authentication), just to ease maintenance (a winforms app). However, almost none of the users will be logged onto the domain or a trusted domain where the Active Directory resides. Most will be logged into there machines, not connected to any domain (they are consultants, on the road, in hotels, etc.) They will use VPN initially to connect to network to access data. I can't use anything that would just pass there authentication certificate (or whatever it is called) for the current user from the OS, because they aren't authenticated on a domain (or it's the wrong domain). So, is there any way to authenticate against a specific domain via .NET?
Post #6001
Posted 01/21/2007 10:26:09 AM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 4:50:35 PM
Posts: 4,796, Visits: 4,766
Yes.  If you are going to do this, then you are going to have to program this manually.  As a side note, one thing to keep in mind is that you still need to have SF users to which permissions can be associated. 

We have done this several times, and I will tell you that it is somewhat of a pain to support at times.  But the first thing to look at is the Windows API.  There is a method called LogonUser:

<DllImport("advapi32.dll")> _
Public Function LogonUser(ByVal lpszUsername As String, ByVal lpszDomain As String, ByVal lpszPassword As String, ByVal dwLogonType As Integer, ByVal dwLogonProvider As Integer, ByRef phToken As Integer) As
Boolean
End
Function

Post #6007
Posted 01/21/2007 2:44:28 PM
StrataFrame VIP

StrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIPStrataFrame VIP

Group: StrataFrame Users
Last Login: Yesterday @ 12:10:08 PM
Posts: 1,327, Visits: 3,471
Thanks for the info. After a brief look, I think this goes into the "look at this later" category. I'm just going to use SF security for now.
Post #6012
Posted 01/21/2007 5:23:02 PM


StrataFrame Developer

StrataFrame Developer

Group: StrataFrame Developers
Last Login: Yesterday @ 4:50:35 PM
Posts: 4,796, Visits: 4,766
I understand
Post #6013
« Prev Topic | Next Topic »


Reading This TopicExpand / Collapse
Active Users: 0 (0 guests, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Ben Chase, Trent L. Taylor, Steve L. Taylor

PermissionsExpand / Collapse

All times are GMT -6:00, Time now is 7:23am

Powered by InstantForum.NET v4.1.4 © 2008
Execution: 0.125. 9 queries. Compression Enabled.
Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.