Koozali.org: home of the SME Server

How to connect a Ubuntu 8.04 client to my domain?

Offline bloodshoteye

  • *****
  • 232
  • +0/-0
  • Grateful thanks to SME devs
Re: How to connect a Ubuntu 8.04 client to my domain?
« Reply #15 on: February 10, 2009, 11:06:23 AM »
@troykd

Quote
Any preferred distro's for joining an SME server?

For what it's worth, I followed this contrib once with Mepis 7.0 and (I think) SME 7.2 Things worked as advertised:
Quote
http://wiki.contribs.org/Mepis
I have not tried the new Mepis 8.0 Beta with SME 7.4.

Regards,
SME Server is a fantastic product - thank you!

Offline Craig Cabrey

  • ****
  • 79
  • +0/-0
Re: How to connect a Ubuntu 8.04 client to my domain?
« Reply #16 on: February 10, 2009, 12:34:06 PM »
Craig:

How would you like to put together a small "HowTo" for setting up CentOS 5.2 work stations to add SME Server domains?

I'm quite sure many people would appreciate that.

Thank you!
I could do that Smile
I'll see if I can write one up this evening.

Craig

Offline steever

  • *
  • 185
  • +0/-0
    • Open-Sesame
Re: How to connect a Ubuntu 8.04 client to my domain?
« Reply #17 on: February 11, 2009, 03:35:32 PM »
Craig:  Please please do this.

I've often thought that Centos Workstations attached to a SME (Centos) server would be a perfect fit.  If you can post a how to, I'll try to do a respin of Centos with the correct software added and a nice "connect to domain" script.

Ubuntu changes every release.  I had it working with 6.06.  I had Fedora 7 working with SME 7.2 but the update to 7.3 killed it.

It's such a difficult thing, but it should be so easy!  Like shoes with zippers.

Steve
Saving the world ... one server at a time.

Offline Craig Cabrey

  • ****
  • 79
  • +0/-0
Re: How to connect a Ubuntu 8.04 client to my domain?
« Reply #18 on: February 11, 2009, 09:27:45 PM »
I'm just starting to write up a how to (yes I know, later than I said Razz) and I'm wondering if I should take screenshots or not.
If so, where should I upload them to?

Thanks,
Craig

PS: For reference, I saw this article from the MEPIS contrib mentioned above:
http://tech.canterburyschool.org/tech/UbuntuWorkstations/AuthenticationSetup
« Last Edit: February 11, 2009, 09:34:30 PM by Craig Cabrey »

Offline steever

  • *
  • 185
  • +0/-0
    • Open-Sesame
Re: How to connect a Ubuntu 8.04 client to my domain?
« Reply #19 on: February 11, 2009, 11:33:09 PM »
Hi Craig.

Actually I'm one of the contributors to the document from Canterbury School.  Such a difficult thing to do with Ubuntu (my distro of choice). 

I am a member of the Documentation team here, so if you write your howto using a word processor and email it to me at steve.towson@gmail.com I will transfer it to the wiki for everyone's education and entertainment.

Thanks in advance.

Steve
Saving the world ... one server at a time.

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to connect a Ubuntu 8.04 client to my domain?
« Reply #20 on: April 24, 2009, 09:39:14 PM »
I'm just starting to write up a how to (yes I know, later than I said Razz)

Hi Craig..

just to know if you wrote something :-)

Tia
Ciao
Stefano

Offline Craig Cabrey

  • ****
  • 79
  • +0/-0
Re: How to connect a Ubuntu 8.04 client to my domain?
« Reply #21 on: April 25, 2009, 01:37:53 AM »
I'm so sorry guys, I completely forgot about it! Shocked

I guess thats what happens when you procrastinate (on this & school :P)

I'll see if I can get it finished (it's mostly done) this weekend and see if anything needs to be changed for RHEL/CentOS 5.3.

Craig

Offline alejandro

  • **
  • 35
  • +0/-0
Re: How to connect a Ubuntu 8.04 client to my domain?
« Reply #22 on: June 22, 2009, 09:35:30 PM »
well.. pdc, join to a domain are M$ stuff.. having a linux lan, you should use other kind of "network aggregation" :)

I'm waiting opensuse complete installation.. running as virtual machine on virtualbox.. stay tuned

Ciao
Stefano
Hi stefano, I found your answer searching the forums ,
What kind of network aggregation should be used in your opinion? (besides ldap of course)
Thanks in advance
Ale


Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to connect a Ubuntu 8.04 client to my domain?
« Reply #23 on: June 22, 2009, 09:51:21 PM »
Hi stefano, I found your answer searching the forums ,
What kind of network aggregation should be used in your opinion? (besides ldap of course)
Thanks in advance
Ale

