Linux (commonly pronounced LIH-N?ks in English; variants exist) is a Unix-like computer operating system. Linux is one of the most prominent examples of free software and open source development: typically all underlying source code can be freely modified, used, and redistributed by anyone.
To begin, obviously you should NOT be doing this on a production server or workstation. Also it's important to note that everyones domain is slightly different, so if this solution does not work 100% for your domain, you may just need to tweak one of the config files below. DON'T GIVE UP, enterprises bind active directories to linux, WE bind Active Directories to linux, IT CAN BE DONE.
To begin, I will be using the domain "example.name.domain" in place of the full domain name, EXAMPLE in place of the short name. A common mistake people will make when attempting this the first time is to not pay attention to the case. It's important that where UPPERCASE is used, you use uppercase. Also I use "computername" in place of the computers name, it's also important that case and spelling remain exactly the same across all of the configuration files. Last I use "xxx" in place of the numeric value of any IP address.
For ubuntu users, you MAY need to add the Universe and Multiverse repositories first: (Debian users can skipo to "Update The Package list")
un-comment the following line
It should now read:
Add the following to the security line:
Update the package lists
Install the needed packages
Correct the time synchronization
Use the following command to open and edit the file
It should contain the following values:
Change the following line
to
This varies from network to network, but you can try to uncomment the following line, Recomment if you can't join later:
The file should look the example below.
/etc/pam.d/common-account should contain only the following lines
/etc/pam.d/common-auth should contain only the following lines
Modify the /etc/pam.d/common-password file, so the max parameter is set to 50, similar to the one shown below
Make sure the /etc/pam.d/common-session file contains the following line
Set pam to lookup the UID and GID values /etc/pam.d/samba
The top of /etc/hosts should read:
Note that xxx should be replaced with a DNS name in domain
This is a critical step, make sure that the machine is allowed to point to the correct Ldap dns servers or you will get an error when you bind to the ADS.
The name server values can be found in DNS entry found on a windows computer (for example) by using the following command line code:
Replace machine_name with a DNS name of a server or workstation on your network
This should resolve and look like the following output:
The above command will result in the same computer name as you have specified in the config files.
The above command will result in the following format:
computer name.example.name.domain
If this does not work, go back and check your hosts file
A domain admin is anyone that can control the users container, this is basically a user that could add or remove users or objects to the domain, if you can't do this, ask your AD administrator to do this step for you.
Enter the password for the user, if nothing comes back after you type it in, your good, otherwise re-review the above steps.
Next check to be sure you got a ticket from the domain controller:
Order is important
Try to ssh into the computer using your NT login name as the user name IE EXAMPLE\username
If when logging into the machine one gets a "no logon servers" error winbind\samba may not be starting properly. Try restarting them manually, and then logging in. Another issue, the name service cache daemon (nscd) can interfere with winbind, as winbind maintains its own cache. Remove it.
Some names or groups are not resolved with getent, but others are not
The range of your idmap parameter is not wide enough to encompass all the users or groups
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
Feel free to leave a comment or question
Code block comments
2010-03-19
Added a code block for comments
Windows 7 Items
2009-09-24
new info on windows 7
Snort on Debain Lenny
2009-08-19
Installing snort+PGSQL on Debian