<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">

<head>
<meta http-equiv=Content-Type content="text/html; charset=us-ascii">
<meta name=Generator content="Microsoft Word 12 (filtered medium)">
<style>
<!--
 /* Font Definitions */
 @font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page Section1
        {size:612.0pt 792.0pt;
        margin:72.0pt 72.0pt 72.0pt 72.0pt;}
div.Section1
        {page:Section1;}
-->
</style>
<!--[if gte mso 9]><xml>
 <o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
 <o:shapelayout v:ext="edit">
  <o:idmap v:ext="edit" data="1" />
 </o:shapelayout></xml><![endif]-->
</head>

<body lang=EN-AU link=blue vlink=purple>

<div class=Section1>

<p class=MsoNormal>I know this has appeared a lot on the list before, and I
have spent days searching the archives (and Google) before posting and nothing
I have found has worked so far.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>I have RT 3.8.4 running ExternalAuth0.08 on a OpenSuse 11.0
box.  Here is where things get weird. <o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Some of my users can e-mail RT, having never used/e-mailed
it before, and it works perfectly.  However another user, who also has
never used it, will send an e-mail and it will reject give the “User
creation failed in mailgateway: Could not set user info
(/var/srv/www/rt3/bin/../lib/RT/Interface/Email.pm:244)” error.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>If I goto Config -> Users -> create, and enter the
username of the user in the username field, then hit create it goes out and
does an LDAP lookup, gets all the correct info, fills in the field as I have
set.  Then as the user already exists it will accept e-mail from them without
issue.  The same also applies if the user logon to the self service
portal, this auto creates them just fine.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>It is very random.  On occasion I have had it not work
for a user time and time again, then magically without any changes to any
thing, it works.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Any help would be greatly welcomed as we want to this
operate mainly via e-mail, with the web only for last resort entry of tickets.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>The messages are delivered to sendmail on the opensuse box
via dns (i.e. <a href="mailto:queuename@rt.domain.internal">queuename@rt.domain.internal</a>),
from the Internal Exchange 2k7 servers.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Any suggestions are very welcomed.<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Here is the Ldap config out of my rt_siteconfig:<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>Set ($LdapExternalInfo, 1);<o:p></o:p></p>

<p class=MsoNormal>Set( @Plugins, qw(RT::Authen::ExternalAuth) );<o:p></o:p></p>

<p class=MsoNormal>Set($ExternalAuthPriority,  [   'My_LDAP' ]);<o:p></o:p></p>

<p class=MsoNormal>Set($ExternalInfoPriority,  [  
'My_LDAP'  ]);<o:p></o:p></p>

<p class=MsoNormal>Set($ExternalServiceUsesSSLorTLS,    0);<o:p></o:p></p>

<p class=MsoNormal>Set($AutoCreateNonExternalUsers,    1);<o:p></o:p></p>

<p class=MsoNormal>Set($ExternalSettings,     
{   # AN EXAMPLE DB SERVICE<o:p></o:p></p>

<p class=MsoNormal>                               
'My_LDAP'       =>  {   ##
GENERIC SECTION<o:p></o:p></p>

<p class=MsoNormal>                                                       
'type'                     
=>  'ldap',<o:p></o:p></p>

<p class=MsoNormal>                                                       
'server'                   
=>  '1.2.3.4',<o:p></o:p></p>

<p class=MsoNormal>                                                       
'user'                     
=>  'CN=something,CN=Users,DC=xxx,DC=yyyy',<o:p></o:p></p>

<p class=MsoNormal>                                                       
'pass'                   
=>  'xxxxx',<o:p></o:p></p>

<p class=MsoNormal>                                                       
'base'                     
=>  'dc=xxx,dc=yyyy',<o:p></o:p></p>

<p class=MsoNormal>                                                       
'filter'                   
=>  '(objectclass=*)',<o:p></o:p></p>

<p class=MsoNormal>                                                       
'd_filter'                 
=>  '(objectclass=FooBarBaz)',<o:p></o:p></p>

<p class=MsoNormal>                    
                                   'tls'                      
=>  0,<o:p></o:p></p>

<p class=MsoNormal>                                                       
'ssl_version'              
=>  3,<o:p></o:p></p>

<p class=MsoNormal>                                                       
'net_ldap_args'            
=> [    version =>  3   ],<o:p></o:p></p>

<p class=MsoNormal>                                                       
'attr_match_list'          
=> [ 'Name','EmailAddress', 'RealName'<o:p></o:p></p>

<p class=MsoNormal>                                                                                       
],<o:p></o:p></p>

<p class=MsoNormal>                         
                              'attr_map'                 
=>  {   'Name' => 'sAMAccountName',<o:p></o:p></p>

<p class=MsoNormal>                                                                                           
'EmailAddress' => 'mail',<o:p></o:p></p>

<p class=MsoNormal>                                           
                                                'Organization'
=> 'department',<o:p></o:p></p>

<p class=MsoNormal>                                                                                           
'RealName' => 'cn',<o:p></o:p></p>

<p class=MsoNormal>                                                               
                            'ExternalAuthId'
=> 'sAMAcccountName',<o:p></o:p></p>

<p class=MsoNormal>                                                                                           
'ExternalContactInfoId' => 'dn',<o:p></o:p></p>

<p class=MsoNormal>                                                               
                            'Gecos'
=> 'sAMAccountName',<o:p></o:p></p>

<p class=MsoNormal>                                                                                           
'Country' => 'company'<o:p></o:p></p>

<p class=MsoNormal>                                                                                                                                                                                   
<o:p></o:p></p>

<p class=MsoNormal>                                                                   
                    }<o:p></o:p></p>

<p class=MsoNormal>                                                   
}<o:p></o:p></p>

<p class=MsoNormal>                               
}<o:p></o:p></p>

<p class=MsoNormal>);<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal>1;<o:p></o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal><o:p> </o:p></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Cheers ... Ash <o:p></o:p></span></p>

<p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span
style='font-size:10.0pt;font-family:"Times New Roman","serif"'>Ashley Morrison,
MNet&SysAdmin MCSE MCTS CCNA<br>
Network Administrator<br>
St. Michael's College<br>
15 Mitton Ave<br>
Henley Beach, SA, 5022<br>
Ph: +61 8 8356 5966<br>
Internet: </span><a href="blocked::http://www.smc.sa.edu.au/"
title="blocked::http://www.smc.sa.edu.au/"><span style='font-size:10.0pt;
font-family:"Times New Roman","serif";color:blue'>www.smc.sa.edu.au</span></a><span
style='font-size:10.0pt;font-family:"Times New Roman","serif"'><o:p></o:p></span></p>

<p class=MsoNormal><span style='font-size:10.0pt;font-family:"Times New Roman","serif"'>SAGE-AU
Member<br>
</span><a href="blocked::http://www.sage-au.org.au/"
title="blocked::http://www.sage-au.org.au/"><span style='font-size:10.0pt;
font-family:"Times New Roman","serif";color:blue'>www.sage-au.org.au</span></a><o:p></o:p></p>

</div>

</body>

</html>