<div dir="ltr">Correct, we don't want any extra spaces or weird DNs with null in it so I will create 2 different ones with if/then/else,<div><br></div><div>JASON</div></div><div class="gmail_extra"><br><div class="gmail_quote">On Mon, Jun 22, 2015 at 10:21 AM, Ivan Noris <span dir="ltr"><<a href="mailto:ivan.noris@evolveum.com" target="_blank">ivan.noris@evolveum.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi Jason,<br>
<div><div class="h5"><br>
On 06/22/2015 05:11 PM, Jason Everling wrote:<br>
> I did a dry run this weekend, and glad Ivan had mentioned it, over<br>
> 2000 accounts would have been modified/changed.<br>
><br>
> I failed to remember the middle initial that active directory uses in<br>
> the DN for the account, not everyone has one or used.<br>
><br>
> So in midpoint AD resource config I added the intials attributes<br>
> mapped to additionalName,<br>
><br>
> Question though,<br>
><br>
> If I change the DN build in the resource config to<br>
><br>
> <code><br>
> 'cn='+givenName+' '+additionalName+'<br>
> '+familyName+iterationToken+','+organization+''<br>
> </code><br>
><br>
> Will this work also for users without or null value for<br>
> "additionalName" ? Or do I need to check for value in additionalName<br>
> first then return 2 different codes for one with and one without<br>
> additionalName?<br>
<br>
</div></div>Just a very wil guess: if additionalValue is null, you get two spaces<br>
between givenName and familyName, right? That's perhaps not what you<br>
need. Also I'm not sure, but in some circumstances you could get<br>
"cn=Peter null Smith,..." DN.<br>
<br>
So, if/then/else will be probably better.<br>
<span class="HOEnZb"><font color="#888888"><br>
Ivan<br>
<br>
--<br>
Ing. Ivan Noris<br>
Senior Identity Management Engineer & IDM Architect<br>
<a href="http://evolveum.com" rel="noreferrer" target="_blank">evolveum.com</a> <a href="http://evolveum.com/blog/" rel="noreferrer" target="_blank">evolveum.com/blog/</a><br>
___________________________________________________<br>
"Semper Id(e)M Vix."<br>
<br>
_______________________________________________<br>
midPoint mailing list<br>
<a href="mailto:midPoint@lists.evolveum.com">midPoint@lists.evolveum.com</a><br>
<a href="http://lists.evolveum.com/mailman/listinfo/midpoint" rel="noreferrer" target="_blank">http://lists.evolveum.com/mailman/listinfo/midpoint</a><br>
</font></span></blockquote></div><br></div>
<br>
<font size="2"><br><br>CONFIDENTIALITY NOTICE:<br>This e-mail together with any attachments is proprietary and confidential; intended for only the recipient(s) named above and may contain information that is privileged. You should not retain, copy or use this e-mail or any attachments for any purpose, or disclose all or any part of the contents to any person. Any views or opinions expressed in this e-mail are those of the author and do not represent those of the Baptist School of Health Professions. If you have received this e-mail in error, or are not the named recipient(s), you are hereby notified that any review, dissemination, distribution or copying of this communication is prohibited by the sender and to do so might constitute a violation of the Electronic Communications Privacy Act, 18 U.S.C. section 2510-2521. Please immediately notify the sender and delete this e-mail and any attachments from your computer. </font><br>