-
1
- #1
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?
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?