[rt-users] Fwd: Re: RT::Authen::ExternalAuth [SOLVED]

Giuseppe Sollazzo gsollazz at sgul.ac.uk
Fri Feb 4 04:01:02 EST 2011


FYI

-------- Original Message --------
Subject: 	Re: [rt-users] RT::Authen::ExternalAuth [SOLVED]
Date: 	Fri, 04 Feb 2011 00:43:56 -0800
From: 	Mr.Taske <taske at secureroot.com>
Reply-To: 	taske at secureroot.com
To: 	Giuseppe Sollazzo <gsollazz at sgul.ac.uk>



Coping /usr/local/lib/rt3/plugins/RT-Authen-ExternalAuth/lib/* to 
/usr/local/lib/rt3/lib solved the problem.

Thanks for the help.

--- gsollazz at sgul.ac.uk wrote:

From: Giuseppe Sollazzo <gsollazz at sgul.ac.uk>
To: taske at secureroot.com
Subject: Re: [rt-users] RT::Authen::ExternalAuth
Date: Thu, 03 Feb 2011 15:14:15 +0000 (GMT)

Hi there,
unfortunately I'm not a perl expert and this looks like a perl error. 
Basically, the problem is that @INC (that is your "include path" of 
perl) does not contain the required ExternalAuth library.
This usually mean that you've installed it in a path that is not part of 
any of the paths in @INC.
As Hugh Esco suggest in the mailing list, you will just need to 
reinstall/move ExternalAuth to a path in the @INC and it should work.

Best wishes,
Giuseppe

On 03/02/11, *"Mr.Taske" *<taske at secureroot.com> wrote:

    I think somehow i managed to work but for very short. Dont know how
    it worked?? First added this line
    perl -c
    /usr/local/lib/rt3/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm
    restart httpd and failed to start
    then, i removed and add this line
    perl -l
    /usr/local/lib/rt3/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm
    but also failed to start
    then removed the line, restart httpd and it started.
    When tried to log in i get an error:

    [error]: FAILED LOGIN for user from ip_address
    (/usr/share/rt3/html/autohandler:268)
    [critical]: RT::Authen::ExternalAuth::LDAP::_GetBoundLdapObj Can't
    bind: LDAP_INVALID_CREDENTIALS 49
    (/usr/local/lib/rt3/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth/LDAP.pm:467)

    i tried to change credentials due to the error but the httpd woht
    start again. Get the same error Can't locate
    RT/Authen/ExternalAuth.pm in @INC...

    Strange?

    --- gsollazz at sgul.ac.uk wrote:

    From: Giuseppe Sollazzo <gsollazz at sgul.ac.uk>
    To: taske at secureroot.com
    Subject: Re: [rt-users] RT::Authen::ExternalAuth
    Date: Thu, 03 Feb 2011 14:41:38 +0000 (GMT)

    On 03/02/11, "Mr.Taske" <taske at secureroot.com> wrote:
     >
     > # perl -e 'use RT::Authen::ExternalAuth;'
     > Can't locate RT/Authen/ExternalAuth.pm in @INC (@INC contains:
    /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
    /usr/local/lib/perl5/site_perl/5.10.0
    /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl/5.10.0 /usr/lib/perl5/vendor_perl
    /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0
    /usr/lib/perl5/site_perl .) at -e line 1.
     > BEGIN failed--compilation aborted at -e line 1.
     >
     >

    Uhm I think PERL's missing some imports, specifically those from RT
    which you should see in @INC. For example, you might need to set
    correctly the PERL5LIB/PERLLIB environmental variable to also
    contain (in my case) /opt/rt3/lib.
    Look here: http://perldoc.perl.org/lib.html

    Giuseppe


     > --- gsollazz at sgul.ac.uk wrote:
     >
     > From: Giuseppe Sollazzo <gsollazz at sgul.ac.uk>
     > To: taske at secureroot.com
     > Subject: Re: [rt-users] RT::Authen::ExternalAuth
     > Date: Thu, 03 Feb 2011 14:29:14 +0000 (GMT)
     >
     > What does
     >
     > perl -e 'use RT::Authen::ExternalAuth;'
     >
     > reports?
     >
     > Giuseppe
     >
     > On 03/02/11, "Mr.Taske" <taske at secureroot.com> wrote:
     > >
     > >
     > > Yes I have tried that one to. Thanks
     > >
     > > --- gsollazz at sgul.ac.uk wrote:
     > >
     > > From: Giuseppe Sollazzo <gsollazz at sgul.ac.uk>
     > > To: taske at secureroot.com, rt-users at lists.bestpractical.com
     > > Subject: Re: [rt-users] RT::Authen::ExternalAuth
     > > Date: Thu, 03 Feb 2011 14:08:37 +0000 (GMT)
     > >
     > >
     > >
     > > Hi there,
     > > you've probably checked this already but... have you installed
    RT::Authen::ExternalAuth with cpan or any other means?
     > >
     > > Giuseppe
     > >
     > > On 03/02/11, "Mr.Taske" <taske at secureroot.com> wrote:
     > > >
     > > >
     > > >
     > > > Hello everyone, i have a problem
    with RT::Authen::ExternalAuth plugin
     > > >
     > > >
     > > > I get this error:
     > > >
     > > >
     > > >
     > > > [error] Can't locate RT/Authen/ExternalAuth.pm in @INC (@INC
    contains: /usr/local/lib/rt3/lib /usr/lib/perl5/vendor_perl/5.10.0
    /usr/local/lib/perl5/site_perl/5.10.0/i386-linux-thread-multi
    /usr/local/lib/perl5/site_perl/5.10.0
    /usr/lib/perl5/vendor_perl/5.10.0/i386-linux-thread-multi
    /usr/lib/perl5/vendor_perl
    /usr/lib/perl5/5.10.0/i386-linux-thread-multi /usr/lib/perl5/5.10.0
    /usr/lib/perl5/site_perl . /etc/httpd) at
    /usr/lib/perl5/vendor_perl/5.10.0/RT.pm line 627.\nCompilation
    failed in require at (eval 2) line 1.\n
     > > > [error] Can't load Perl file: /usr/sbin/webmux.pl for server
    example:80, exiting...
     > > >
     > > >
     > > > I have installed the plugin manually from source.
     > > >
     > > >
     > > > This is the external authentication config in RT_SiteConfig.pm
     > > >
     > > >
     > > > Set( @Plugins, qw(RT::Authen::ExternalAuth) );
     > > >
     > > >
     > > > Set($ExternalAuthPriority,      [   'My_LDAP',
     > > > #                                       'My_MySQL',
     > > > #                                'My_SSO_Cookie'
     > > >                                 ]
     > > > );
     > > >
     > > >
     > > > Set($ExternalInfoPriority,  [  'My_LDAP'
     > > >                             ]
     > > > );
     > > >
     > > >
     > > > Set($ExternalServiceUsesSSLorTLS,    0);
     > > >
     > > >
     > > > Set($AutoCreateNonExternalUsers,    0);
     > > > Set($ExternalSettings,      {   # AN EXAMPLE DB SERVICE
     > > >
     > > >
     > > >                                 'My_LDAP'       =>  {
     > > >                                 'type'                    
      =>  'ldap',
     > > > 'server'                    =>  'exampler',
     > > >
     > > >                                 'user'                    
      =>  'user',
     > > >                                 'pass'                    =>
      'xxxxxx',
     > > >                                 'base'                    
      =>  'ou=Users,Groups,dc=example,dc=com,dc=mk',
     > > >                                 'net_ldap_args'            
    => [    version =>  3   ],
     > > >                                 'filter' =>
    '(sAMAccountName=%u)',
     > > >                                 'd_filter' =>
    '(&(objectCategory=person)(objectClass=user))',
     > > >                                 'attr_match_list'          
    => [    'Name',
     > > >                                                             
            'EmailAddress',
     > > >                                                             
            'RealName',
     > > > #                                                            
            'WorkPhone',
     > > > #                                                            
            'Address2'
     > > >                                                             
                            ],
     > > >                                 'attr_map'                
      =>  {   'Name' => 'sAMAccountName',
     > > >                                 'EmailAddress' => 'mail',
     > > >                                 'RealName' => 'cn',
     > > >                                 'Organization' =>
    'physicalDeliveryOfficeName',
     > > >                                                                 }
     > > >                                                     },
     > > >                                 }
     > > > );
     > > >
     > > >
     > > >
     > > >
     > > > thanks
     > > >
     > > > ---
     > > > http://mail.secureroot.com/ (http://mail.secureroot.com/)
    <http://mail.secureroot.com/%29> - free mailbox for hackers and geeks
     > >
     > >
     > > --
     > >
     > > Giuseppe Sollazzo
     > > Senior Systems Analyst
     > > Computing Services
     > > Information Services
     > > St. George's, University Of London
     > > Cranmer Terrace
     > > London SW17 0RE
     > >
     > > Email: gsollazz at sgul.ac.uk
     > > Direct Dial: +44 20 8725 5160
     > > Fax: +44 20 8725 3583
     > >
     > >
     > > ---
     > > http://mail.secureroot.com/ (http://mail.secureroot.com/)
    <http://mail.secureroot.com/%29> - free mailbox for hackers and geeks
     >
     >
     > --
     >
     > Giuseppe Sollazzo
     > Senior Systems Analyst
     > Computing Services
     > Information Services
     > St. George's, University Of London
     > Cranmer Terrace
     > London SW17 0RE
     >
     > Email: gsollazz at sgul.ac.uk
     > Direct Dial: +44 20 8725 5160
     > Fax: +44 20 8725 3583
     >
     >
     >
     >
     >
     >
     > _____________________________________________________________
     > ---
     > http://mail.secureroot.com/ (http://mail.secureroot.com/)
    <http://mail.secureroot.com/%29> - free mailbox for hackers and geeks


    -- 

    Giuseppe Sollazzo
    Senior Systems Analyst
    Computing Services
    Information Services
    St. George's, University Of London
    Cranmer Terrace
    London SW17 0RE

    Email: gsollazz at sgul.ac.uk
    Direct Dial: +44 20 8725 5160
    Fax: +44 20 8725 3583






    _____________________________________________________________
    ---
    http://mail.secureroot.com/ - free mailbox for hackers and geeks


-- 
Giuseppe Sollazzo
Senior Systems Analyst
Computing Services
Information Services
St. George's, University Of London
Cranmer Terrace
London SW17 0RE

Email: gsollazz at sgul.ac.uk
Direct Dial: +44 20 8725 5160
Fax: +44 20 8725 3583


------------------------------------------------------------------------
---
http://mail.secureroot.com/ - free mailbox for hackers and geeks



More information about the rt-users mailing list