yum –y install ntp
sed –i “s /^server /#server /g” /ect/ntp.conf echo “serever _” /etc/ntp.conf
ntpdate _
chkconfig ntpd on
service ntpd start
yum -y install mod_auth_ntlm_winbind httpd-devel autoconfig krb5-workstation samba samba-common samba-winbind
ADSERVER=FQDN ( dc.company.local) DOMAIN= (company.local) WORKGROUP= company authconfig --enableshadow --enablemd5 --passalgo=md5 --krb5kdc=$ADSERVER --krb5realm=$DOMAIN --smbservers=$ADSERVER --smbworkgroup=$WORKGROUP --enablewinbind --enablewinbindauth --smbsecurity=ads --smbrealm=$DOMAIN --smbidmapuid="16777216-33554431" --smbidmapgid="16777216-33554431" --winbindseparator="+" --winbindtemplateshell="/bin/false" --enablewinbindusedefaultdomain --disablewinbindoffline --winbindjoin=Administrator --disablewins --disablecache --enablelocauthorize –updateall
setsebool -P allow_httpd_mod_auth_ntlm_winbind on
service winbind start
chkconfig winbind on
wbinfo –u wbinfo –g
kinit administrator ( ), .
klist
KeepAlive=off
parameter to KeepAlive=on
in the /etc/httpd/conf/httpd.conf
file./etc/httpd/conf.d
directory, create the ntlm_winbind.conf
file with the following content: LoadModule auth_ntlm_winbind_module /usr/lib64/httpd/modules/mod_auth_ntlm_winbind.so <Location ~ "(otrs/customer.pl)"> AuthName "NTLM Authentication" AuthType NTLM Require valid-user NTLMAuth on NTLMAuthHelper "/usr/bin/ntlm_auth --helper-protocol=squid-2.5-ntlmssp" NTLMBasicAuthoritative on </Location>
customer.pl
Config.pm
to Config.pm
out the part responsible for the LDAP authorization and add the NTLM authorization. # LDAP #$Self->{'Customer::AuthModule'} = 'Kernel::System::Auth::LDAP'; #$Self->{'Customer::AuthModule::LDAP::Host'} = 'dc.company.local'; #$Self->{'Customer::AuthModule::LDAP::BaseDN'} = 'dc=COMPANY, dc=local'; #$Self->{'Customer::AuthModule::LDAP::UID'} = 'sAMAccountName'; #$Self->{'Customer::AuthModule::LDAP::SearchUserDN'} = 'read_ad_user'; #$Self->{'Customer::AuthModule::LDAP::SearchUserPw'} = 'pass_for_read_ad_user'; # NTLM $Self->{'Customer::AuthModule'} = 'Kernel::System::Auth::HTTPBasicAuth';
nslookup otrs-server
commandotrs-server-name/otrs/customer.pl
otrs-server-name/otrs/customer.pl
and see the result./etc/krb5.conf /etc/samba/smb.conf
files /etc/krb5.conf /etc/samba/smb.conf
Source: https://habr.com/ru/post/182586/
All Articles