Issue #47 has been updated by J?r?me Schell.

I have a similar problem in a Bean with the method getDistinguishName().

Example:
<pre>
public static void mapMyAttribute(InetOrgPerson soc, IBean doc, String value) {
  String userDn = soc.getDistinguishName();
  ...
  LOGGER.debug("Handling " + userDn);
  ...
}
</pre>

This displays:
<pre>
Handling null
</pre>
Don't know if the problem is related or not.
Tested with lsc-core from 2009.06.02.
----------------------------------------
Bug #47: srcBean.getDistinguishName does not works like expected
http://tools.lsc-project.org/issues/show/47

Author: Cl?ment Oudot
Status: Feedback
Priority: Normal
Assigned to: Cl?ment Oudot
Category: Core
Target version: 1.1.0


Hello,

I try to use this to select branches :

<pre>
lsc.tasks.inetOrgPerson.condition.create = 
srcBean.getDistinguishName().toLowerCase().matches(".*((ou=users)|(ou=admin)).*")
</pre>

but the result of srcBean.getDistinguishName() is the generated DN and not the 
orginal DN, so the test does not work.

But when looking in log, we see the wanted DN because the logger use "id".


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.lsc-project.org/pipermail/lsc-dev/attachments/20090602/e486a556/attachment.htm>

Reply via email to