well, I was referring to nis.. if you have linux clients, you can use nis to share credentials between server and clients.

I suggest you to search the forums for it (I remember something about), and read, for example, here and here

hth
Stefano

Offline alejandro

  • **
  • 35
  • +0/-0
Re: How to connect a Ubuntu 8.04 client to my domain?
« Reply #24 on: June 24, 2009, 11:54:40 PM »
Browsing the web I found this:

"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:
 
  samba
  winbind
 
 
 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:
 
 /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
 
 
 Now, the first thing we are doing is setting up samba/winbind to work with the domain, so do a nano /etc/samba/smb.conf and insert the following lines:
 
 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
 
 Remeber that this is just and example, you should/can change the values according to your needs.
 
 
 After that we need to make the system to use winbind. First edit /etc/nsswitch.conf and replace:
 
 
 passwd:   compat
 group:   compat
 
 with
 
 passwd: compat winbind
 group:   compat winbind
 
 
 Now go to /etc/pam.d and edit the following files:
 
 common-account:
 
 #Commented for winbind to work
 #account-required   pam_unix.so
 account-required   pam_winbind.so
 
 
 common-auth:
 
 auth   sufficient   pam_winbind.so
 auth   required   pam_unix.so nullok_secure use_first_pass
 
 
 common-session:
 
 session   required   pam_unix.so
 session   required   pam_mkhomedir.so umask=0022 skel=/etc/skel/
 
 
 sudo:
 
 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:
 
 PASS_MAX_LEN   50
 
 
 /etc/pam.d/common-password:
 
 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:
 
 net rpc join -D MYDOMAIN -U administrator
 
 
 Test it with:
 
 wbinfo -u
 wbinfo -g
 
 
 
 Make the domain home dir (users home dirs will be inside this one, but can be configured in smb.conf):
 
 mkdir /home/MYDOMAIN
 
 
 Reboot, and that's it, you should now have domain authentication working in Ubuntu. :-D
 
 Just a few extra comments:
 
 Remeber that if you need one user to have administration permissions, you need to include him in the /etc/sudoers list. Use the visudo command to do this. And there's no need to prepend MYDOMAIN+ to the username since winbind is configured to use the configured domain by default.
 If anything goes wrong and you cannot login to the system, you have to reboot in recovery mode (press ESC when grub is starting) and replace the changed files from /etc/pam.d with the backups.
  I use NT4 domains, I don't think a W2k domain in native mode will work. You surely have to make some changes.
  This tutorial is just and example of how things worked for me. It's obviously not the only (or better) way to do things.  [-X "
------------------------------------------------------------------------------------
This is the link where I found the info
http://ubuntuforums.org/archive/index.php/t-5409.html

Should this work with SME domain scenario?
I'll give a try.... next week end

alejandro
« Last Edit: June 25, 2009, 12:14:12 AM by alejandro »

Offline engdev

  • *
  • 71
  • +0/-0
Re: How to connect a Ubuntu 8.04 client to my domain?
« Reply #25 on: October 14, 2009, 03:58:10 PM »
I'd be very interested to learn how to join a Centos workstation to an SME server?

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to connect a Ubuntu 8.04 client to my domain?
« Reply #26 on: October 14, 2009, 04:01:53 PM »
I'd be very interested to learn how to join a Centos workstation to an SME server?

you should search google how to join a centos client to a samba NT domain..

Offline engdev

  • *
  • 71
  • +0/-0
Re: How to connect a Ubuntu 8.04 client to my domain?
« Reply #27 on: October 14, 2009, 04:10:44 PM »
I did but haven't got anywhere so I thought I would ask here as there was an offer on this thread of a how-to some months back from a user with a working config.
I tried these:
http://www.mail-archive.com/opensuse@opensuse.org/msg56551.html
http://www.freeos.com/articles/3842/
http://www.novell.com/communities/node/4519/adding-nt-domain-authentication-apache-and-samba-slesopensuse-servers
but to no avail.

If you have a link to a current working how-to that would be great?
Thanks

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: How to connect a Ubuntu 8.04 client to my domain?
« Reply #28 on: October 14, 2009, 04:36:19 PM »
engdev:

I managed to join a SME 7.4 domain with ubuntu 8.04 following the howto posted by alejandro.. but I had some issues and,  sincerely, I didn't spend so much time to test..

you could try that howto.. I suggest to use a virtual machine as you can use snapshots..

my 2c