<html>
<head>
<meta content="text/html; charset=windows-1252"
http-equiv="Content-Type">
</head>
<body bgcolor="#FFFFFF" text="#000000">
Johnathan,<br>
I used perl -d to traverse the execution of rtldapimport, and
found that the module uses the Name field; it automatically assumes
the Name field is one of the fields in the mapping. It does a test
on the LDAP->RT mapping, but only to determine if one exists, not
that it explicitly includes the Name field. I found code that
explicitly picked Name as a hash key from the RT field names to
query (and without quotes... *shudder*).<br>
<br>
I could be completely wrong about all of this, I'd love to be
corrected if Mr. Falcone (the author) has some free time.<br>
<br>
-Scott<br>
<br>
<br>
On 4/23/2012 2:25 PM, <a class="moz-txt-link-abbreviated" href="mailto:johnathan.bell@baker.edu">johnathan.bell@baker.edu</a> wrote:
<blockquote
cite="mid:CB2952AF-4E4F-4814-8ACD-08AE677B7E10@baker.edu"
type="cite">In our instance, it seems that the username is keyed
on email address (even though we've got only the 'Name' field as
the mapping for logins)… I'd check that. The main reason for this,
as I understand it, is that even though you may specify some other
field, RT still needs to have a way of interpreting this when
you've users replying to tickets via email--the email address is
the only thing the server has to go on.
<div><br>
</div>
<div>Then again, I may be way off base.</div>
<div><br>
</div>
<div>- Johnathan</div>
<div><br>
<div>
<div>
<div>On Apr 23, 2012, at 12:26 PM, Scott Pestana wrote:</div>
<br class="Apple-interchange-newline">
<blockquote type="cite">
<div>All,<br>
We are happy with LDAP Import, with the following
mapping:<br>
<br>
Set($LDAPMapping, { 'Name' => 'uid',<br>
'EmailAddress' => 'mail',<br>
'RealName' => 'cn',<br>
'ExternalAuthId' => 'uid',<br>
'Gecos' => 'gecos'<br>
}<br>
);<br>
<br>
We're trying to figure out though; which is the key
RT checks to see if users already exist? When running
in debug mode we get this output:<br>
<br>
Processing user spestana<br>
User spestana already exists as 494, skipping<br>
Imported 38/48 users<br>
<br>
But there's no way of knowing if that's the Name, or
the ExternalAuthId. Can you give us some insight here?
Right now, my inspection of the code has me feeling this
defaults to the first field listed by the LDAPMapping.<br>
<br>
-- <br>
N. Scott Pestana<br>
IT Infrastructure<br>
Linguamatics<br>
275 Grove Street, Suite 2-400<br>
Newton, MA 02466<br>
<br>
Tel: +1-774-571-7135<br>
<br>
US Tel: +1-617-674-3256<br>
UK Tel: 011-44-1223-421360<br>
UK Fax: 011-44-1223-421361<br>
Web: <a moz-do-not-send="true"
href="http://www.linguamatics.com">www.linguamatics.com</a><br>
<br>
</div>
</blockquote>
</div>
<br>
<div>
<span class="Apple-style-span" style="border-collapse:
separate; color: rgb(0, 0, 0); font-family: Helvetica;
font-style: normal; font-variant: normal; font-weight:
normal; letter-spacing: normal; line-height: normal;
orphans: 2; text-align: -webkit-auto; text-indent: 0px;
text-transform: none; white-space: normal; widows: 2;
word-spacing: 0px; -webkit-border-horizontal-spacing: 0px;
-webkit-border-vertical-spacing: 0px;
-webkit-text-decorations-in-effect: none;
-webkit-text-size-adjust: auto; -webkit-text-stroke-width:
0px; font-size: medium; ">--<br>
Johnathan Bell<br>
Internet System Administrator, Baker College<br>
Office Hours: 7A-4P Eastern, M-F</span>
</div>
<br>
</div>
</div>
</blockquote>
<br>
<div class="moz-signature">-- <br>
N. Scott Pestana<br>
IT Infrastructure<br>
Linguamatics<br>
275 Grove Street, Suite 2-400<br>
Newton, MA 02466<br>
<br>
Tel: +1-774-571-7135<br>
<br>
US Tel: +1-617-674-3256<br>
UK Tel: 011-44-1223-421360<br>
UK Fax: 011-44-1223-421361<br>
Web: <a class="moz-txt-link-abbreviated" href="http://www.linguamatics.com">www.linguamatics.com</a> <br>
<br>
</div>
</body>
</html>