Changing autogeneratet username

Hello

I want to change the name of new users generatet by
request over rt-mailgate from "username@domain.xxx"
to “username”.

can someone tell me where and how i have to modify the
code? I think it should be a small modification, but i
can’t find the right place for it.

thank you.

  • Rene Weiss

Your username@domain.xxx is the e-mail address of the user.
You should look at path to rt /RT/Interface/Email/Auth/MailFrom.pm
How do you authenticate your users?
If you do it by LDAP you can import the userername by LDAP…

Samuel-----Original Message-----
From: Rene Weiss [mailto:weissre@inf.ethz.ch]
Sent: Thursday,11 September,2003 16:17
To: rt-users@lists.fsck.com

Hello

I want to change the name of new users generatet by request over
rt-mailgate from “username@domain.xxx”
to “username”.

can someone tell me where and how i have to modify the code? I think it
should be a small modification, but i can’t find the right place for it.

thank you.

  • Rene Weiss

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

Senoner Samuel wrote:

Your username@domain.xxx is the e-mail address of the user.
You should look at path to rt /RT/Interface/Email/Auth/MailFrom.pm

Thank you, i think that i have now found the right place for the
modification.

How do you authenticate your users?

My plans are: RT → WebExternalAuth → Auth_Pam → …

The usernames in our Systems are identical with the
username part of the email addresses.

Because of this i would like to rewrite “username@at.our.domain”
to “username” so that with the first request the correct RT user will
be generated and the requestor can login and view the status of his
request(s).

If you do it by LDAP you can import the userername by LDAP…

How complicated is it?
Do i have to modify the code or just to set some variables?

Mit freundlichen Gr�ssen
Ren� Weiss

LDAP is very fine, so you can import e-mail addres, username, description and phone number and so on…
I have an Active directory, where I import my data.
Since there are some unclean subs you have to change a couple of places, you have to insert a file in /interfaces/email/auth, a Local of EmailParser and insert the auth in the SiteConfig. This for Mail
For authomatic user creation by login you have to change autohandler and add a use to Mason/request.pm

Are you interested?

I also do my apache authentification with LDAP.

SamuelFrom: Rene Weiss [mailto:weissre@inf.ethz.ch]
Sent: Friday,12 September,2003 09:54
To: rt-users@lists.fsck.com

Senoner Samuel wrote:

Your username@domain.xxx is the e-mail address of the user.
You should look at path to rt /RT/Interface/Email/Auth/MailFrom.pm

Thank you, i think that i have now found the right place for the modification.

How do you authenticate your users?

My plans are: RT → WebExternalAuth → Auth_Pam → …

The usernames in our Systems are identical with the username part of the email addresses.

Because of this i would like to rewrite “username@at.our.domain”
to “username” so that with the first request the correct RT user will be generated and the requestor can login and view the status of his request(s).

If you do it by LDAP you can import the userername by LDAP…

How complicated is it?
Do i have to modify the code or just to set some variables?

Mit freundlichen Grüssen
René Weiss

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