after trying four types of endorsements I could finally make it work automatically authenticate customers using linux and databese active directory.
So I decided to share with friends as I could make it work, let the work
After the OTRS installed and authenticated with the LDAP base to catch all customers
install:
Apache mod_phyton http://www.modpython.org/
Python 2.x
After install:
PyAuthenNTLM2
https://github.com/Legrandin/PyAuthenNTLM2
Download and install:
python setup.py install -f
PS: do not forget to call the module in httpd.conf mod_phyton
add in /etc/httpd/conf.d/otrs.conf
Code: Select all
# --
# added for OTRS (http://otrs.org/)
# --
ScriptAlias /otrs/ "/opt/otrs/bin/cgi-bin/"
Alias /otrs-web/ "/opt/otrs/var/httpd/htdocs/"
<Location /otrs>
AuthType NTLM
AuthName DOMAIN (without COM)
require valid-user
PythonAuthenHandler pyntlm
PythonOption Domain DOMAIN (without COM)
PythonOption PDC 192.168.0.12 (ip your pdc)
PythonOption BDC 192.168.0.11 (ip your bdc
# Bypass authentication for local clients.
# Comment these lines if they should authenticate too.
Order deny,allow
Deny from all
Allow from 127.0.0.1
Satisfy any
</Location>
Code: Select all
$Self->{'Customer::AuthModule2'} = 'Kernel::System::CustomerAuth::HTTPBasicAuth';
$Self->{'Customer::AuthModule2::HTTPBasicAuth::Replace'} = 'DOMAIN\\';
$Self->{'Customer::AuthModule2'} = 'Kernel::System::CustomerAuth::HTTPBasicAuth';
Hugs and I have helped with the community.
