sudo apt-get install likewise-open
Or you could download appropriate Script from here.
The main executable file of the likewise-open package is
/usr/bin/domainjoin-cli, which is used to join your computer to the domain. Before you join a domain you will need to make sure you have:
Access to an Active Directory user with appropriate rights to join the domain.
The Fully Qualified Domain Name (FQDN) of the domain you want to join. If your AD domain does not match a valid domain such as example.com, it is likely that it has the form of domainname.local.
DNS for the domain setup properly. In a production AD environment this should be the case. Proper Microsoft DNS is needed so that client workstations can determine the Active Directory domain is available.
To join a domain, from a terminal prompt enter:sudo domainjoin-cli join example.com Administrator
See here for more details.