Download the PHP package fawno/ntlm-authentication without Composer
On this page you can find all versions of the php package fawno/ntlm-authentication. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download fawno/ntlm-authentication
More information about fawno/ntlm-authentication
Files in fawno/ntlm-authentication
Package ntlm-authentication
Short Description NTLM Authenticator for CakePHP 4.3
License MIT
Informations about the package ntlm-authentication
NTLM Authenticator for CakePHP 4 Authentication plugin
This plugin provides an NTLM Authenticator for CakePHP 4 authentication plugin.
Table of contents
- Requirements
- Installation
- Configuration
- Apache with SSPI NTLM based authentication module (mod_authn_ntlm)
- NTLMAuthenticator
Requirements
- PHP >= 7.2.0
- Apache 2.4 SSPI NTLM based authentication module (mod_authn_ntlm)
- CakePHP >= 4.3.0
- CakePHP Authentication >= 2.0
Optional:
- ext-ldap (LDAP php extension)
TOC
Installation
Install this plugin into your application using composer:
-
Add
fawno/ntlm-authentication
package to your project: -
Load the NTLMAuthenticator in your
Application.php
: - Load the NTLMAuthenticator in your Authentication Service (
Application.php
):
TOC
Configuration
exampledomain
short domain name
example.com
full domain name
Apache with SSPI NTLM based authentication module (mod_authn_ntlm)
Only routes with /login
are authenticated with NTLM
webroot\.htaccess
:
TOC
NTLMAuthenticator
NTLM Authenticator can query through LDAP for user membership. This information is stored in the session and can be used for authorization (ACL).
The configured credentials should have query-only access to the LDAP service and no other privileges within the domain.
config
array is optional data can be stored in session auth data.
It allows configuring the logo of the organization and other data common to the users of a domain that the application needs to use.
The application does not have any access to validated user passwords, all NTLM authentication is negotiated between the Apache server and the browser.
TOC