<font color='black' size='2' face='arial'>
<div style="font-family: arial,helvetica; font-size: 10pt; color: black;">
<div id="AOLMsgPart_2_f8055eb9-dca2-4ecc-b535-a6a5633436df">
<font color="black" face="arial" size="2">
<div> <br>
</div>
<div> <pre style="font-size: 9pt;"><tt> I'm new to RT and Perl, but with some good skills with Linux.<br>
<br>
1) I Have installed successfully RT, logging on with no errors with local</tt><font size="2"><font face="Arial, Helvetica, sans-serif"> </font></font><tt>u<br>
<br>
sers end logging on successful<br>
<br>
2)But when i login the url with A D credentials it gives me the bellow err<br>
<br>
or. on the browser<br>
<br>
<b>Can't call method "as_string" on an undefined value at/opt/rt3/local/plugi=<br>
<br>
ns/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pmline 100</b></tt><font size="2"><font face="Arial, Helvetica, sans-serif"><br>
<br>
<br>
<br>
</font></font><tt> </tt><font size="2"><font face="Arial, Helvetica, sans-serif"> </font></font><tt>for</tt><font size="2"><font face="Arial, Helvetica, sans-serif"> </font></font><tt>first time, but when i refreshes the same page i gets the login successf<br>
<br>
ully for the same. This happens every time when i login after logoff.<br>
<br>
</tt><font size="2"><font face="Arial, Helvetica, sans-serif"><br>
<br>
<br>
<br>
</font></font><tt>Here goes the extra information.<br>
<br>
------------------<br>
<br>
Installed versions<br>
<br>
------------------<br>
<br>
Windows 2000 AD</tt><font size="2"><font face="Arial, Helvetica, sans-serif"><br>
<br>
<font size="3">Centos 5.4 on RT server</font><br>
<br>
</font></font><tt> R T 3.8.7<br>
<br>
RT-Authen-ExternalAuth-0.08<br>
<br>
mod_perl-2.0.4-6.el5<br>
<br>
<br>
<br>
<br>
<br>
bellow are the rt logs<br>
<br>
tail -f /var/log/rt/rt.log<br>
<br>
<br>
<br>
<br>
<br>
[Thu Feb 25 09:13:45 2010] [debug]: Attempting to use external auth servic<br>
<br>
e: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/Ex<br>
<br>
ternalAuth.pm:64)<br>
<br>
[Thu Feb 25 09:13:45 2010] [debug]: Calling UserExists with $username (sha<br>
<br>
ilesh.raitole) and $service (My_LDAP) (/opt/rt3/local/plugins/RT-Authen-Ex<br>
<br>
ternalAuth/lib/RT/Authen/ExternalAuth.pm:105)<br>
<br>
[Thu Feb 25 09:13:45 2010] [debug]: UserExists params:<br>
<br>
username: shailesh.raitole , service: My_LDAP (/opt/rt3/local/plugins/RT-A<br>
<br>
uthen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:274)<br>
<br>
[Thu Feb 25 09:13:45 2010] [debug]: LDAP Search =3D=3D=3D Base: dc=3Dvirt<br>
<br>
ual,dc=3Dcom =3D=3D Filter: (&(&(ObjectCategory=3DUser)(ObjectClass=3DPers<br>
<br>
on))(samaccountname=3Dshailesh.raitole)) =3D=3D Attrs: l,cn,st,mail,sAMAcc<br>
<br>
ountName,india,streetAddress,postalCode,telephoneNumber,samaccountname,sAM<br>
<br>
AccountName (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/E<br>
<br>
xternalAuth/LDAP.pm:304)<br>
<br>
[Thu Feb 25 09:13:45 2010] [debug]: Password validation required for servi<br>
<br>
ce - Executing... (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Au<br>
<br>
then/ExternalAuth.pm:155)<br>
<br>
[Thu Feb 25 09:13:45 2010] [debug]: Trying external auth service: My_LDAP<br>
<br>
(/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth<br>
<br>
/LDAP.pm:16)<br>
<br>
[Thu Feb 25 09:13:45 2010] [debug]: LDAP Search =3D=3D=3D Base: dc=3Dvirt<br>
<br>
ual,dc=3Dcom =3D=3D Filter: (&(samaccountname=3Dshailesh.raitole)(&(Object<br>
<br>
Category=3DUser)(ObjectClass=3DPerson))) =3D=3D Attrs: dn (/opt/rt3/local/<br>
<br>
plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:43)<br>
<br>
[Thu Feb 25 09:13:45 2010] [debug]: Found LDAP DN: CN=3Dshailesh raitole,C<br>
<br>
N=3DUsers,DC=3Dvirtual,DC=3Dcom (/opt/rt3/local/plugins/RT-Authen-External<br>
<br>
Auth/lib/RT/Authen/ExternalAuth/LDAP.pm:75)<br>
<br>
<br>
<br>
Browser error<br>
<br>
<br>
<br>
Can't call method "as_string" on an undefined value at/opt/rt3/local/plugi<br>
<br>
ns/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pmline 100.<br>
<br>
<br>
<br>
The rt logs after refreshing the same url are as follows;'<br>
<br>
<br>
<br>
tail -f /var/log/rt/rt.log<br>
<br>
<br>
<br>
[Thu Feb 25 09:18:18 2010] [debug]: Reloading RT::User to work around a bu<br>
<br>
g in RT-3.8.0 and RT-3.8.1 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/<br>
<br>
html/Callbacks/ExternalAuth/autohandler/Auth:14)<br>
<br>
<br>
<br>
Browser: successful login<br>
<br>
<br>
<br>
Bellow are the configuration of my pem files.<br>
<br>
<br>
<br>
vim /opt/rt3/etc/RT_SiteConfig.pm<br>
<br>
<br>
<br>
#Set( $rtname, 'ssr.com');<br>
<br>
#Set(@Plugins,(qw(Extension::QuickDelete RT::FM)));<br>
<br>
Set( $rtname, '</tt><font size="3"><font face="Arial, Helvetica, sans-serif">ssr</font></font><tt>.com');<br>
<br>
Set($Organization, 'ssr');<br>
<br>
Set($CorrespondAddress , '<a href="mailto:ssr@example.com">ssr@ssr.com</a>');<br>
<br>
Set($CommentAddress , '<a href="mailto:ssr@example.com">ssr@ssr.com</a>);<br>
<br>
Set($Timezone , 'Asia/Calcutta');<br>
<br>
Set($UseFriendlyFromLine , 1);<br>
<br>
Set($FriendlyFromLineFormat , "\"%s\" <%s>");<br>
<br>
Set($UseFriendlyToLine , 1);<br>
<br>
Set($FriendlyToLineFormat, "\"%s Ticket #%s\":;");<br>
<br>
<br>
<br>
# THE DATABASE:<br>
<br>
<br>
<br>
Set($DatabaseType, 'mysql');<br>
<br>
<br>
<br>
Set($DatabaseHost , 'localhost');<br>
<br>
<br>
<br>
Set($DatabaseRTHost , 'localhost');<br>
<br>
<br>
<br>
Set($DatabaseUser , 'local');<br>
<br>
<br>
<br>
Set($DatabasePassword , 'localpass');<br>
<br>
<br>
<br>
Set($DatabaseName , 'rt3');<br>
<br>
<br>
<br>
Set($OwnerEmail , 'root');<br>
<br>
<br>
<br>
Set($RTAddressRegexp , '^rt\@ssr.com$');<br>
<br>
<br>
<br>
Set($NotifyActor, 1);<br>
<br>
<br>
<br>
Set($SendmailArguments , '-oi -t -f"<ssr@ssr.>"');=20<br>
<br>
<br>
<br>
Set($MaxAttachmentSize , 10000000);<br>
<br>
<br>
<br>
# THE WEBSERVER:<br>
<br>
<br>
<br>
Set($WebPath , "/ticket");<br>
<br>
Set($WebBaseURL , "<a href="http://rt.example.com" target="_blank">http://rt.s</a></tt><a href="http://rt.example.com" target="_blank"><font size="2"><font face="Arial, Helvetica, sans-serif">sr</font></font></a><tt><a href="http://rt.example.com" target="_blank">.com</a>");<br>
<br>
<br>
<br>
# Log Path<br>
<br>
<br>
<br>
Set($LogToFile , 'debug');=20<br>
<br>
<br>
<br>
Set($LogDir , '/var/log/rt');<br>
<br>
<br>
<br>
Set($LogToFileNamed , "rt.log");<br>
<br>
<br>
<br>
Set(@Plugins, qw(<br>
<br>
RT::Authen::ExternalAuth<br>
<br>
));<br>
<br>
<br>
<br>
require "/opt/rt3/local/plugins/RT-Authen-ExternalAuth/etc/RT_SiteConfig.p<br>
<br>
m";<br>
<br>
Set($AutoCreate, {Privileged =3D> 1});<br>
<br>
Set($AuthMethods, ['LDAP', 'Internal']);<br>
<br>
<br>
<br>
1;<br>
<br>
<br>
<br>
<br>
<br>
vim /opt/rt3/local/plugins/RT-Authen-ExternalAuth/etc/RT_SiteConfig.pm<br>
<br>
<br>
<br>
Set($ExternalAuthPriority, [ 'My_LDAP' ] );<br>
<br>
Set($ExternalInfoPriority, [ 'My_LDAP' ] );<br>
<br>
Set($ExternalServiceUsesSSLorTLS, 0);<br>
<br>
Set($AutoCreateNonExternalUsers, 0);<br>
<br>
<br>
<br>
Set($ExternalSettings, {=20<br>
<br>
'My_LDAP' =3D> {<br>
<br>
=20<br>
<br>
'type' =3D> 'ldap',<br>
<br>
'server' =3D> 'AD.example.com',<br>
<br>
'user' =3D> 's</tt><font size="2"><font face="Arial, Helvetica, sans-serif">vn</font></font><tt>',<br>
<br>
'pass' =3D> 'xxxxxxx',<br>
<br>
'base' =3D> 'dc=3Dexample,dc=3Dcom'<br>
<br>
,<br>
<br>
<br>
<br>
=20<br>
<br>
'filter' =3D> '(&(ObjectCategory=3DUs<br>
<br>
er)(ObjectClass=3DPerson))',<br>
<br>
=20<br>
<br>
d_filter' =3D> '(userAccountControl:1.2.<br>
<br>
840.113556.1.4.803:=3D2)',<br>
<br>
=20<br>
<br>
=20<br>
<br>
# 'tls' =3D> 0,<br>
<br>
# 'ssl_version' =3D> 3,<br>
<br>
<br>
<br>
'net_ldap_args' =3D> [ version =3D> 3 <br>
<br>
],<br>
<br>
'group' =3D> 's</tt><font size="2"><font face="Arial, Helvetica, sans-serif">vn</font></font><tt> Users',<br>
<br>
'group_attr' =3D> 's</tt><font size="2"><font face="Arial, Helvetica, sans-serif">vn</font></font><tt> Users',<br>
<br>
<br>
<br>
'attr_match_list' =3D> [ 'Name', 'EmailAddres<br>
<br>
s' ],<br>
<br>
#'attr_map' =3D> { 'Name' =3D> 'sAMAcc<br>
<br>
ountName',<br>
<br>
'attr_map' =3D> { 'Name' =3D> 'samacco<br>
<br>
untname',<br>
<br>
'EmailAddress' =3D> 'm<br>
<br>
ail',<br>
<br>
#'Organization' =3D><br>
<br>
'physicalDeliveryOfficeName',<br>
<br>
'RealName' =3D> 'cn',<br>
<br>
'ExternalAuthId' =3D><br>
<br>
'sAMAccountName',<br>
<br>
'Gecos' =3D> 'sAMAccou<br>
<br>
ntName',<br>
<br>
'WorkPhone' =3D> 'tele<br>
<br>
phoneNumber',<br>
<br>
'Address1' =3D> 'stree<br>
<br>
tAddress',<br>
<br>
'City' =3D> 'l',<br>
<br>
'State' =3D> 'st',<br>
<br>
'Zip' =3D> 'postalCode<br>
<br>
',<br>
<br>
'Country' =3D> 'india'<br>
<br>
}<br>
<br>
}<br>
<br>
}<br>
<br>
);<br>
<br>
<br>
<br>
1;<br>
<br>
<br>
<br>
<br>
<br>
Any suggestion, are appreciate.<br>
<br>
<br>
<br>
Thanks and Regards,<br>
<br>
<br>
<br>
SSR<br>
<br>
</tt></pre></div>
<div style="clear: both;"></div>
<div> <br>
</div>
</font>
</div>
<!-- end of AOLMsgPart_2_f8055eb9-dca2-4ecc-b535-a6a5633436df -->
</div>
</font>