Hi Sebastien and everybody,
I realized that my previous email was a little involved, but it
basically boils down to two fundamental questions:
1. Is there any limitation on the attributes that I can choose as
pivot? What I see is that using "mail" do work, while using
"sAMAccountName" doesn't, but I dont' understand why.
2. How can I enable debug output of SQL generated by iBATIS?
Thanks a lot for any help
-Luca
On 29/06/2012 15:58, Luca Azzalini wrote:
> Hi Sebastien
>
> thanks a lot for your quick feedback.
>
> The configuration you suggested didn't work for me at first attempt. I
> had to change:
>
> <mainIdentifier>"mail="+srcBean.getDatasetFirstValueById("mail") +
> ",ou=People,dc=lsc-project,dc=org"</mainIdentifier>
>
> to
>
> <mainIdentifier>srcBean.getMainIdentifier()</mainIdentifier>
>
> With this modification, it works like a charm!
>
> However, using mail as the pivot attribute doesn't fit my needs. I
> changed the configuration in order to use sAMAccountName, in a
> consistently way. But after that I got the wrong behaviour I described
> in my first email.
>
> Then I tried with pivot=cn and it works! But obviously cn cannot be
> used in a real scenario.
>
> The other options left would be to use objectGUID or objectSid, but
> I'm facing problem with those too (encoding related).
>
> I think I could debug the problems with sAMAccountName if I could see
> the SQL generated by iBATIS. I tried to follow some instruction I
> found in public forums (basically setting some log4j.properties file
> in the classpath) but that didn't work.
>
> Do you have any clue on why using sAMAccountName gives these problems?
> Can you tell me how to see the generated SQL?
>
> Thanks again!
>
> -Luca
>
>
> ______________________________________________________________________
> Disclaimer:This email and any attachments are sent in strictest
> confidence for the sole use of the addressee and may contain legally
> privileged, confidential, and proprietary data. If you are not the
> intended recipient, please advise the sender by replying promptly to
> this email and then delete and destroy this email and any attachments
> without any further use, copying or forwarding
> _______________________________________________________________
> Ldap Synchronization Connector (LSC) - http://lsc-project.org
>
> lsc-users mailing list
> [email protected]
> http://lists.lsc-project.org/listinfo/lsc-users
>
--
*Luca Azzalini *| Senior Consultant | NTT DATA Italia
Viale della Repubblica, 12, 31020 Villorba (TV) | Tel: +39 0422 2511 |
Fax: +39 0422 251 251 | [email protected] | Learn more at
www.nttdata.com/it
______________________________________________________________________
Disclaimer:This email and any attachments are sent in strictest confidence for
the sole use of the addressee and may contain legally privileged, confidential,
and proprietary data. If you are not the intended recipient, please advise the
sender by replying promptly to this email and then delete and destroy this
email and any attachments without any further use, copying or forwarding
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users