Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

CE 8.5 SSO doesn't work :( 1

Status
Not open for further replies.

tomkyn

Programmer
May 28, 2003
15
US
I have a IIS5 web server, serving C# ASP .NET pages. All settings on WCE and IIS5 are correctly set up for SSO. SSO works using eportfolio, and manager.

This is the code I use to log in:

private void getCREnterpriseSessionInfo()
{
EnterpriseService myEnterpriseService;

myMgr = new SessionMgr();
mySess = myMgr.Logon("", "", "MyAPSName" , "secWindowsNT");
myEnterpriseService = mySess.GetService("InfoStore");
myStore = new InfoStore(myEnterpriseService);
Session.Add("IStore", myStore);
myTokenMgr = mySess.LogonTokenMgr;
Response.Cookies.Add(new System.Web.HttpCookie("LogonToken", myTokenMgr.CreateLogonTokenEx("", 1000, 10)));
}

Login always fails:
NT Authentication could not log you on. Please make sure your logon information is correct. If your account is in any domain other than "NA" you must enter your user name as DomainName\UserName.

My user account is on the above mentioned domain. If I hard code the username and password into the login statement, the login works. What could be wrong?

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top