Issue #50 has been updated by Jonathan Clarke.

Jonathan Clarke wrote:
> Clément Oudot wrote:
> > Jonathan Clarke wrote:
> > > I think this could be achieved using extended filters (RFC2254). Based on 
> > > your original example, you could adapt your dstService.filterAll to 
> > > contain several filters like this: (ou:dn:=admins):
> >
> > This will not work with AD. Extended filters are great, but not supported 
> > by all directories...
> 
> Oh. I came across this, which indicates that AD does at least implement some 
> part of extended filters: 
> http://msdn.microsoft.com/en-us/library/aa746475%28VS.85%29.aspx
> 
> I will do some tests to see how DN matching works.

Indeed, DN matching seems just to not work with my AD 2003. The syntax is 
recognized, but just returns no results... Lovely :-/

In the meantime, I had an idea to implement multiple search bases in LSC:
* getListPivots() returns a List of attributes/values, the list defined in 
dstService.pivotAttrs.
* If using multiple bases, we could just add a pseudo-attribute to this list 
(something like x-lsc-searchBase) containing the searchBase we used to find a 
given entry.
* Then, when calling getBean() for this entry, we reuse the x-lsc-searchBase 
pseudo-attribute to set the search base to find the original entry...

Any comments?
----------------------------------------
Feature #50: Manage several basedn to synchronize several branches
http://tools.lsc-project.org/issues/50

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


Imagine you have this DIT a source directory for LSC:

<pre>
- dc=example,dc=com
  - ou=organization
    - ou=admins
    - ou=archives
    - ou=users
</pre>

And you don't want to synchronize the ou=archives branch.

It would be nice to put several values for 
lsc.tasks.inetOrgPerson.dstService.baseDn? LSC would do a search for each 
value, so we can manage several branches.


-- 
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
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-dev mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-dev

Reply via email to