Friday, August 13, 2010

Likewise-Open: Authenticate a Linux machine to an Active Directory domain

To install the likewise-open package in Ubuntu, open a terminal prompt and enter:
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.

Qmail & SpamAssassin - Change Default Rules Score

Under this directory:

/var/qmail/mailnames/DOMAIN-NAME/USERNAME/.spamassassin

edit user_prefs and add the new Score for desire rule:

Example:

score RDNS_NONE 5.0

that overrides the defualt score.

You can find all rules here:

http://wiki.apache.org/spamassassin/Rules/