Is there a way to tell ExternalAuth to only Authenticate and forget about trying to CanonicalizeUserInfo? <div><br></div><div>I create tickets through an external REST API and create the user at the same time as the ticket. We have users that are in AD and do not have an email address, I pull their address from a database.</div>
<div><br></div><div>Here is the relevant snippet from the log file:</div><div><br></div><div><div>[Thu Feb 16 00:57:18 2012] [debug]: RT::Authen::ExternalAuth::CanonicalizeUserInfo called by RT::Authen::ExternalAuth /usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm 668 with: Disabled: , EmailAddress: <a href="mailto:user@hotmail.com" target="_blank">user@hotmail.com</a>, Name: jdoe, Privileged: , RealName: John Doe (/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:565)</div>
<div>[Thu Feb 16 00:57:18 2012] [warning]: Use of uninitialized value $_[1] in join or string at /usr/share/perl5/Log/Dispatch.pm line 21. (/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:573)</div>
<div>[Thu Feb 16 00:57:18 2012] [debug]: Attempting to get user info using this external service: (/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:573)</div><div>[Thu Feb 16 00:57:18 2012] [info]: RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Disabled: , EmailAddress: <a href="mailto:jdoe@hotmail.com" target="_blank">jdoe@hotmail.com</a>, Name: jdoe, Privileged: , RealName: John Doe (/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:651)</div>
<div>[Thu Feb 16 00:57:19 2012] [debug]: Got a resolved(inactive) ticket with undefined resolved date. Setting to now. (/usr/share/request-tracker3.8/lib/RT/Ticket_Overlay.pm:361)</div><div>[Thu Feb 16 00:57:19 2012] [error]: Unable to parse an email address from jdoe: Couldn't find row (/usr/share/request-tracker3.8/lib/RT/EmailParser.p</div>
</div><div><br></div><div><br></div><div><div><div>###################################</div><div># ExternalAuth Configuration</div><div>###################################</div><div><br></div><div>Set ( $ExternalAuthPriority, [ 'GFU_LDAP' ] );</div>
<div><br></div><div>#Set ( $ExternalInfoPriority, [ 'GFU_LDAP' ] );</div><div><br></div><div>Set($ExternalServiceUsesSSLorTLS, 0);</div><div><br></div><div>Set($AutoCreateNonExternalUsers, 0);</div><div><br></div>
<div>Set($ExternalSettings, {</div><div>'GFU_LDAP' => {</div><div>'type' => 'ldap',</div><div>'server' => '<a href="http://server.georgefox.edu" target="_blank">server.georgefox.edu</a>',</div>
<div>'user' => 'CN=User,OU=Group,DC=Base,DC=Base,DC=edu',</div><div>'pass' => 'Password',</div><div>'base' => 'DC=Group,DC=Base,DC=edu',</div>
<div>'filter' => '(objectClass=user)',</div><div>'d_filter' => '(objectClass=Doesntexist)',</div><div>'tls' => 0,</div>
<div>'ssl_version' => 3,</div><div>'net_ldap_args' => [ version => 3, port => 636 ],</div><div>'group' => 'CN=User,OU=Group,DC=Base,DC=Base,DC=edu',</div>
<div>'group_attr' => 'member',</div><div>'attr_match_list' => ['Name',],</div><div>'attr_map' => {'Name' => 'sAMAccountName',</div>
<div> 'EmailAddress' => 'mail',</div><div> 'ExternalAuthId' => 'sAMAccountName',</div><div> 'Gecos' => 'sAMAccountName',</div>
<div> }</div><div>}</div><div>}</div><div>);</div></div></div><div><br></div><div>Before I commended out ExternalInfoPriority, this is what was in the log file:</div><div><br></div><div><div>
[Wed Feb 15 23:28:49 2012] [debug]: RT::Authen::ExternalAuth::CanonicalizeUserInfo called by RT::Authen::ExternalAuth /usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm 668 with: Comments: Autocreated when added as a watcher, Disabled: , EmailAddress: , Name: , Privileged: , RealName: jdoe (/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:565)</div>
<div>[Wed Feb 15 23:28:49 2012] [debug]: Attempting to get user info using this external service: GFU_LDAP (/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:573)</div><div>
[Wed Feb 15 23:28:49 2012] [debug]: Attempting to use this canonicalization key: Name (/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:587)</div>
<div>[Wed Feb 15 23:28:49 2012] [debug]: This attribute ( Name ) is null or incorrectly defined in the attr_map for this service ( GFU_LDAP ) (/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:589)</div>
<div>[Wed Feb 15 23:28:49 2012] [info]: RT::Authen::ExternalAuth::CanonicalizeUserInfo returning Comments: Autocreated when added as a watcher, Disabled: , EmailAddress: , Name: , Privileged: , RealName: jdoe (/usr/local/share/request-tracker3.8/plugins/RT-Authen-ExternalAuth/lib/RT/Authen/ExternalAuth.pm:651)</div>
<div>[Wed Feb 15 23:28:54 2012] [crit]: Failed to create user : Could not set user info (/usr/share/request-tracker3.8/lib/RT/User_Overlay.pm:513)</div></div><div><br></div><div>=+=+=+=+=+=+=+=+=+<br>Ryan Backman<br>Programmer / Analyst<br>
George Fox University<br><a href="tel:503.554.2576" value="+15035542576" target="_blank">503.554.2576</a><br>=+=+=+=+=+=+=+=+=+<br>
</div>