Here a bunch of questions will be asked , but you only need to alter one for our setup :

Domain name : home.lan ( !!! in this example!!! )

After this all settings can be left at default, which means you should still read what it is asking, not just hit ENTER,ENTER,ENTER

Somewhere at the end it will ask for domain password, this is the Administrator password, so this at least should be complex the system requires you to enter at least one uppercase character, some regular characters , and at least one number. For example : Tksh48k .

Now samba will generate all the necessary db files , setup the necessary groups , users etc for this domain.

VERY IMPORTANT : all clients in network must use 192.168.186.200 (ip address of samba ad) as primary dns server

Okay so lets join our first client, for whatever reason I tested it first with a Windows XP client , make sure it's in the samba subnet as the AD , and make sure it is using AD ip as primary DNS, try to ping samba4.home.lan from WinXP client it should answer with 192.168.186.200

Next step is Right Click on My Computer , then Properties , Computer Name , click on Change And select Domain , type in home.lan , click OK . You will be asked for username , password , type in Administrator and the password , click OK , after a while you should receive a message that you have successfully joined the domain home.lan

Reboot the WinXP computer, and login to domain home.lan (or home) with Administrator and password.

Now let's assume will will use this computer as a dedicated computer for managing all our domain related stuff . (since I'm not able to link here pff , I will tell you the names of the software you need to download in order to be able to do that )

From AD Manager for User Robert Set profile path to\\samba4.home.lan\Profiles\Domain Users\Robert

Login with robert... alter something on desktop, create a folder or something, logout. Login again , check /home/Profiles/Domain Users/robert folder , data should be in there... Now you can add another WinXP computer to the domain, login there with robert, you should be greeted with same desktop .

IMPORTANT THINGS TO KNOW ABOUT AD FORGET ABOUT NETWORK NEIGHBORHOOD , YOU CANNOT BROWSE THE NETWORK, AND IT IS OKAY , WITH AD YOU SEARCH THE NETWORK JUST LIKE THE INTERNET YOU DON'T BROWSE IT YOU SEARCH IT. WITH AD YOU CENTRALLY MANAGE SHARED DRIVES, PRINTERS, YOU CAN SHARE ON COMPUTER A SHARE BUT YOU NEED TO PUBLISH IT WITH AD FOR OTHER COMPUTERS TO BE VISIBLE.

THE FOLLOWING VIDEOS (pfff links again) SHOULD BE WATCHED

use www.google.com (note : all of them are youtube videos, and quiet helpfull to get you started )

As you will see AD is quiet a complex beast, and I highly recommend watching these videos, PC TechStream ones are quiet good , you will learn a few things, and you will also realize what at first seems complex gets quiet straghtforward after a while, and you will realize that it is much better then SAMBA 3 NT Style domains.