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

Question

Question

Using SDK Log In to Laserfiche Repository using Windows Credentials

SDK
asked on December 31, 2015

We are using Session.Log(username, password) option to log into Laserfiche repository but this expects a local account and its associated credentials but we want to use domain/windows account. As per Session.Login() method's description it "logs in to currently connected repository  using the current threads windows credentials" but not sure how to use it.

Any example?

0 0

Answer

APPROVED ANSWER
replied on January 4, 2016

See the "Using Windows Authentication with JRA" section in the SDK help file. Authenticating with Windows through JRA requires Kerberos configuration. The steps are detailed in the help file.

0 0

Replies

replied on December 31, 2015

It's an overloaded method so you can call Session.LogIn() without any parameters to log in using the current thread's Windows credentials.

2 0
replied on January 4, 2016

Yeah thanks for the prompt response and I do get.

Actually I want to first confirm that is there two ways to log in using SDK, through windows account credentials and another through local laserfiche account, if so, what are the different methods (code related) to do so.

In Session.Log(username, password), is the username and password for the windows account or for the local account?

Hope this makes more sense.

Thanks in advance.

0 0
replied on January 4, 2016

Also providing our .Net code to connect to Laserfiche server and repository and which is not working for the domain account but works well for the local laserfiche account:

 RepositoryRegistration repository = new RepositoryRegistration(LFServerName, LFRepoName, LFPort, LFSecurePort);

Session session = new Session();
session.Connect(repository);

if (session.IsConnected)
                {
                    // Log in using Laserfiche authentication
                    session.LogIn(usr, pwd);

}

0 0
replied on January 4, 2016

There are several existing threads on this topic: https://answers.laserfiche.com/questions?q=sdk+windows+impersonate.  The details depend on whether it's a desktop application vs. web, if you have a usable identity or if you need to create one first, etc.

0 0
replied on January 4, 2016

We are able to connect using .NET but through Java SDK we are getting this error:

No valid credentials provided (Mechanism level: Failed to find any Kerber

os tgt))

com.laserfiche.protocol.HttpException: No valid credentials provided (Mechanism

level: No valid credentials provided (Mechanism level: Failed to find any Kerber

os tgt))

0 0
APPROVED ANSWER
replied on January 4, 2016

See the "Using Windows Authentication with JRA" section in the SDK help file. Authenticating with Windows through JRA requires Kerberos configuration. The steps are detailed in the help file.

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

Sign in to reply to this post.