[rt-users] Failed use LDAP service

nast linux nastlinux at gmail.com
Wed Apr 22 02:50:08 EDT 2009


*Dear All,

I failed use LDAP service, I already done steps below:
*
*1. Install RT-Authen-ExternalAuth*
*2. Uncomment Set(@Plugins,(qw(RT::Authen::ExternAuth))); on
/opt/rt3/etc/RT_SiteConfig.pm
*
*3. cp
/opt/rt3/local/plugins/RT-Authen-ExternalAuth/html/Callbacks/ExternalAuth/autohandler/Auth
/opt/rt3/local/html/Callbacks/ExternalAuth/autohandler/Auth*

*4. apply the following patch to
User_Vendor<http://wiki.bestpractical.com/view/User_Vendor>.pm:
*

--- local/lib/RT/User_Vendor<http://wiki.bestpractical.com/view/User_Vendor>.pm~
2008-04-09 10:40:44.000000000 +0200 +++
./local/lib/RT/User_Vendor<http://wiki.bestpractical.com/view/User_Vendor>.pm
2008-08-04 17:46:32.000000000 +0200 @@ -348,7 +348,7 @@ return (undef); }

- if ( $self->PrincipalObj
<http://wiki.bestpractical.com/view/PrincipalObj>->Disabled
) { + if ( $self->PrincipalObj<http://wiki.bestpractical.com/view/PrincipalObj>and
$self->
PrincipalObj <http://wiki.bestpractical.com/view/PrincipalObj>->Disabled ) {
$RT::Logger->info("Disabled user " . $self->Name . " tried to log in" );
return (undef); -->

*so, recently file User_Vendor.pm is like below:*
no warnings qw(redefine);
use strict;
use RT::Authen::ExternalAuth;

# {{{ sub CanonicalizeUserInfo

=head2 CanonicalizeUserInfo HASHREF

Get all ExternalDB attrs listed in $RT::ExternalDBAttrMap and put them into
the hash referred to by HASHREF.

returns true (1) if ExternalDB lookup was successful, false (undef)
in all other cases.

=cut

sub CanonicalizeUserInfo {
    my $self = shift;
    my $args = shift;
    return(RT::Authen::ExternalAuth::CanonicalizeUserInfo($self,$args));
}
# }}}

--- local/lib/RT/User_Vendor.pm~ 2008-04-09 10:40:44.000000000 +0200 +++
./local/lib/RT/User_Vendor.pm 2008-08-04 17:46:32.000000000 +0200 @@ -348,7
+348,7 @@ return (undef); }

- if ( $self->PrincipalObj->Disabled ) { + if ( $self->PrincipalObj and
$self->PrincipalObj->Disabled ) { $RT::Logger->info("Disabled user " .
$self->Name . " tried to log in" ); return (undef); -->

1;

*5. Restart apache2
*
*But, I still can not login by user on active directory.

What should I do?

Thanks,
ns*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bestpractical.com/pipermail/rt-users/attachments/20090422/f91930c5/attachment.htm>


More information about the rt-users mailing list