[389-users] retrieving csn with ldapsearch

Roberto Polli rpolli at babel.it
Mon Feb 22 11:51:06 UTC 2010


hi all,

I'm trying to retrieve the csn with ldapsearch and ldapadd/modify.

I need it for syncing ldap with a custom backend.

For now I'm using the modifytimestamp, but for each add/modify I have to issue 
a subsequent ldapsearch to retrieve the modifytimestamp...

The control I'm trying to use is the following:
 https://www.opends.org/wiki/page/DefinitionCSNControl

the csn of the entry is reported into fedorads logs.

[18/Feb/2010:17:05:32 +0100] ... ADD dn="piEntryId=1..134c..."
[18/Feb/2010:17:05:33 +0100] RESULT err=0 .. csn=4b7d654e000000010000

Hope somebody can help.
Peace,
R.
-- 

Roberto Polli
Babel S.r.l. - http://www.babel.it
Tel. +39.06.91801075 - fax +39.06.91612446
Tel. cel +39.340.6522736
P.zza S.Benedetto da Norcia, 33 - 00040 Pomezia (Roma)

"Il seguente messaggio contiene informazioni riservate. Qualora questo 
messaggio fosse da Voi ricevuto per errore, Vogliate cortesemente darcene 
notizia a mezzo e-mail. Vi sollecitiamo altresì a distruggere il messaggio 
erroneamente ricevuto. Quanto precede Vi viene chiesto ai fini del rispetto 
della legge in materia di protezione dei dati personali."



More information about the 389-users mailing list