Using LookupExternalUserInfo

Hi there.

I’m trying to activate the ‘SenderMustExistInExternalDatabase’ feature w/o
success.

In RT_SiteConfig.pm I have…
Set($SenderMustExistInExternalDatabase , 1);
sub LookupExternalUserInfo {
my $self = shift;
my $EmailAddress = shift;
my $RealName = shift;

my $FoundInExternalDatabase = 0;
my %params;

#Name is the RT username you want to use for this user.
$params{‘Name’} = $EmailAddress;
$params{‘EmailAddress’} = $EmailAddress;
$params{‘RealName’} = $RealName;
return ($FoundInExternalDatabase, %params);
}

(note that for testing purposes I always want to deny permission to create
users).

But RT keeps creating new users from new e-mail ticket requests.

What I am missing?

Greetings.
Enrique Iglesias Rodriguez

I planned to look at this feature in some weeks. It is not implemented
in a correct way yet.
Also earlier.
Can you tell me how you activated the lookup for external infos?

Samuel-----Original Message-----
From: Enrique Iglesias Rodriguez [mailto:enrique@kaos.es]
Sent: Saturday,18 October,2003 20:40
To: rt-users@fsck.com

Hi there.

I’m trying to activate the ‘SenderMustExistInExternalDatabase’ feature
w/o success.

In RT_SiteConfig.pm I have…
Set($SenderMustExistInExternalDatabase , 1); sub LookupExternalUserInfo
{
my $self = shift;
my $EmailAddress = shift;
my $RealName = shift;

my $FoundInExternalDatabase = 0;
my %params;

#Name is the RT username you want to use for this user.
$params{‘Name’} = $EmailAddress;
$params{‘EmailAddress’} = $EmailAddress;
$params{‘RealName’} = $RealName;
return ($FoundInExternalDatabase, %params); }

(note that for testing purposes I always want to deny permission to
create users).

But RT keeps creating new users from new e-mail ticket requests.

What I am missing?

Greetings.
Enrique Iglesias Rodriguez

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm

I planned to look at this feature in some weeks. It is not implemented
in a correct way yet.
Also earlier.
Can you tell me how you activated the lookup for external infos?

I didn’t. I planned to get the external data into LookupExternalUserInfo() but
I need to get this feature running before that.
Enrique Iglesias Rodriguez

BTW… in the case this feature were implemented… should be RT_SiteConfig.pm
I wrote the correct place to define the LookupExternalUserInfo function?

I can try to patch it.
Enrique Iglesias Rodriguez

Hi there.

I’m trying to activate the ‘SenderMustExistInExternalDatabase’ feature w/o
success.

In RT_SiteConfig.pm I have…
Set($SenderMustExistInExternalDatabase , 1);
sub LookupExternalUserInfo {

In RT2, you dropped subroutines into the configuration file. in RT3, you
use a _Local file to overried the system subroutine that does the same
thing.
Request Tracker... So much more than a help desk — Best Practical Solutions – Trouble Ticketing. Free.

In RT2, you dropped subroutines into the configuration file. in RT3, you
use a _Local file to overried the system subroutine that does the same
thing.

I see.

Anyway, no matter where I change that… in fact, I edited EmailParser.pm to
deny the creation of new users at all w/o success:

747c747
< my $FoundInExternalDatabase = 1;

my $FoundInExternalDatabase = 0;
751,753c751,753
< $params{‘Name’} = $EmailAddress;
< $params{‘EmailAddress’} = $EmailAddress;
< $params{‘RealName’} = $RealName;
$params{‘Name’} = ‘’;
$params{‘EmailAddress’} = ‘’;
$params{‘RealName’} = ‘’;

And RT keeps creating a new user and the corresponding ticket on new e-mail
requests.

Enrique Iglesias Rodriguez

The creation of tickets by mail is limited in
Interface/Email/Auth/Mail.pm or something like that.
If you want that only existing users can submit tickets by mail you just
need to insert somewhere in the middle, before it says that it is going
to check it can create a new user.
But I think I posted something some time ago.

SamuelFrom: Enrique Iglesias Rodriguez [mailto:enrique@kaos.es]
Sent: Tuesday,21 October,2003 11:28
To: Jesse Vincent
Cc: rt-users@fsck.com

In RT2, you dropped subroutines into the configuration file. in RT3,
you use a _Local file to overried the system subroutine that does the
same thing.

I see.

Anyway, no matter where I change that… in fact, I edited
EmailParser.pm to deny the creation of new users at all w/o success:

747c747
< my $FoundInExternalDatabase = 1;

my $FoundInExternalDatabase = 0;
751,753c751,753
< $params{‘Name’} = $EmailAddress;
< $params{‘EmailAddress’} = $EmailAddress;
< $params{‘RealName’} = $RealName;
$params{‘Name’} = ‘’;
$params{‘EmailAddress’} = ‘’;
$params{‘RealName’} = ‘’;

And RT keeps creating a new user and the corresponding ticket on new
e-mail requests.

Enrique Iglesias Rodriguez

rt-users mailing list
rt-users@lists.fsck.com
http://lists.fsck.com/mailman/listinfo/rt-users

Have you read the FAQ? The RT FAQ Manager lives at http://fsck.com/rtfm