Requesttracker - autoadd usernames from ldap

From Skytech
Revision as of 10:06, 31 January 2012 by Martin (talk | contribs) (Created page with "Category:Linux = Autoadd LDAP usernames from autocreated tickets = Find this file: <pre> /usr/share/request-tracker4/lib/RT/Interface/Email.pm </pre> Before the <code> my (…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search


Autoadd LDAP usernames from autocreated tickets

Find this file:

/usr/share/request-tracker4/lib/RT/Interface/Email.pm

Before the my ( $Val, $Message ) = $NewUser->Create( add something like (you of course need to decide/alter the if statement regarding domainname):

## Hack to get correct LDAP usernames into DB (only on emails ending with @<domain>)
if ($Address =~ /\@<domain>/i)
{
    $RT::Logger->debug("unity3d :: Updating old user [ $Address ] to .. ");
    ($Username) = $Address =~ m/(.*)@/;
    $RT::Logger->debug("[ $Username ] \n");
}
## End hack