HTTP server with Windows Authentication

HTTP server with Windows Authentication

mischa_spelt
Advisor Advisor
7 Views
4 Replies
Message 1 of 5

HTTP server with Windows Authentication

mischa_spelt
Advisor
Advisor

[ FlexSim 23.0.3 ]

Hi,

I was trying to setup a simple webserver with Windows Authentication but I'm getting the following exception when I enter the username and password after the browser requests them:

Error: Can't set headers after they are sent.
    at SendStream.headersAlreadySent (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:361:13)
    at SendStream.send (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:572:10)
    at C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:722:12
    at FSReqWrap.oncomplete (fs.js:153:5)
Error: Can't set headers after they are sent.
    at SendStream.headersAlreadySent (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:361:13)
    at SendStream.send (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:572:10)
    at C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:722:12
    at FSReqWrap.oncomplete (fs.js:153:5)
Error: Can't set headers after they are sent.
    at SendStream.headersAlreadySent (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:361:13)
    at SendStream.send (C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:572:10)
    at C:\Program Files (x86)\FlexSim Web Server\webserver\node_modules\send\index.js:722:12
    at FSReqWrap.oncomplete (fs.js:153:5)


This is my config:

# This file needs to be in the same directory as flexsimserver.bat

General:
    Flexsim Program Directory:      %PROGRAMFILES%\FlexSim 2023\program
    Model Directory:                %DOCUMENTS%\FlexSim 2023 Projects
    Port:                           80
    Reply Timeout (milliseconds):   10000
    Max Instances (of Flexsim):     8
    Max Threads Per Instance:       max
    Ignore Auto Save Files:         yes
Remote Operations (security hazards):
    Model Uploading:                no
    Model Downloading:              no
    Model Deleting:                 no
    Max Upload Size (bytes):        10000000
Jobs:
    Flexsim Data Directory:         %AllUsersProfile%\FlexSim\FlexSim23.0
    Max Job Queue Length:           100
    Max Job Timeout (seconds):      3600
Windows Authentication:
    Use Windows Authentication:     yes
    Restrict UserGroup Directories: no
    Active Directory:
        url:                        ldap://dc.domainName.com
        baseDN:                     dc=domainName,dc=com
        username:                   specialUser@domainName.com
        password:                   password
Session:
    Enable:                         yes
    Secret:                         dqtqv4P%:P\C#Jx%fo
    Max Age (seconds):              3600

Running the latest webserver version from the download page on Windows 10 Pro.

0 Likes
8 Views
4 Replies
Replies (4)
Message 2 of 5

Jacob_Gillespie
Autodesk
Autodesk

I can't seem to replicate your issue.

Do you happen to have job files in %AllUsersProfile%\FlexSim\FlexSim23.0?

0 Likes
Message 3 of 5

mischa_spelt
Advisor
Advisor
The folder does exist but there are no jobs in it.

Would it be helpful (for this question and my other question) if I gave you access to the test environment? I can send you the credentials by email if you'd like?

0 Likes
Message 4 of 5

Jeanette_Fullmer
Community Manager
Community Manager
Hello @Mischa Spelt,

Did the help you received in the following post help with this issue too or are you still having issues with this?

0 Likes
Message 5 of 5

Jeanette_Fullmer
Community Manager
Community Manager

Hi @Mischa Spelt,

We haven't heard back from you. Were you able to solve your problem? If so, please add and accept an answer to let others know the solution. Or please respond to the previous comment so that we can continue to help you.

If we don't hear back in the next 3 business days, we'll assume you were able to solve your problem and we'll close this case in our tracker. You can always comment back at any time to reopen your question.

0 Likes