|
I hope someone please take a moment to look at this... and point me to a way to go to solve this. I installed RT 3.8.1, follow instructions from http://wiki.bestpractical.com/view/ExternalAuth and lot of other sites I googled. The installation of RT::Authen::ExternalAuth 0.07_01 was made by hand because via CPAN I got this message: Warning: Cannot install RT::Authen::ExternalAuth, don't know what it is. I can login but get this message in browser: Can't call method "as_string" on an undefined value at /opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm line 97, line 514. Here is the log output: [Mon Dec 8 18:19:58 2008] [debug]: $pass defined (**********), Running IsPassword (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:69) [Mon Dec 8 18:19:58 2008] [debug]: Trying External Authentication ( dsi ) (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/User_Vendor.pm:24) [Mon Dec 8 18:19:58 2008] [debug]: Attempting to use external auth service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:150) [Mon Dec 8 18:19:59 2008] [debug]: Trying external auth service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:13) [Mon Dec 8 18:20:03 2008] [debug]: LDAP Search === Base: dc=alergs,dc=br == Filter: (&(sAMAccountName=dsi)(objectClass=*)) == Attrs: dn (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:40) [Mon Dec 8 18:20:04 2008] [debug]: Found LDAP DN: CN=dsi,OU=Rede,OU=DSI - Sistemas e Informatica,OU=Corporativo,DC=alergs,DC=br (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:72) This is my /opt/rt3/etc/RT_SiteConfig.pm Set($rtname , "ALERGS"); Set($Organization , "rt.al.rs.gov.br"); Set($Timezone , 'America/Sao_Paulo'); Set($DatabaseType , 'mysql'); Set($DatabaseHost , 'localhost'); Set($DatabaseRTHost , 'localhost'); Set($DatabasePort , '3306'); Set($DatabaseUser , 'rtuser'); Set($DatabasePassword , '********'); Set($DatabaseName , 'rt3'); Set($WebDefaultStylesheet, 'web2'); Set($WebPath, ""); Set($WebDomain, 'rt.alergs.br' ); Set($WebPort, 80); # + ($< * 7274) % 32766 + ($< && 1024)); Set($WebBaseURL, 'http://' . RT->Config->Get('WebDomain') . ':' . RT->Config->Get('WebPort')); Set($WebURL, RT->Config->Get('WebBaseURL') . RT->Config->Get('WebPath') . "/"); Set($RTAddressRegexp , '[EMAIL PROTECTED]'); Set($CorrespondAddress , '[EMAIL PROTECTED]'); Set($CommentAddress , '[EMAIL PROTECTED]'); Set($AutoLogoff, 30); # minutos Set($DateDayBeforeMonth , 1); Set($EnableReminders,1); Set($LogToSyslog , ''); Set($LogDir, '/opt/rt3/var/log'); Set($LogToFileNamed , "rt.log"); Set($LogToFile , 'debug'); Set( @Plugins, (qw(RT::Authen::ExternalAuth RT::FM))); Set($ExternalAuthPriority, ['My_LDAP']); Set($ExternalInfoPriority, ['My_LDAP']); Set($ExternalServiceUsesSSLorTLS, 0); Set($AutoCreateNonExternalUsers, 0); Set($ExternalSettings, { 'My_LDAP' => { 'type' => 'ldap', 'auth' => 1, 'info' => 1, 'server' => 'ds1.alergs.br', 'user' => 'cn=adrt,ou=Corporativo,dc=alergs,dc=br', 'pass' => '************', 'base' => 'dc=alergs,dc=br', 'filter' => '(objectClass=*)', 'd_filter' => '(userAccountControl:1.2.840.113556.1.4.803:=2)', 'tls' => 0, 'net_ldap_args' => [ version => 3 ], 'group' => 'DSI_Rede_Usu', 'group_attr' => '', 'attr_match_list' => [ 'Name', 'EmailAddress' ], 'attr_map' => { 'Name' => 'sAMAccountName', 'EmailAddress' => 'mail', 'RealName' => 'cn' } } } ); 1;
Elton S. Fenner,
Analista de Rede, Assembléia Legislativa do RS. +55 51 3210-1202 |
_______________________________________________ http://lists.bestpractical.com/cgi-bin/mailman/listinfo/rt-users
Community help: http://wiki.bestpractical.com Commercial support: [EMAIL PROTECTED] Discover RT's hidden secrets with RT Essentials from O'Reilly Media. Buy a copy at http://rtbook.bestpractical.com
