[rt-users] RT-2.0.10 : rt-mailgate with external data source.
Christian Gilmore
cgilmore at tivoli.com
Wed Jan 16 15:41:31 EST 2002
Kris,
The routine in config.pm is just a place-holder. You need to insert code
that verifies the arguments with the external datasource. For instance, if
your data source is LDAP, you could use the contributed code located at
http://www.fsck.com/pub/rt/contrib/2.0/ called external-users.
The code supplied as of 2.0.9 at least does have a bug against it,
documented at http://fsck.com/rt2/Ticket/Display.html?id=979. If you look
at the last transaction, it contains a patch to correct the bug.
Regards,
Christian
-----------------
Christian Gilmore
Team Lead
Web Infrastructure & Tools
IBM Software Group
> -----Original Message-----
> From: rt-users-admin at lists.fsck.com
> [mailto:rt-users-admin at lists.fsck.com]On Behalf Of Kristopher Lalletti
> Sent: Wednesday, January 16, 2002 11:39 AM
> To: rt-users at lists.fsck.com
> Subject: [rt-users] RT-2.0.10 : rt-mailgate with external data source.
>
>
> I'm trying to get rt-mailgate to work with an external data source
> defined in my config.pm.
>
> Here's what I have, notice that I'm using the stock configuration, and
> sending email from a valid email address, and I still get the
> error "RT
> couldn't find requestor via its external database lookup".
>
>
> One question, just to make sure I have my variables right..
> $params{'Name'} is the UserName right?
> $params{'EmailAddress'} is the Email field.
> $params{'RealName'} is the RealName field.
>
> So, in principle, if I hardcode my %params with some static
> information
> like.
> $params{'Name'} = "kris";
> $params{'EmailAddress'} = "kris\@eclipseci.com";
> $params{'RealName'} = "Kristopher Lalletti";
>
> It should recognize me as when I login into the gui with the
> userid kris
> and my secret password... Right?
>
>
> Here's a part of my config.pm:
>
> $LookupSenderInExternalDatabase = 1;
> $SenderMustExistInExternalDatabase = 1;
>
> sub LookupExternalUserInfo {
> my ($EmailAddress, $RealName) = @_;
>
> my $FoundInExternalDatabase = 1;
> my %params = {};
>
> #Name is the RT username you want to use for this user.
> $params{'Name'} = $EmailAddress;
> $params{'EmailAddress'} = $EmailAddress;
> $params{'RealName'} = $RealName;
>
> # See RT's contributed code for examples.
> # http://www.fsck.com/pub/rt/contrib/
> return ($FoundInExternalDatabase, %params);
> }
>
>
> _______________________________________________
> rt-users mailing list
> rt-users at lists.fsck.com
> http://lists.fsck.com/mailman/listinfo/rt-users
>
More information about the rt-users
mailing list