Adel,
the idea is to get a basic understanding of how FIM - and the synchronization process in particular - works.
How to get objects from a data source into FIM, is covered in
Introduction to Inbound Synchronization.
After you have successfully completed this document, it is pretty simple to replace the file MA with an AD MA.
The basic process for implementing a synchronization logic is for an ADMA the same as for a File MA.
What you should get an understanding for, first, is, how to get an object from whatever data source into FIM.
The document explains this.
Cheers,
Markus
Markus Vilcinskas, Technical Content Developer, Microsoft Corporation