logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: Disable auth subfolder
Author
Taps



Joined: 11 Mar 2024
Posts: 1

PostPosted: Mon 11 Mar '24 9:02    Post subject: Disable auth subfolder Reply with quote

Hello,
I use https://github.com/TQsoft-GmbH/mod_authn_ntlm. I need disable auth to subfolder (an external application writes to the folder via a post request) A try this, but return 401. Can I help me? Thank you

Code:

RequestHeader unset X_ISRW_PROXY_AUTH_USER
<Location /app >
    #AllowOverride None
    AuthName "Private location"
    AuthType SSPI
    NTLMAuth On
   NTLMUsernameCase lower
   NTLMOmitDomain On
    NTLMAuthoritative Off
    <RequireAll>
        <RequireAny>
            Require valid-user
            #require sspi-user EMEA\group_name
        </RequireAny>
        <RequireNone>
            Require user "ANONYMOUS LOGON"
            Require user "NT-AUTORIT\ANONYMOUS-ANMELDUNG"
        </RequireNone>
    </RequireAll>
    # use this to add the authenticated username to you header
    # so any backend system can fetch the current user
    # rewrite_module needs to be loaded then
    # while X_ISRW_PROXY_AUTH_USER is your header name
    RequestHeader set X_ISRW_PROXY_AUTH_USER expr=%{REMOTE_USER}
</Location>

<Location /app/withouth_auth >
Require all granted
Satisfy any
Allow from All
</Location>
Back to top
tangent
Moderator


Joined: 16 Aug 2020
Posts: 333
Location: UK

PostPosted: Mon 11 Mar '24 19:21    Post subject: Reply with quote

Try putting the "/app/without auth" location block before the "/app" one.

Location blocks are processed in the order they appear in the configuration; see https://httpd.apache.org/docs/current/mod/core.html#location
Back to top


Reply to topic   Topic: Disable auth subfolder View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules