Forum Discussion
Middle_Tier_Adm
Nimbostratus
Oct 09, 2018NTLM Remote_User iRule
I am trying to show the NTLM REMOTE_USER in the header when an HTTP request is made. Below is the apache language I am using. Can anyone point me in the right direction for an iRule to do the same?
`
AuthName "NTLM Authentication"
NTLMAuth on
NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp"
NTLMBasicAuthoritative on
AuthType NTLM
require valid-user
RequestHeader set REMOTE_USER %{REMOTE_USER}s
Order allow,deny
Allow from all
`
- Kevin_Stewart
Employee
If you're authenticating the user via APM NTLM, the authenticated username will be in the session.logon.last.username session variable.
- Kevin_Stewart
Employee
I guess I should clarify, are you running APM? If so,
when ACCESS_ACL_ALLOWED { HTTP::header insert Remote_User [ACCESS::session data get "session.logon.last.username"] }
Recent Discussions
Related Content
DevCentral Quicklinks
* Getting Started on DevCentral
* Community Guidelines
* Community Terms of Use / EULA
* Community Ranking Explained
* Community Resources
* Contact the DevCentral Team
* Update MFA on account.f5.com
Discover DevCentral Connects