![]() |
ubuntu.com - launchpad.net - ubuntu help
|
|
|||||||
Ubuntu 9.10 is out!!!
When downloading Ubuntu 9.10 please consider using bittorrent to get your copy of Ubuntu. The Ubuntu Developers Summit for Lucid Lynx will be held the week of 16-Nov-2009 till 20-Nov-2009 in Dallas, TX USA. Visit the the Ubuntu wiki for more information about UDS and how to participate remotely. |
|
Tutorials & Tips The place to find Ubuntu related Tips & Tricks. |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
First Cup of Ubuntu
![]() Join Date: Oct 2004
Beans: 4
|
NT Domain Authentication in Ubuntu HOW-TO
by vizvayu@gmail.com I'm making this tutorial because I had to set-up Ubuntu to authenticate on my company's NT Domain, so now that it's working I thought I could share my experience. Any comments, ideas, and even some questions are welcome. There are several tutorials regarding this, but this one is made specially for Ubuntu. First of all, I'm assuming that you are comfortable editing text files and have a basic undestanding of a linux system, including booting in recovery mode and restoring file backups. Although this procedure is not "dangerous", it could render the authentication system unusable if you make any mistake. So please, be careful and make backups of all the files changed. To authenticate on a NT Domain, you need the following extra packets:
If I remeber correctly, the samba package comes with Ubuntu, but you have to download winbind separately from the universal repository. Ok, now this is a list of the files we are touching, please make backups: Code:
/etc/login.defs /etc/nsswitch.conf /etc/samba/smb.conf /etc/pam.d/common-account /etc/pam.d/common-auth /etc/pam.d/common-password /etc/pam.d/common-session /etc/pam.d/sudo Code:
workgroup = MYDOMAIN idmap uid = 10000-20000 idmap gid = 10000-20000 template shell = /bin/bash template homedir = /home/%D/%U winbind enum users = yes winbind enum groups = yes winbind cache time = 10 winbind separator = + security = domain password server = * winbind use default domain = yes After that we need to make the system to use winbind. First edit /etc/nsswitch.conf and replace: Code:
passwd: compat group: compat Code:
passwd: compat winbind group: compat winbind common-account: Code:
#Commented for winbind to work #account-required pam_unix.so account-required pam_winbind.so Code:
auth sufficient pam_winbind.so auth required pam_unix.so nullok_secure use_first_pass Code:
session required pam_unix.so session required pam_mkhomedir.so umask=0022 skel=/etc/skel/ Code:
auth sufficient pam_winbind.so auth required pam_unix.so use_first_pass And this is an extra, not really required, but as I think the default max password lenght of 8 chars sucks (I like to use passphrases), and as we are using md5, I changed it: /etc/login.defs: Code:
PASS_MAX_LEN 50 Code:
password required pam_unix.so nullok obscure min=4 max=50 md5 Finally, there are only a few things left to do: Join the domain: Code:
net rpc join -D MYDOMAIN -U administrator Code:
wbinfo -u wbinfo -g Make the domain home dir (users home dirs will be inside this one, but can be configured in smb.conf): Code:
mkdir /home/MYDOMAIN Just a few extra comments:
|
|
|
|
|
|
#2 |
|
5 Cups of Ubuntu
![]() Join Date: Oct 2004
Beans: 29
|
Re: HOWTO: NT Domain Authentication
awesome! worked like a charm.
![]() |
|
|
|
|
|
#3 |
|
Just Give Me the Beans!
![]() Join Date: Oct 2004
Location: oslo, norway
Beans: 46
Ubuntu 7.04 Feisty Fawn
|
Re: HOWTO: NT Domain Authentication
Has anybody tried this with Hoary?
:water |
|
|
|
|
|
#4 |
|
A Carafe of Ubuntu
![]() Join Date: Mar 2005
Beans: 120
|
Re: HOWTO: NT Domain Authentication
thanks, it worked
|
|
|
|
|
|
#5 |
|
5 Cups of Ubuntu
![]() |
Re: HOWTO: NT Domain Authentication
has anyone had any luck getting this to work on a win2k domain?
|
|
|
|
|
|
#6 |
|
First Cup of Ubuntu
![]() Join Date: Nov 2004
Beans: 5
|
Re: HOWTO: NT Domain Authentication
For a win2k domain, just be sure to set security = ads as well as ream = your_realm in smb.conf and use net ads join -U administrator for the join command.
|
|
|
|
|
|
#7 |
|
First Cup of Ubuntu
![]() Join Date: Apr 2005
Location: Cairns AUSTRALIA
Beans: 3
|
Re: HOWTO: NT Domain Authentication
This method seems to require a domain server present and connected to allow login to the local machine. How can the scripts be modifided to allow a local login if the network or domain is unavailable?
![]() |
|
|
|
|
|
#8 | |
|
A Carafe of Ubuntu
![]() Join Date: Dec 2004
Location: St. Louis, Missoura
Beans: 71
Gutsy Gibbon Testing
|
Re: HOWTO: NT Domain Authentication
Quote:
Nevermind, they key was specifying a default shell and default domain in smb.conf. ![]() Last edited by JackDog; April 26th, 2005 at 02:46 PM.. |
|
|
|
|
|
|
#9 |
|
First Cup of Ubuntu
![]() Join Date: Apr 2005
Beans: 3
|
Re: HOWTO: NT Domain Authentication
I did this with Hoary Hedgehog 5.04 and now I get the message "The system administrator has disabled access to the system temporarily." when I try to logon using a domain user. My local users can't log in now, simply saying authentication failed. I'm trying to login to a mixed mode windows 2000 domain, so used the net join rpc command and it worked. So I guess the good news is that it IS authenticating against the AD, but it won't let me onto the system. Any suggestions?
|
|
|
|
|
|
#10 |
|
First Cup of Ubuntu
![]() |
Re: HOWTO: NT Domain Authentication
I did this and am able to login with one of the command line virtual terminals and ssh as an active directory user. I cannot log in with XWindows though. Any ideas what I should look at?
|
|
|
|
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|