Hi again,<br>I have an odd situation still.<br>I made the mistake to claim victory before further testing, and here I am.<br>I can connect with the same user from the AD that I was testing before but any new one gives me this error on the browser:<br>
<br>Can't locate object method "host" via package "URI::_generic" at /opt/rt3/bin/../lib/RT/Interface/Web.pm line 190.
<br>Which takes me to this sub routine:<br>sub Redirect {<br> my $redir_to = shift;<br> untie $HTML::Mason::Commands::session;<br> my $uri = URI->new($redir_to);<br> my $server_uri = URI->new( RT->Config->Get('WebURL') );<br>
<br> # If the user is coming in via a non-canonical<br> # hostname, don't redirect them to the canonical host,<br> # it will just upset them (and invalidate their credentials)<br> # don't do this if $RT::CanoniaclRedirectURLs is true<br>
if ( !RT->Config->Get('CanonicalizeRedirectURLs') <-- THIS IS THE LINE OF THE ERROR<br> && $uri->host eq $server_uri->host<br> && $uri->port eq $server_uri->port )<br>
{<br> if ( defined $ENV{HTTPS} and $ENV{'HTTPS'} eq 'on' ) {<br> $uri->scheme('https');<br> }<br> else {<br> $uri->scheme('http');<br> }<br>
<br> # [<a href="http://rt3.fsck.com">rt3.fsck.com</a> #12716] Apache recommends use of $SERVER_HOST<br> $uri->host( $ENV{'SERVER_HOST'} || $ENV{'HTTP_HOST'} );<br> $uri->port( $ENV{'SERVER_PORT'} );<br>
}<br><br><br>While on the RT log I can see this:<br><br>[Thu Mar 26 20:35:31 2009] [debug]: Attempting to use external auth service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:64) <br>
[Thu Mar 26 20:35:31 2009] [debug]: Calling UserExists with $username (evol.johnson) and $service (My_LDAP) (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:105) <br>
[Thu Mar 26 20:35:31 2009] [debug]: UserExists params: <br>username: evol.johnson , service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:274) <br>
[Thu Mar 26 20:35:31 2009] [debug]: LDAP Search === Base: cn=users,dc=cr,dc=digitalarbor,dc=com == Filter: (&(objectClass=*)(sAMAccountName=evol.johnson)) == Attrs: l,cn,st,mail,sAMAccountName,co,streetAddress,postalCode,telephoneNumber,sAMAccountName,physicalDeliveryOfficeName,sAMAccountName (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:304) <br>
[Thu Mar 26 20:35:31 2009] [debug]: Password validation required for service - Executing... (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:155) <br>
[Thu Mar 26 20:35:31 2009] [debug]: Trying external auth service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:16) <br>
[Thu Mar 26 20:35:31 2009] [debug]: LDAP Search === Base: cn=users,dc=cr,dc=digitalarbor,dc=com == Filter: (&(sAMAccountName=evol.johnson)(objectClass=*)) == Attrs: dn (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:43) <br>
[Thu Mar 26 20:35:31 2009] [debug]: Found LDAP DN: CN=Evol Johnson,CN=Users,DC=cr,DC=digitalarbor,DC=com (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:75) <br>
[Thu Mar 26 20:35:31 2009] [info]: My_LDAP AUTH FAILED evol.johnson (can't bind: LDAP_INVALID_CREDENTIALS 49 ) (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:82) <br>
[Thu Mar 26 20:35:31 2009] [debug]: LDAP password validation result: 0 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:334) <br>
[Thu Mar 26 20:35:31 2009] [debug]: Password Validation Check Result: 0 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:159) <br>
[Thu Mar 26 20:35:31 2009] [debug]: Autohandler called ExternalAuth. Response: (0, Password Invalid) (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:26) <br>
[Thu Mar 26 20:35:31 2009] [error]: FAILED LOGIN for evol.johnson from 192.168.0.71 (/opt/rt3/share/html/autohandler:268) <br>[Thu Mar 26 20:35:40 2009] [debug]: Attempting to use external auth service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:64) <br>
[Thu Mar 26 20:35:40 2009] [debug]: Calling UserExists with $username (evol.johnson) and $service (My_LDAP) (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:105) <br>
[Thu Mar 26 20:35:40 2009] [debug]: UserExists params: <br>username: evol.johnson , service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:274) <br>
[Thu Mar 26 20:35:40 2009] [debug]: LDAP Search === Base: cn=users,dc=cr,dc=digitalarbor,dc=com == Filter: (&(objectClass=*)(sAMAccountName=evol.johnson)) == Attrs: l,cn,st,mail,sAMAccountName,co,streetAddress,postalCode,telephoneNumber,sAMAccountName,physicalDeliveryOfficeName,sAMAccountName (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:304) <br>
[Thu Mar 26 20:35:40 2009] [debug]: Password validation required for service - Executing... (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:155) <br>
[Thu Mar 26 20:35:40 2009] [debug]: Trying external auth service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:16) <br>
[Thu Mar 26 20:35:40 2009] [debug]: LDAP Search === Base: cn=users,dc=cr,dc=digitalarbor,dc=com == Filter: (&(sAMAccountName=evol.johnson)(objectClass=*)) == Attrs: dn (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:43) <br>
[Thu Mar 26 20:35:40 2009] [debug]: Found LDAP DN: CN=Evol Johnson,CN=Users,DC=cr,DC=digitalarbor,DC=com (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:75) <br>
[Thu Mar 26 20:35:40 2009] [info]: RT::Authen::ExternalAuth::LDAP::GetAuth External Auth OK ( My_LDAP ): evol.johnson (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:139) <br>
[Thu Mar 26 20:35:40 2009] [debug]: LDAP password validation result: 1 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:334) <br>
[Thu Mar 26 20:35:40 2009] [debug]: Password Validation Check Result: 1 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:159) <br>
[Thu Mar 26 20:35:40 2009] [debug]: Authentication successful. Now updating user information and attempting login. (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:179) <br>
[Thu Mar 26 20:35:40 2009] [debug]: UserExists params: <br>username: evol.johnson , service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:274) <br>
[Thu Mar 26 20:35:40 2009] [debug]: LDAP Search === Base: cn=users,dc=cr,dc=digitalarbor,dc=com == Filter: (&(objectClass=*)(sAMAccountName=evol.johnson)) == Attrs: l,cn,st,mail,sAMAccountName,co,streetAddress,postalCode,telephoneNumber,sAMAccountName,physicalDeliveryOfficeName,sAMAccountName (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:304) <br>
[Thu Mar 26 20:35:40 2009] [debug]: UserExists params: <br>username: evol.johnson , service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:274)<br>
[Thu Mar 26 20:35:40 2009] [debug]: LDAP Search === Base: cn=users,dc=cr,dc=digitalarbor,dc=com == Filter: (&(objectClass=*)(sAMAccountName=evol.johnson)) == Attrs: l,cn,st,mail,sAMAccountName,co,streetAddress,postalCode,telephoneNumber,sAMAccountName,physicalDeliveryOfficeName,sAMAccountName (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:304)<br>
[Thu Mar 26 20:35:40 2009] [debug]: LDAP Search === Base: cn=users,dc=cr,dc=digitalarbor,dc=com == Filter: (&(objectClass=*)(objectClass=nomatch)(sAMAccountName=evol.johnson)) == Attrs: uid (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:398)<br>
[Thu Mar 26 20:35:40 2009] [info]: User marked as ENABLED ( evol.johnson ) per External Service (0, That is already the current value) (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:274)<br>[Thu Mar 26 20:35:40 2009] [debug]: RT::Authen::ExternalAuth::CanonicalizeUserInfo called by RT::User /opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/User_Vendor.pm 20 with: Name: evol.johnson (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:450)<br>
[Thu Mar 26 20:35:40 2009] [debug]: Attempting to get user info using this external service: My_LDAP (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:458)<br>[Thu Mar 26 20:35:40 2009] [debug]: Attempting to use this canonicalization key: Name (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:472)<br>
[Thu Mar 26 20:35:40 2009] [debug]: LDAP Search === Base: cn=users,dc=cr,dc=digitalarbor,dc=com == Filter: (&(objectClass=*)(sAMAccountName=evol.johnson)) == Attrs: l,cn,st,mail,sAMAccountName,co,streetAddress,postalCode,telephoneNumber,sAMAccountName,physicalDeliveryOfficeName,sAMAccountName (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:195)<br>
[Thu Mar 26 20:35:40 2009] [info]: RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Address1: , City: , Country: , EmailAddress: , ExternalAuthId: evol.johnson, Gecos: evol.johnson, Name: evol.johnson, Organization: , RealName: Evol Johnson,State: , WorkPhone: , Zip: (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:536)<br>
[Thu Mar 26 20:35:40 2009] [debug]: UPDATED user ( evol.johnson ) from External Service (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:307)<br>[Thu Mar 26 20:35:40 2009] [info]: Successful login for evol.johnson from 192.168.0.71 (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:219)<br>
[Thu Mar 26 20:35:40 2009] [debug]: Autohandler called ExternalAuth. Response: (1, Successful login) (/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth:26)<br><br><br>I'm not a coder so I cannot make much about this problem since I don't understand what is the root of it.<br>
<br>Thanks again.<br><br><br><div class="gmail_quote">On Thu, Mar 26, 2009 at 2:22 PM, Max León <span dir="ltr"><<a href="mailto:mleon@wirewatchers.com">mleon@wirewatchers.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks so much Nick.<br>That indeed did the trick and I have it ready.<br>Thanks for the clarification as well.<div><div></div><div class="h5"><br><br><div class="gmail_quote">On Thu, Mar 26, 2009 at 11:37 AM, Nick Kartsioukas <span dir="ltr"><<a href="mailto:change%2Blists.rt@nightwind.net" target="_blank">change+lists.rt@nightwind.net</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">On Thu, 26 Mar 2009 11:32:53 -0600, "Max León" <<a href="mailto:mleon@wirewatchers.com" target="_blank">mleon@wirewatchers.com</a>><br>
said:<br>
<div>> Now, I did what you asked me to and well, that the error went away but I<br>
> have a new one.<br>
> Here it is what the browser displays:<br>
> Can't call method "as_string" on an undefined value at<br>
> /opt/rt3/local/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm<br>
> line 398, line 514.<br>
<br>
</div>Ensure that you have valid LDAP search parameters defined for 'base',<br>
'filter', and 'd_filter'. In my configuration, I don't need to narrow<br>
down the search any more than what I defined in my LDAP search base, so<br>
I set 'filter' to '(objectClass=*)' and 'd_filter' to<br>
'(objectClass=ThisWillNeverMatch)'.<br>
</blockquote></div><br>
</div></div></blockquote></div><br>