Originally Posted by mbahaa
how to bild Domain controller on linux?
You install Samba, and read one of the easily found how-tos on setting it up as a domain controller. Since you don't provide any details (version/distro of Linux? Using any other authentication methods? Just serving Windows clients, or do you need Linux client integration too?), it's hard to be specific.
Try Google for "linux domain controller how to", and you'll find things like this: