[rt-users] Re: [bestpractical.com #1401] Re: Module version Question

John Gedeon jgedeon at qualcomm.com
Wed Mar 3 12:34:10 EST 2004


Hi all,
  I am trying to make RT3.0.9 work with LDAP. I can't use Apache to do the authentication since we need to have a login screen where we can post messages to the users. So I am modifying User_Local.pm based on the User_Local.pm file I found on the maillist.
 I wrote a function in User_Local.pm that does the LDAP auth, based on the User_Local.pm code that I found in the maillist. 
 I need the login screen to create a user on the fly, so I am adding local/html/Callbacks/XYZ/autohandler/Auth to do that based on the code under webexternal auth. To verify that the user logging in I try to call RT::User::_LDAPAUTH($user,$pass,FLAG); but get the following error, I also tried to pass the object to my function by calling it $UserObj->_LDAPAUTH($user,$pass,FLAG) but still get the same error?
 
 Any tips welcome

TIA
John

error:  Can't call method "_Accessible" without a package or object reference at /opt/rt/perl/lib/site_perl/5.8.3/DBIx/SearchBuilder/Record.pm line 406.
 
context:  ...   
402:  my $self = shift; 
403:   
404:  no strict 'refs'; 
405:   
406:  if ($AUTOLOAD =~ /.*::(\w+)/o && $self->_Accessible($1,'read') ) { 
407:  my $Attrib = $1; 
408:   
409:  *{$AUTOLOAD} = sub { return ($_[0]->_Value($Attrib))}; 
410:  return($self->_Value($Attrib)); 
...   
 
code stack:  /opt/rt/perl/lib/site_perl/5.8.3/DBIx/SearchBuilder/Record.pm:406
/opt/rt/rt3/local/lib/RT/User_Local.pm:179
/opt/rt/rt3/local/html/Callbacks/QCTES/autohandler/Auth:18
/opt/rt/rt3/share/html/Elements/Callback:59
/opt/rt/rt3/share/html/autohandler:164



More information about the rt-users mailing list