<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Auto create users documentation</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.3790.259" name=GENERATOR></HEAD>
<BODY>
<DIV dir=ltr align=left><SPAN class=182503018-05082005><FONT face=Arial
color=#0000ff size=2>Brian,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=182503018-05082005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=182503018-05082005><FONT face=Arial
color=#0000ff size=2>Change Priviledge => 1</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=182503018-05082005><FONT face=Arial
color=#0000ff size=2></FONT></SPAN> </DIV>
<DIV dir=ltr align=left><SPAN class=182503018-05082005><FONT face=Arial
color=#0000ff size=2>Thanks,</FONT></SPAN></DIV>
<DIV dir=ltr align=left><SPAN class=182503018-05082005><FONT face=Arial
color=#0000ff size=2><BR>Kevin</FONT></SPAN></DIV><BR>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left>
<HR tabIndex=-1>
<FONT face=Tahoma size=2><B>From:</B> rt-users-bounces@lists.bestpractical.com
[mailto:rt-users-bounces@lists.bestpractical.com] <B>On Behalf Of </B>Bryant
Taylor<BR><B>Sent:</B> Friday, August 05, 2005 10:42 AM<BR><B>To:</B>
rt-users@lists.bestpractical.com<BR><B>Subject:</B> [rt-users] Auto create users
documentation<BR></FONT><BR></DIV>
<DIV></DIV><!-- Converted from text/rtf format -->
<P><FONT face=Arial size=2>HI All,</FONT> </P><BR>
<P><FONT face=Arial size=2>I am using the most current version of rt 3.4 on
centos 4. Everything is working great, but now I need figure out how to get new
users created via email with a password assigned to their logon ID which I
believe is just the from: email address.</FONT></P>
<P><FONT face=Arial size=2>I have been all over the rt-users mailing list and
haven't found any useful info.. Other than trying to edit
rt3/RT/Interface/Email.pm.</FONT></P>
<P><FONT face=Arial size=2>Here is what I have currently.</FONT> </P><BR>
<P><FONT face=Arial size=2>sub CreateUser {</FONT> <BR><FONT face=Arial
size=2> my ($Username, $Address, $Name, $ErrorsTo, $entity) =
@_;</FONT> <BR><FONT face=Arial size=2> my $NewUser =
RT::User->new($RT::SystemUser);</FONT> </P>
<P><FONT face=Arial size=2> my ($Val, $Message) =</FONT>
<BR><FONT face=Arial size=2>
$NewUser->Create(Name => ($Username || $Address),</FONT> <BR><FONT
face=Arial
size=2>
EmailAddress => $Address,</FONT> <BR><FONT face=Arial
size=2>
RealName => $Name,</FONT> <BR><FONT face=Arial
size=2>
Password => $Address, ( this is what I added). </FONT><BR><FONT
face=Arial
size=2>
Privileged => 0,</FONT> <BR><FONT face=Arial
size=2>
Comments => 'Autocreated on ticket submission'</FONT> </P>
<P><FONT face=Arial size=2>After sending an email from a test account, a ticket
is created, and auto-response is sent, but when I try to logon with that newly
created account, I can't.</FONT></P>
<P><FONT face=Arial size=2>I looked into the privlidged users area in RT but
really haven't found out where or why this isn't working.</FONT> </P>
<P><FONT face=Arial size=2>Any help would be great.</FONT> </P>
<P><FONT face=Arial size=2>Thanks,</FONT> </P>
<P><FONT face=Arial size=2>Bryant</FONT> </P></BODY></HTML>