Share via


how to implement single sign on in c#.net

Question

Thursday, October 16, 2008 10:47 PM

hi everyone,

I have to implement a web base application....

it is require to use single sign on....

DirectoryEntry objDE = new DirectoryEntry("LDAP://172.16.100.12", UserName, Password, AuthenticationTypes.Secure);

UserName can get from Request.ServerVariable("LOGON_USER");

the problem is how I get the Password??

Anyone can help.....

Thanks!!!

All replies (6)

Monday, October 20, 2008 5:21 AM âś…Answered

Hi 

 "Single sign-on (SSO) is a specialized form of software authentication that enables a user to authenticate once and gain access to the resources of multiple software systems."

Implementing SSO would depend on the type of application you have in mind whether its Intranet based or Extranet based etc

 if u  want to implement single sign on in Intranet application using c#.

 These are some Basic level steps:

- Create one common database for all your intranet applications using your choice of database

  • Database means it must have a table common across all the applications which contains user specific information like credentials, some user specific personal info etc
  • Create your own registration mechanism which will be same across all applications [all will use the same database table to fill up the user info]
  • On registration from any application, fill up that user info table [here, its good practice to have email id as userid to sign on]
  • On login page, check that table for login credentials and implement proper form authentication here
  • So this way once you are registered from any of the application, you will be able to login and use any of your applications which uses your common database for user specific information

Tell me if you need further information,


Friday, October 17, 2008 12:26 AM

Hi Dear

PLz describe your problem more not getting propely.


Friday, October 17, 2008 1:56 AM

 Hi vigneshwar,

DirectoryEntry objDE = new DirectoryEntry("LDAP://172.16.100.12", UserName, Password, AuthenticationTypes.Secure);

the above syntax entry to AD to check the user can login....

the parameter "Password".... I don't know how to retrieve it in web application.... 


Monday, October 20, 2008 1:10 AM

Hi everyone, 

i'm looking for a tutorial about how to implement a user authentication by using the single sign on.

thanks!


Monday, October 20, 2008 5:58 AM

For more information on SSO Gothrough this Link

http://futureapps.blogspot.com/2008/10/single-sign-on-in-aspnet-and-other.html


Monday, November 9, 2009 9:09 AM

Hi vigneshwar,

As per your comment in the above given article, that, for the cross domain single sign on like asp.net application to SAP application we need to come up with a solution of our own. So have you any idea related to it.

I have done this thing in Sharepoint, I have used SSO to connect to SAP server in sharepoint. But now I want to do the same thing in ASP.NET. Means client wants Asp.Net application to be developed and SAP dashboard will be shown there. I have credentials to acces that URL of SAP Dashboard but I dont know how to implement it in ASP.NET

**
**