Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Web CMS (TeamSite)
Trusted Login
piyush123po
Can anyone tell me what to do to login in worksite 8.0 or 8.1 version using Trusted Login. I am using this code, it works fine with 8.2 version.but giving error with 8.0 and 8.1.
intUserToken = System.Security.Principal.WindowsIdentity.GetCurrent().Token.ToInt32()
session.TrustedLogin2(intUserToken)
Prior to this i have created a session and i have added my server name to session.
Error is :
Tristed Login types does not maych for the user.
Plz help me.
Thanks
Piyush Gupta
Find more posts tagged with
Comments
Migrateduser
Hello, I'm not an expert developing, however I have checked in COM Reference for Worksite 8.0 and it says the following for the trustedLogin2 method.
TrustedLogin2(AccessToken As Long) – The method used for Trusted Login on the WorkSite Web product, in which the Access Token (number) of the client is passed to the DMS for authentication.
It says it is for worksite web product, maybe in the new SDK release it has changed and allows this for desktop clients applications but in 8.0 and 8.1 no.
Hope it helps,regards
Javi
Harper
The "type mismatch" error occurs if your user's NOS type in the DMS is virtual or Novell. You can only perform a trusted login if your NOS type is NT or ADS.
jny
If this indeed is a Windows app, you should use the TrustedLogin() method.