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

Question

Question

Session for programming without login limit.

asked on January 27, 2017

One of our clients has a local programmer. He has built a front end application that he is tying into Laserfiche. He is using a single user and since it has session limits he hits them quickly as people use the application. He asked is there a license or way to have his front end application not hit the session limits. I suggested passing the Windows login over to Laserfiche which he has tried and had issues with.

0 0

Answer

SELECTED ANSWER
replied on January 30, 2017

Getting Windows authentication to work with a web application can be tricky, it requires Kerberos to be configured.  One reason the session limit exists it to prevent multiplexing all of your users onto a single license, so there isn't a way around it in your scenario.

1 0
replied on March 30, 2017

Thanks Brian we will configure Kerberos and see what happens.

 

0 0

Replies

replied on January 27, 2017

What issues were being encountered with the windows account method?

0 0
replied on March 30, 2017

Here is a bit of his code and a note from him.

_______________

The problem is it's using the iis user

 

        public bool AuthenticateWithRequestId()

        {

            var ctx = System.Web.HttpContext.Current;

            var winId = ctx.User.Identity as WindowsIdentity;

 

            //// if there's no usable identity attached, return a 401

            //if (winId == null || winId.IsAnonymous)

            //{

            //    ctx.Response.StatusCode = 401;

            //    ctx.Response.StatusDescription = "Unauthorized";

            //    ctx.Response.End();

            //    return false;

            //}

 

            // start impersonating

            using (var impersonationContext = winId.Impersonate())

            {

                // authentication to LF will use the current identity

                Session sess = new Session();

                sess.ApplicationName = ApplicationName;

                sess.LogIn(new RepositoryRegistration(LaserficheHost, RepositoryName));

                RaSession = sess;

            }

            return true;

        }

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

Sign in to reply to this post.