retrieving csn with ldapsearch

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,

To sync LDAP with a custom backend you can also use the retro
changelog plug-in :
http://www.centos.org/docs/5/html/CDS/cli/8.0/Configuration_Command_File_Reference-Plug_in_Implemented_Server_Functionality_Reference-Retro_Changelog_Plug_in_Attributes.html

As for your request to see the csn you can do it (if your user has
enough rights) by looking for nscpEntryWSI attribute. You will have
something like

nscpEntryWSI: ou;121419;vucsn-4b5d82cf000300010000:
ou=dix,ou=dep,ou=dgae,ou=dg,ou=organisation,dc=id,dc=polytechnique,dc=edu
nscpEntryWSI: telephoneNumber;121419;vucsn-4b5d82cf000200010000: +33169339924
nscpEntryWSI: physicalDeliveryOfficeName;121419;vucsn-4b5d82cf000100010000:
7:20-02
nscpEntryWSI: title;121419;vucsn-4b5d82cf000000010000: PERSONNEL
ENSEIGNANT VACATAIRE
nscpEntryWSI: loginShell;adcsn-4b557cb7000000010000;vucsn-4b557cb7000000010000:
/bin/bash

@+


2010/2/22 Roberto Polli <rpolli at babel.it>:
> 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."
> --
> 389 users mailing list
> 389-users at lists.fedoraproject.org
> https://admin.fedoraproject.org/mailman/listinfo/389-users
>


[Index of Archives]     [Fedora User Discussion]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora News]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora QA]     [Fedora Triage]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Yosemite Photos]     [Linux Apps]     [Maemo Users]     [Gnome Users]     [KDE Users]     [Fedora Tools]     [Fedora Art]     [Fedora Docs]     [Maemo Users]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Fedora ARM]

  Powered by Linux