Hello All ,
I am trying to sync Apache DS Ldap server with my application , for this
implemented plugin destination service .
I have implemented the program on top of your embeddable sample example [1]
As per the below link for Event based Ldap source[2] if i modify something
in the LDAP server it should sync automatically based on the events but it
is not happening.
When i am running the program first time it will try to sync but after the
interval when it runs again it is not syncing and also sync is not
happening based on the events .
I am not sure how to use Event based LDAP source and LDAP Sync (RFC 4533)
with Apache DS
Please follow the logs , first time it is trying to sync but next time when
it run after the time interval sync is not happening.
[1] https://lsc-project.org/svn/lsc-samples/lsc-embeddable-sample/
[2]
http://lsc-project.org/wiki/documentation/latest/configuration/service/sourceasyncldap
Please help me in writing the event based ldap syncing .
please let me know if you need any other information .
*Thanks & Regards,*
*Arsad Ali*
On Sat, Oct 29, 2016 at 3:30 PM, <[email protected]>
wrote:
> Send lsc-users mailing list submissions to
> [email protected]
>
> To subscribe or unsubscribe via the World Wide Web, visit
> http://lists.lsc-project.org/listinfo/lsc-users
> or, via email, send a message with subject or body 'help' to
> [email protected]
>
> You can reach the person managing the list at
> [email protected]
>
> When replying, please edit your Subject line so it is more specific
> than "Re: Contents of lsc-users digest..."
>
>
> Today's Topics:
>
> 1. Need help in Event based LDAP source service (Arsad Ali)
> 2. Re: Need help in Event based LDAP source service
> (S?bastien Bahloul)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Sat, 29 Oct 2016 12:51:22 +0530
> From: Arsad Ali <[email protected]>
> Subject: [lsc-users] Need help in Event based LDAP source service
> To: [email protected]
> Message-ID:
> <CACUcTegvF2_b3xAtVighusXDbJW3S3n5CWGO09FO9
> [email protected]>
> Content-Type: text/plain; charset="utf-8"
>
> > Hello All,
> > I am not sure how to use Event based LDAP source as below is my
> configuration
> >
> > <asyncLdapSourceService>
> > <name>src-ldap-service</name>
> > <connection reference="src-ldap"/>
> > <baseDn>ou=Sample,dc=lsc-project,dc=org</baseDn>
> > <pivotAttributes>
> > <string>mail</string>
> > </pivotAttributes>
> > <fetchedAttributes>
> > <string>description</string>
> > <string>cn</string>
> > <string>sn</string>
> > <string>userPassword</string>
> > <string>objectClass</string>
> > <string>mail</string>
> > <string>carLicense</string>
> > <string>uid</string>
> > </fetchedAttributes>
> >
> > <getAllFilter>(objectClass=inetorgperson)</getAllFilter>
> >
> <getOneFilter>(&(objectClass=inetorgperson)(
> mail={mail}))</getOneFilter>
> >
> <synchronizingAllWhenStarting>false</synchronizingAllWhenStarting>
> > <serverType>ApacheDS</serverType>
> >
> > </asyncLdapSourceService>
> >
> > I am using plugin destination service . Sync is not happening when doingt
> any modification in the LDAP server .Not sure which plugin to use .
> > Please help me to resolve this or point me to any example code for event
> based ldap source .
> >
> > Thanks in advance .
> >
> > Thanks & Regards,
> >
> > Arsad Ali
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.lsc-project.org/pipermail/lsc-users/
> attachments/20161029/a38bbc47/attachment.html>
>
> ------------------------------
>
> Message: 2
> Date: Sat, 29 Oct 2016 10:44:21 +0200
> From: S?bastien Bahloul <[email protected]>
> Subject: Re: [lsc-users] Need help in Event based LDAP source service
> To: "General discussions and help for Ldap Synchronization Connector
> (LSC) - Start here!" <[email protected]>
> Message-ID:
> <CAAmDP-np57Rr6KC+koWHiLt03jTqJKQZzp__Fhd-
> [email protected]>
> Content-Type: text/plain; charset="utf-8"
>
> Hi Arsad,
>
> Can you share a little more information: lsc logs, type of ldap server,
> what implementation of your destination service, targeted behavior...
>
> Regards
>
> Le samedi 29 octobre 2016, Arsad Ali <[email protected]> a ?crit :
>
> >
> > > Hello All,
> > > I am not sure how to use Event based LDAP source as below is my
> > configuration
> > >
> > > <asyncLdapSourceService>
> > > <name>src-ldap-service</name>
> > > <connection reference="src-ldap"/>
> > > <baseDn>ou=Sample,dc=lsc-project,dc=org</baseDn>
> > > <pivotAttributes>
> > > <string>mail</string>
> > > </pivotAttributes>
> > > <fetchedAttributes>
> > > <string>description</string>
> > > <string>cn</string>
> > > <string>sn</string>
> > > <string>userPassword</string>
> > > <string>objectClass</string>
> > > <string>mail</string>
> > > <string>carLicense</string>
> > > <string>uid</string>
> > > </fetchedAttributes>
> > >
> > > <getAllFilter>(objectClass=inetorgperson)</getAllFilter>
> > > <getOneFilter>(&(objectClass=inetorgperson)(
> > mail={mail}))</getOneFilter>
> > > <synchronizingAllWhenStarting>false</
> > synchronizingAllWhenStarting>
> > > <serverType>ApacheDS</serverType>
> > >
> > > </asyncLdapSourceService>
> > >
> > > I am using plugin destination service . Sync is not happening when
> > doingt any modification in the LDAP server .Not sure which plugin to use
> .
> > > Please help me to resolve this or point me to any example code for
> event
> > based ldap source .
> > >
> > > Thanks in advance .
> > >
> > > Thanks & Regards,
> > >
> > > Arsad Ali
>
> >
>
>
> --
> Sebastien BAHLOUL
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: <http://lists.lsc-project.org/pipermail/lsc-users/
> attachments/20161029/50209edf/attachment-0001.htm>
>
> ------------------------------
>
> _______________________________________________
> lsc-users mailing list
> [email protected]
> http://lists.lsc-project.org/listinfo/lsc-users
>
> End of lsc-users Digest, Vol 81, Issue 30
> *****************************************
>
Oct 29 19:23:18 - INFO - jetty-7.5.4.v20111024
Oct 29 19:23:18 - INFO - started
o.e.j.w.WebAppContext{/,file:/C:/Workspace/ISHMED/lsc-poc/target/classes/webapp/}
19:23:19.154 [main] INFO org.lsc.Configuration - Logging configuration
successfully loaded from
C:\Workspace\ISHMED\lsc-poc\target\classes\etc\logback.xml
19:23:19.154 [main] INFO org.lsc.Configuration - LSC configuration
successfully loaded from C:\Workspace\ISHMED\lsc-poc\target\classes\etc\
hello task is ==sample
Hello Arsad
hello aru
19:24:02.661 [DefaultQuartzScheduler_Worker-1] INFO org.lsc.jndi.JndiServices
- Connecting to LDAP server ldap://localhost:10389/dc=lsc-project,dc=org as
uid=admin,ou=system
19:24:02.702 [DefaultQuartzScheduler_Worker-1] WARN
org.lsc.jndi.SimpleJndiSrcService - No clean filter has been specified for
task=sample. During the clean phase, LSC wouldn't be able to get the right
entries and may delete all destination entries !
19:24:02.962 [DefaultQuartzScheduler_Worker-1] INFO lsc.destination - Starting
sync for sample
19:24:02.996 [sample-48] ERROR o.a.d.l.c.api.LdapNetworkConnection - There is
no future associated with operation message ID 3, perhaps the operation would
have been completed
Hello in bean pivot name
[email protected],ou=Sample,dc=lsc-project,dc=org
Hello in bean pivotAttributes ==={mail=[[email protected]]}From source ==true
Mail Id== [email protected]
Name:Jacob1 Ayres
Aliases: [3203573::PID::ARU, JAA::USERNAME::ARU]
Roles: [Role ID: 8818df23-e657-41cd-9219-7b2e9ca3c2db
Role Name: DBA
the dst bean ===id: [email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - mailvalue
=> mail - Jacob1
=> sn - mailvalue
=> cn - mailvalue
=> objectClass - mailvalue
hello in framework===srcbeanid:
[email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - r.schermesse
=> mail - [email protected]
=> userpassword - [B@ea85b4
=> sn - SCHERMESSER
=> cn - Schermesser, Remy-Christophe
=> objectclass - organizationalPerson
- person
- inetOrgPerson
- top
jjjnull
hello in framework===srcbeanid:
[email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - r.schermesse
=> mail - [email protected]
=> userpassword - [B@ea85b4
=> sn - SCHERMESSER
=> cn - Schermesser, Remy-Christophe
=> objectclass - organizationalPerson
- person
- inetOrgPerson
- top
jjjnull
Operation==CREATE_OBJECT
In CREATE_OBJECT==={uid=r.schermesse, sn=SCHERMESSER, cn=Schermesser,
Remy-Christophe}
Saved Ids==[98897fc4-3494-4334-ae08-801851b00589]
19:24:08.491 [sample-48] INFO lsc.destination - # Adding new object
[email protected],ou=Sample,dc=lsc-project,dc=org for sample
# Sat Oct 29 19:24:08 IST 2016
dn: [email protected],ou=Sample,dc=lsc-project,dc=org
changetype: add
uid: r.schermesse
sn: SCHERMESSER
cn: Schermesser, Remy-Christophe
19:24:08.503 [sample-48] ERROR o.a.d.l.c.api.LdapNetworkConnection - There is
no future associated with operation message ID 5, perhaps the operation would
have been completed
Hello in bean pivot name
[email protected],ou=Sample,dc=lsc-project,dc=org
Hello in bean pivotAttributes ==={mail=[[email protected]]}From source
==true
Mail Id== [email protected]
the personnel ==ID:1e7c772d-0a55-4975-aeba-92036d57d805
Name:Jacob1 Ayres
the dst bean ===id: [email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - mailvalue
=> mail - Jacob1
=> sn - mailvalue
=> cn - mailvalue
=> objectClass - mailvalue
hello in framework===srcbeanid:
[email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - d.coutadeur
=> mail - [email protected]
=> userpassword - [B@235085
=> sn - COUTADEUR
=> cn - Coutadeur, David
=> objectclass - organizationalPerson
- person
- inetOrgPerson
- top
jjjnull
hello in framework===srcbeanid:
[email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - d.coutadeur
=> mail - [email protected]
=> userpassword - [B@235085
=> sn - COUTADEUR
=> cn - Coutadeur, David
=> objectclass - organizationalPerson
- person
- inetOrgPerson
- top
jjjnull
Operation==CREATE_OBJECT
In CREATE_OBJECT==={uid=d.coutadeur, sn=COUTADEUR, cn=Coutadeur, David}
Saved Ids==[a8110c9a-6d49-4116-836a-85e3cebcff3b]
19:24:12.341 [sample-48] INFO lsc.destination - # Adding new object
[email protected],ou=Sample,dc=lsc-project,dc=org for sample
# Sat Oct 29 19:24:12 IST 2016
dn: [email protected],ou=Sample,dc=lsc-project,dc=org
changetype: add
uid: d.coutadeur
sn: COUTADEUR
cn: Coutadeur, David
19:24:12.344 [sample-48] ERROR o.a.d.l.c.api.LdapNetworkConnection - There is
no future associated with operation message ID 7, perhaps the operation would
have been completed
Hello in bean pivot name ===mail=mail,ou=Sample,dc=lsc-project,dc=org
Hello in bean pivotAttributes ==={mail=[mail]}From source ==true
Mail Id== mail
the dst bean ===id: mail=mail,ou=Sample,dc=lsc-project,dc=org
=> uid - mailvalue
=> mail - Jacob1
=> sn - mailvalue
=> cn - mailvalue
=> objectClass - mailvalue
hello in framework===srcbeanid: mail=mail,ou=Sample,dc=lsc-project,dc=org
=> uid - uid
=> mail - mail
=> userpassword - [B@935741
=> sn - SN
=> carlicense - carLicense
=> cn - cn
=> objectclass - organizationalPerson
- person
- inetOrgPerson
- top
jjjnull
hello in framework===srcbeanid: mail=mail,ou=Sample,dc=lsc-project,dc=org
=> uid - uid
=> mail - mail
=> userpassword - [B@935741
=> sn - SN
=> carlicense - carLicense
=> cn - cn
=> objectclass - organizationalPerson
- person
- inetOrgPerson
- top
jjjnull
Operation==CREATE_OBJECT
In CREATE_OBJECT==={uid=uid, sn=SN, cn=cn}
Saved Ids==[bd0d5f9c-e6e2-48de-9676-12853131cf0f]
19:24:16.140 [sample-48] INFO lsc.destination - # Adding new object
mail=mail,ou=Sample,dc=lsc-project,dc=org for sample
# Sat Oct 29 19:24:16 IST 2016
dn: mail=mail,ou=Sample,dc=lsc-project,dc=org
changetype: add
uid: uid
sn: SN
cn: cn
Hello in bean pivot name
[email protected],ou=Sample,dc=lsc-project,dc=org
Hello in bean pivotAttributes ==={mail=[[email protected]]}From
source ==true
Mail Id== [email protected]
Name:Jacob1 Ayres
the dst bean ===id:
[email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - mailvalue
=> mail - Jacob1
=> sn - mailvalue
=> cn - mailvalue
=> objectClass - mailvalue
hello in framework===srcbeanid:
[email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - s.bahloul
=> mail - [email protected]
=> userpassword - [B@10c276
=> sn - BAHLOUL
=> cn - Bahloul, SebastienXXX
=> objectclass - organizationalPerson
- person
- inetOrgPerson
- top
jjjnull
hello in framework===srcbeanid:
[email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - s.bahloul
=> mail - [email protected]
=> userpassword - [B@10c276
=> sn - BAHLOUL
=> cn - Bahloul, SebastienXXX
=> objectclass - organizationalPerson
- person
- inetOrgPerson
- top
jjjnull
Operation==CREATE_OBJECT
In CREATE_OBJECT==={uid=s.bahloul, sn=BAHLOUL, cn=Bahloul, SebastienXXX}
Saved Ids==[d2d23006-c675-44ed-a462-1efbd3a3249f]
19:24:20.408 [sample-48] INFO lsc.destination - # Adding new object
[email protected],ou=Sample,dc=lsc-project,dc=org for sample
# Sat Oct 29 19:24:20 IST 2016
dn: [email protected],ou=Sample,dc=lsc-project,dc=org
changetype: add
uid: s.bahloul
sn: BAHLOUL
cn: Bahloul, SebastienXXX
19:24:20.418 [sample-48] ERROR o.a.d.l.c.api.LdapNetworkConnection - There is
no future associated with operation message ID 10, perhaps the operation would
have been completed
Hello in bean pivot name
[email protected],ou=Sample,dc=lsc-project,dc=org
Hello in bean pivotAttributes ==={mail=[[email protected]]}From source
==true
Mail Id== [email protected]
the personnel ==ID:1e7c772d-0a55-4975-aeba-92036d57d805
Name:Jacob1 Ayres
the dst bean ===id: [email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - mailvalue
=> mail - Jacob1
=> sn - mailvalue
=> cn - mailvalue
=> objectClass - mailvalue
hello in framework===srcbeanid:
[email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - e.pereira
=> mail - [email protected]
=> userpassword - [B@fc9e7e
=> sn - arsad
=> cn - Pereira, Esteban
=> objectclass - organizationalPerson
- person
- inetOrgPerson
- top
jjjnull
hello in framework===srcbeanid:
[email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - e.pereira
=> mail - [email protected]
=> userpassword - [B@fc9e7e
=> sn - arsad
=> cn - Pereira, Esteban
=> objectclass - organizationalPerson
- person
- inetOrgPerson
- top
jjjnull
Operation==CREATE_OBJECT
In CREATE_OBJECT==={uid=e.pereira, sn=ARSAD, cn=Pereira, Esteban}
Saved Ids==[7e538d29-6103-4e80-b519-30183025d869]
19:24:24.594 [sample-48] INFO lsc.destination - # Adding new object
[email protected],ou=Sample,dc=lsc-project,dc=org for sample
# Sat Oct 29 19:24:24 IST 2016
dn: [email protected],ou=Sample,dc=lsc-project,dc=org
changetype: add
uid: e.pereira
sn: ARSAD
cn: Pereira, Esteban
Hello in bean pivot name
[email protected],ou=Sample,dc=lsc-project,dc=org
Hello in bean pivotAttributes ==={mail=[[email protected]]}From source ==true
Mail Id== [email protected]
the personnel ==ID:1e7c772d-0a55-4975-aeba-92036d57d805
Name:Jacob1 Ayres
the dst bean ===id: [email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - mailvalue
=> mail - Jacob1
=> sn - mailvalue
=> cn - mailvalue
=> objectClass - mailvalue
hello in framework===srcbeanid:
[email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - r.arsad
=> mail - [email protected]
=> userpassword - [B@6e3fe4
=> sn - OUAZANA
=> cn - Ouazana, Raphael
=> objectclass - organizationalPerson
- person
- inetOrgPerson
- top
jjjnull
hello in framework===srcbeanid:
[email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - r.arsad
=> mail - [email protected]
=> userpassword - [B@6e3fe4
=> sn - OUAZANA
=> cn - Ouazana, Raphael
=> objectclass - organizationalPerson
- person
- inetOrgPerson
- top
jjjnull
Operation==CREATE_OBJECT
In CREATE_OBJECT==={uid=r.arsad, sn=OUAZANA, cn=Ouazana, Raphael}
Saved Ids==[8fb84066-2ec7-42c5-be7c-4bf5b5dcd219]
19:24:28.777 [sample-48] INFO lsc.destination - # Adding new object
[email protected],ou=Sample,dc=lsc-project,dc=org for sample
# Sat Oct 29 19:24:28 IST 2016
dn: [email protected],ou=Sample,dc=lsc-project,dc=org
changetype: add
uid: r.arsad
sn: OUAZANA
cn: Ouazana, Raphael
19:24:28.786 [sample-48] ERROR o.a.d.l.c.api.LdapNetworkConnection - There is
no future associated with operation message ID 13, perhaps the operation would
have been completed
Hello in bean pivot name
[email protected],ou=Sample,dc=lsc-project,dc=org
Hello in bean pivotAttributes ==={mail=[[email protected]]}From source ==true
Mail Id== [email protected]
the personnel ==ID:1e7c772d-0a55-4975-aeba-92036d57d805
Name:Jacob1 Ayres
the dst bean ===id: [email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - mailvalue
=> mail - Jacob1
=> sn - mailvalue
=> cn - mailvalue
=> objectClass - mailvalue
hello in framework===srcbeanid:
[email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - c.oudot
=> mail - [email protected]
=> userpassword - [B@eff545
=> sn - OUDOT
=> cn - Oudot, Arsad
=> objectclass - organizationalPerson
- person
- inetOrgPerson
- top
jjjnull
hello in framework===srcbeanid:
[email protected],ou=Sample,dc=lsc-project,dc=org
=> uid - c.oudot
=> mail - [email protected]
=> userpassword - [B@eff545
=> sn - OUDOT
=> cn - Oudot, Arsad
=> objectclass - organizationalPerson
- person
- inetOrgPerson
- top
jjjnull
Operation==CREATE_OBJECT
In CREATE_OBJECT==={uid=c.oudot, sn=OUDOT, cn=Oudot, Arsad}
Saved Ids==[bb77f8e4-67a6-46e1-b476-9fb1c6ea3780]
19:24:33.600 [sample-48] INFO lsc.destination - # Adding new object
[email protected],ou=Sample,dc=lsc-project,dc=org for sample
# Sat Oct 29 19:24:33 IST 2016
dn: [email protected],ou=Sample,dc=lsc-project,dc=org
changetype: add
uid: c.oudot
sn: OUDOT
cn: Oudot, Arsad
19:24:33.601 [DefaultQuartzScheduler_Worker-1] INFO
org.lsc.AbstractSynchronize - All entries: 7, to modify entries: 7,
successfully modified entries: 7, errors: 0
hello task is ==sample
Hello Arsad
19:24:33.608 [DefaultQuartzScheduler_Worker-1] INFO lsc.destination - Starting
sync for sample
19:24:33.609 [DefaultQuartzScheduler_Worker-1] ERROR
org.lsc.AbstractSynchronize - Error getting list of IDs in the source for task
sample
hello task is ==sample
Hello Arsad
19:24:33.612 [DefaultQuartzScheduler_Worker-1] INFO lsc.destination - Starting
sync for sample
19:24:33.612 [DefaultQuartzScheduler_Worker-1] ERROR
org.lsc.AbstractSynchronize - Error getting list of IDs in the source for task
sample
hello task is ==sample
Hello Arsad
19:24:59.999 [DefaultQuartzScheduler_Worker-1] INFO lsc.destination - Starting
sync for sample
19:25:00.000 [DefaultQuartzScheduler_Worker-1] ERROR
org.lsc.AbstractSynchronize - Error getting list of IDs in the source for task
sample
hello task is ==sample
Hello Arsad
19:25:30.000 [DefaultQuartzScheduler_Worker-1] INFO lsc.destination - Starting
sync for sample
19:25:30.000 [DefaultQuartzScheduler_Worker-1] ERROR
org.lsc.AbstractSynchronize - Error getting list of IDs in the source for task
sample
hello task is ==sample
Hello Arsad
19:26:00.000 [DefaultQuartzScheduler_Worker-1] INFO lsc.destination - Starting
sync for sample
19:26:00.001 [DefaultQuartzScheduler_Worker-1] ERROR
org.lsc.AbstractSynchronize - Error getting list of IDs in the source for task
sample
hello task is ==sample
Hello Arsad
19:26:30.000 [DefaultQuartzScheduler_Worker-1] INFO lsc.destination - Starting
sync for sample
19:26:30.001 [DefaultQuartzScheduler_Worker-1] ERROR
org.lsc.AbstractSynchronize - Error getting list of IDs in the source for task
sample
hello task is ==sample
Hello Arsad
19:27:00.001 [DefaultQuartzScheduler_Worker-1] INFO lsc.destination - Starting
sync for sample
19:27:00.001 [DefaultQuartzScheduler_Worker-1] ERROR
org.lsc.AbstractSynchronize - Error getting list of IDs in the source for task
sample
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org
lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users