You are viewing limited content. For full access, please sign in.

Question

Question

How to log into Laserfische with Networkcredentialcache specified explicitly?

asked on June 3, 2015

When I connect by using windows credentials as shown in the below code, I am getting “The user account name or password is incorrect. [9010]” exception, but I am able to connect directly  Laserfiche Client by manually entering windows credentials.

 

               

                RepositoryRegistration repositoryRegistration = new RepositoryRegistration("LFServerName", "repository");
                Session session = new Session();
                session.LogIn("domainName\\userName", "password", repositoryRegistration);       

I am getting exception “The user account name or password is incorrect. [9010]” at 3rd line session.LogIn() in the above code.

Here I have to connect to Laserfiche from another web application, so I am not able to connect using “Window’s authentication”

How to log into Laserfische with Networkcredentialcache specified explicitly?

0 0

Replies

replied on June 3, 2015

To use Windows authentication you call the LogIn overload that doesn't take a username and password.  If you want to use credentials other than those of the current process you need to handle the impersonation yourself.  See this post for code.

0 0
replied on June 7, 2015

Thank you Brian, I am able to login if i use Laserfiche credentials instead of Windows NT credentials.

0 0
You are not allowed to follow up in this post.

Sign in to reply to this post.