Hello all,

I have to synchronize AD of Windows Server 2003 with Postgress DB. I need to do it from linux workstation using C/C++. First I have to perform a full synchronization and save the largest value of uSNChanged attribute. Then I can track changes in AD using current value of uSNChanged. As I understand I have to use ldapsearch command in order to get data from AD; ldif file, which contains data of objects from AD... I have to parse this file. The problem is that this file contains a huge number of objects (first time I have to get all objects from AD). Do you have any idea how can I make the full synchronization ? What is the algorithm I should use ?

Thanks in advance,
Maya