<div dir="ltr"><div class="gmail_default" style="font-family:georgia,serif;font-size:small">Set your log to "debug" and then run rt-ldapimport. Please post what your syslog says concerning RT. </div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><font face="georgia, serif">Sincerely,</font><div><font face="georgia, serif"><br></font></div><div><font face="georgia, serif">Aaron Lush</font></div><div><font face="georgia, serif">Network Administrator</font></div><div><font face="georgia, serif">South Central Community School Corporation</font></div><div><font face="georgia, serif">(219) 767-2266 ext. 1111</font></div></div></div></div></div></div>
<br><div class="gmail_quote">On Wed, Apr 20, 2016 at 7:28 AM, Travis Slusher <span dir="ltr"><<a href="mailto:zzzz67@hotmail.com" target="_blank">zzzz67@hotmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">
<div style="font-size:12pt;color:#000000;background-color:#ffffff;font-family:Calibri,Arial,Helvetica,sans-serif">
<p>Having lots of trouble getting Request Tracker (4.2) hooked up with ExternalAuth for LDAP. I have nginx (1.8.0) working with LDAP so it successfully authenticates to the login page using Active Directory, but it is not passing the username and password
to the login page, so the user ends up having to login twice.</p>
<p><br>
</p>
<p>Please take a look, this is a huge headache!</p>
<p><br>
</p>
<p>Here is my nginx config and my RT_SiteConfig:</p>
<p><br>
</p>
<p>nginx config:</p>
<p><br>
</p>
<p></p>
<p># For more information on configuration, see:<br>
# * Official English Documentation: <a href="http://nginx.org/en/docs/" target="_blank">http://nginx.org/en/docs/</a><br>
# * Official Russian Documentation: <a href="http://nginx.org/ru/docs/" target="_blank">http://nginx.org/ru/docs/</a></p>
<p>user nginx;<br>
worker_processes auto;<br>
error_log /var/log/nginx/error.log;<br>
pid /run/nginx.pid;</p>
<p>events {<br>
worker_connections 1024;<br>
}</p>
<p><br>
</p>
<p>http {<br>
log_format main '$remote_addr - $remote_user [$time_local] "$request" '<br>
'$status $body_bytes_sent "$http_referer" '<br>
'"$http_user_agent" "$http_x_forwarded_for"';</p>
<p> auth_ldap_cache_enabled on;<br>
auth_ldap_cache_expiration_time 10000;<br>
auth_ldap_cache_size 1000;</p>
<p> ldap_server acmeLDAP {</p>
<p> url "ldap://ldapserver:389/OU=Corp,OU=Users,OU=acme,DC=corp,DC=acme,DC=net?sAMAccountName?sub?(objectClass=person)";<br>
binddn "acme\\appaccount";<br>
binddn_passwd "password";<br>
group_attribute member;<br>
group_attribute_is_dn on;<br>
satisfy any;<br>
require valid_user;<br>
}</p>
<p><br>
</p>
<p><br>
</p>
<p><br>
<br>
<br>
access_log /var/log/nginx/access.log main;</p>
<p> sendfile on;<br>
tcp_nopush on;<br>
tcp_nodelay on;<br>
keepalive_timeout 65;<br>
types_hash_max_size 2048;</p>
<p> include /etc/nginx/mime.types;<br>
default_type application/octet-stream;</p>
<p> # Load modular configuration files from the /etc/nginx/conf.d directory.<br>
# See <a href="http://nginx.org/en/docs/ngx_core_module.html#include" target="_blank">http://nginx.org/en/docs/ngx_core_module.html#include</a><br>
# for more information.<br>
include /etc/nginx/conf.d/*.conf;</p>
<p> server {<br>
listen 80 default_server;<br>
listen [::]:80 default_server;<br>
server_name _;<br>
root /usr/share/nginx/html;</p>
<p> # Load configuration files for the default server block.<br>
include /etc/nginx/default.d/*.conf;</p>
<p> location / {<br>
}</p>
<p> location ^~ /phpmyadmin/ {<br>
alias /usr/share/phpmyadmin/; </p>
<p> location ~ \.php$ { <br>
include fastcgi_params; <br>
fastcgi_param SCRIPT_FILENAME $request_filename; <br>
fastcgi_pass localhost:9000;<br>
} <br>
index index.php;<br>
}</p>
<p> error_page 404 /404.html;<br>
location = /40x.html {<br>
}</p>
<p> error_page 500 502 503 504 /50x.html;<br>
location = /50x.html {<br>
}<br>
error_page 403 = @login;<br>
location @login {<br>
rewrite ^.* <a href="https://secure.example.com/login" target="_blank">https://secure.example.com/login</a>;<br>
}<br>
}</p>
<p> </p>
<p>server {<br>
listen 80;<br>
auth_ldap "Please enter your ldap user";<br>
auth_ldap_servers acmeLDAP; </p>
<p>server_name <a href="http://rt.servername.acme.com" target="_blank">rt.servername.acme.com</a>;<br>
access_log /var/log/nginx/access.log;<br>
error_log /var/log/nginx/rt debug;</p>
<p><br>
location / {<br>
<br>
alias /opt/rt4/share/html/;<br>
<br>
fastcgi_param QUERY_STRING $query_string;<br>
fastcgi_param REQUEST_METHOD $request_method;<br>
fastcgi_param CONTENT_TYPE $content_type;<br>
fastcgi_param CONTENT_LENGTH $content_length;<br>
<br>
fastcgi_param SCRIPT_NAME '';<br>
fastcgi_param PATH_INFO $uri;<br>
fastcgi_param REQUEST_URI $request_uri;<br>
fastcgi_param DOCUMENT_URI $document_uri;<br>
fastcgi_param DOCUMENT_ROOT $document_root;<br>
fastcgi_param SERVER_PROTOCOL $server_protocol;<br>
<br>
fastcgi_param GATEWAY_INTERFACE CGI/1.1;<br>
fastcgi_param SERVER_SOFTWARE nginx/$nginx_version;<br>
<br>
fastcgi_param REMOTE_ADDR $remote_addr;<br>
fastcgi_param REMOTE_PORT $remote_port;<br>
fastcgi_param SERVER_ADDR $server_addr;<br>
fastcgi_param SERVER_PORT $server_port;<br>
fastcgi_param SERVER_NAME $server_name;<br>
<br>
fastcgi_pass <a href="http://127.0.0.1:8090" target="_blank">127.0.0.1:8090</a>;</p>
<p><br>
</p>
<p> </p>
<p>}</p>
<p>location = /auth {<br>
proxy_pass <a href="http://servername/phpmyadmin/phpTest.php" target="_blank">http://servername/phpmyadmin/phpTest.php</a>; <br>
proxy_pass_request_body off;<br>
proxy_set_header Host $host;<br>
proxy_set_header X-Real-IP $remote_addr;<br>
proxy_set_header X-Origin-URI $request_uri;<br>
proxy_set_header Content-Length '0';<br>
}</p>
<p><br>
<br>
<br>
</p>
<p>} </p>
<p><br>
</p>
<p><br>
</p>
<p>RT_SiteConfig.pm:</p>
<p><br>
</p>
<p></p>
<p># Any configuration directives you include here will override <br>
# RT's default configuration file, RT_Config.pm<br>
#<br>
# To include a directive here, just copy the equivalent statement<br>
# from RT_Config.pm and change the value. We've included a single<br>
# sample value below.<br>
#<br>
# This file is actually a perl module, so you can include valid<br>
# perl code, as well.<br>
#<br>
# The converse is also true, if this file isn't valid perl, you're<br>
# going to run into trouble. To check your SiteConfig file, use<br>
# this command:<br>
#<br>
# perl -c /path/to/your/etc/RT_SiteConfig.pm<br>
#<br>
# You must restart your webserver after making changes to this file.</p>
<p><br>
# You must install Plugins on your own, this is only an example<br>
# of the correct syntax to use when activating them:<br>
# Plugin( "RT::Extension::SLA" );<br>
# Plugin( "RT::Authen::ExternalAuth" );</p>
<p><br>
# You must install Plug/ins on your own, this is only an example, 'Request Tracker Support);</p>
<p><br>
Set($WebPath , "");<br>
Set($WebBaseURL, "<a href="http://rt.servername.acme.com" target="_blank">http://rt.servername.acme.com</a>");<br>
Set($RestrictReferrer, '0'); </p>
<p><br>
Set($DatabaseAdmin, 'root');</p>
<p>Set($LogoURL, '<a href="https://bestpractical.com/images/bpslogo.png'" target="_blank">https://bestpractical.com/images/bpslogo.png'</a>);<br>
Set($WebDefaultStylesheet, 'rudder');</p>
<p>Set($LogToFile, 'error');</p>
<p>Set($SetOutgoingMailFrom, "<a href="mailto:RT_Tracker@acme.com" target="_blank">RT_Tracker@acme.com</a>");<br>
Set($SMTPFrom, "<a href="http://mail-out.smtp.acme.com" target="_blank">mail-out.smtp.acme.com</a>");<br>
Set($ParseNewMessageForTicketCcs, 1);<br>
Set($HomePageRefreshInterval, 120);<br>
Set($NotifyActor,1);<br>
</p>
<p>Set($SendmailArguments, "-t");<br>
Set($MailCommand, "sendmail");</p>
<p># of the correct syntax to use when activating them:<br>
# Plugin( "RT::Extension::SLA" );<br>
Plugin( "RT::Authen::ExternalAuth" );<br>
Set( @Plugins, qw(RT::Authen::ExternalAuth) );</p>
<p>Set($ExternalAuthPriority, ['acmeLDAP']);<br>
Set($ExternalInfoPriority, ['acmeLDAP']);<br>
Set($UserAutocreateDefaultsOnLogin, { Privileged => 1 } );<br>
Set($AutoCreateNonExternalUsers, 1);<br>
Set($ExternalSettings, {<br>
'acmeLDAP' => {<br>
type => 'ldap',<br>
server => 'ldapservername:389',<br>
'attr_match_list' => [<br>
'Name',<br>
'EmailAddress',<br>
],<br>
'base' => 'OU=Corp,OU=Users,OU=acme,DC=corp,DC=acme,DC=net',<br>
'filter' => '(objectClass=person)',<br>
'user' => 'username123', <br>
'pass' => 'password123', <br>
'attr_map' => {<br>
'Name' => 'sAMAccountName',<br>
'EmailAddress' => 'mail',<br>
'RealName' => 'cn',<br>
'WorkPhone' => 'telephoneNumber',<br>
'Address1' => 'streetAddress',<br>
'City' => 'l',<br>
'State' => 'st',<br>
'Zip' => 'postalCode',<br>
'Country' => 'co',<br>
},<br>
},<br>
});</p>
<p><br>
</p>
<p> <br>
Set($WebRemoteuserAuth,1);<br>
Set($WebRemoteUserContinuous,1);<br>
Set($WebFallbackToRTLogin, undef);<br>
Set($WebRemoteUserGecos,1);<br>
Set($WebRemoteUserAutocreate,1);</p>
<p>Set( $rtname, 'acme RT' );<br>
Set( $CommentAddress, '' );<br>
Set( $CorrespondAddress, '' );<br>
Set( $DatabaseHost, 'localhost' );<br>
Set( $DatabaseName, 'rt_database' );<br>
Set( $DatabasePassword, 'acme123' );<br>
Set( $DatabasePort, '3306' );<br>
Set( $DatabaseType, 'mysql' );<br>
Set( $DatabaseUser, 'root' );<br>
Set( $Organization, '<a href="http://acme.com" target="_blank">acme.com</a>' );<br>
Set( $OwnerEmail, '<a href="mailto:owner@acme.com" target="_blank">owner@acme.com</a>' );<br>
Set( $SendmailPath, 'usr/lib/sendmail' );<br>
Set( $SendmailArguments, "-t");<br>
Set( $MailCommand, "sendmail");<br>
Set( $WebDomain, '<a href="http://rt.servername.acme.com" target="_blank">rt.servername.acme.com</a>' );<br>
Set( $WebPort, '443' );<br>
Set( $rtname, 'acme RT' );</p>
<p>Set(%CustomFieldGroupings,<br>
'RT::Ticket' => [<br>
'Basics' => ['Trigger Code']<br>
]<br>
);<br>
Set($CanonicalizeRedirectURLs, 0); <br>
1;<br>
</p>
<br>
<p></p>
<br>
<p></p>
</div>
</div>
<br>---------<br>
RT 4.4 and RTIR Training Sessions <a href="https://bestpractical.com/training" rel="noreferrer" target="_blank">https://bestpractical.com/training</a><br>
* Washington DC - May 23 & 24, 2016<br>
<br></blockquote></div><br></div>
<br>
Email Confidentiality Notice: This email message, including all attachments, is for the sole use of the intended recipient(s) and contains confidential information. If you are not the intended recipient, you may not use, disclose, print, copy or disseminate this information. Please reply and notify the sender, delete the message and any attachments and destroy all copies. <br>