I should probably post this in egw-devel but am putting it here because the community may have some interest.
Can you please create an LDAP listener class that would listen for LDAP modifications. It should be fairly simple to code, have minimal impact and would look something like:
Class egwLDAPListener
Function Handler(event LDAPEvent)
switch
case event.eventtype = MODIFY do egwSyncModify
case event.eventtype = DELETE do egwSyncDelete
case event.eventtype = ADD do egwSyncAdd
endswitch
And what calls that listener or should it poll LDAP (in which case it's
hard to detect the deletes)?
Ralf
kwizl schrieb:
> Good day everyone!
>
> I should probably post this in egw-devel but am putting it here because the
> community may have some interest.
>
> Can you please create an LDAP listener class that would listen for LDAP
> modifications. It should be fairly simple to code, have minimal impact and
> would look something like:
>
> Class egwLDAPListener
> Function Handler(event LDAPEvent)
>
> switch
> case event.eventtype = MODIFY do egwSyncModify
> case event.eventtype = DELETE do egwSyncDelete
> case event.eventtype = ADD do egwSyncAdd
> endswitch
>
> endfunction
> endClass
>
> Sounds simple anyway!
>
> Peace
>
>
> Michael Adair
> KING OF THE PSEUDO CODE!
Persistent search is implemented in the JLDAP java class libraries, but I don't know if there is an equivalent PHP class.
Class egwLDAPListener
Function egwLDAPListener()
listener = new egwLDAPListenerHandler()
ldapPersistentSearch($context, $admin, $pw, $listener)
endFunction
Function egwLDAPListenerHandler(event LDAPEvent)
switch
case event.eventtype = MODIFY do egwSyncModify
case event.eventtype = DELETE do egwSyncDelete
case event.eventtype = ADD do egwSyncAdd
endswitch