Koozali.org: home of the SME Server

[ANNOUNCE] Ubuntu Authentication

Offline timn

  • *
  • 62
  • +0/-0
    • Nash CDL
[ANNOUNCE] Ubuntu Authentication
« on: November 05, 2009, 07:18:20 PM »
For those that are interested I have created a Wiki HowTo page for authenticating Ubuntu 9.10 Karmic Koala against SME. It works for me but YMMV.

http://wiki.contribs.org/Ubuntu_Client_Authentication
« Last Edit: November 06, 2009, 05:54:50 PM by timn »

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: [ANNOUNCE] Ubuntu Authentication
« Reply #1 on: November 06, 2009, 01:24:06 AM »
hi

tried on a ubuntu 8.04 hardy and it's almost working :-)

I will test on other distro debian based

just a question: where did you find these infos? :-) have you a link?

thank you

Offline timn

  • *
  • 62
  • +0/-0
    • Nash CDL
Re: [ANNOUNCE] Ubuntu Authentication
« Reply #2 on: November 06, 2009, 09:29:24 AM »
Searched these forums for previous posts, and the basis was

http://tech.canterburyschool.org/tech/UbuntuWorkstations_2fAuthenticationSetup

which has been mentioned before.

Also http://samba.org/samba/docs/man/Samba-Guide/unixclients.html#wdcsdm

Also google was my friend, together with a lot of trial and error. I actually had it working a lot sooner than I thought except for a silly typo that took me far too long to track down as it was late.
« Last Edit: November 06, 2009, 09:53:51 AM by timn »

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: [ANNOUNCE] Ubuntu Authentication
« Reply #3 on: November 06, 2009, 09:30:58 AM »
Many thanks for this how-to. I've tested on Ubuntu Karmic, and it's working.

Regards, Daniel
C'est la fin du monde !!! :lol:

Offline timn

  • *
  • 62
  • +0/-0
    • Nash CDL
Re: [ANNOUNCE] Ubuntu Authentication
« Reply #4 on: November 06, 2009, 11:11:49 AM »
Daniel
Did you install on a clean box or in a VM.

Can you confirm if you get a delay at login while the home directory is mounted. Also after the net rpc join command, did wbinfo work straight away? I think both of these problems may be related to my VirtualBox VM using a different subnet and NAT, as I can't get bridge mode to install.

Tim

Offline Daniel B.

  • *
  • 1,700
  • +0/-0
    • Firewall Services, la sécurité des réseaux
Re: [ANNOUNCE] Ubuntu Authentication
« Reply #5 on: November 06, 2009, 11:19:17 AM »
Daniel
Did you install on a clean box or in a VM.
Hi. Yes, the ubuntu box is a VM (KVM based), but in bridged mode, so in the same subnet as the SME (which is another VM).

Can you confirm if you get a delay at login while the home directory is mounted. Also after the net rpc join command, did wbinfo work straight away? I think both of these problems may be related to my VirtualBox VM using a different subnet and NAT, as I can't get bridge mode to install.
Tim

after the net rpc, wbinfo -u/g worked as expected (but it was already working in fact, this ubuntu was installed as 8.04, joined in the domain, upgraded to 8.10, 9.04 and 9.10, then I found your how-to and I just follow it for the pam/nss part. The samba/winbind part on my setup was exactly the same as your how-to)

At the login, there's a small delay (I mount 2 samba shares), but it's reasonable (it may take 3 to 5 seconds more than before)

Regards
C'est la fin du monde !!! :lol:

Offline timn

  • *
  • 62
  • +0/-0
    • Nash CDL
Re: [ANNOUNCE] Ubuntu Authentication
« Reply #6 on: November 06, 2009, 11:22:56 AM »
OK, thanks. My delay for mount at login is more like a minute than 3-5 seconds, hence my concern.

Offline steever

  • *
  • 185
  • +0/-0
    • Open-Sesame
Re: [ANNOUNCE] Ubuntu Authentication
« Reply #7 on: November 10, 2009, 06:13:50 AM »
Beautiful work, Tim!

Is it possible, do you think, to have the user's home folder under SME mounted as their home folder on the workstation instead of as nethome?

Also, what do you think about using ldap instead of winbind?  That way it would be possible to mac central auth as well, all with home automounted.

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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: [ANNOUNCE] Ubuntu Authentication
« Reply #8 on: November 10, 2009, 12:59:35 PM »
Beautiful work, Tim!

Is it possible, do you think, to have the user's home folder under SME mounted as their home folder on the workstation instead of as nethome?

I think you could achieve it changing the mount point in pam_mount.conf.xml  file

Quote
Also, what do you think about using ldap instead of winbind?  That way it would be possible to mac central auth as well, all with home automounted.

Steve

no, because SME doesn't use (ATM) ldap for users' accounts and auth

Offline steever

  • *
  • 185
  • +0/-0
    • Open-Sesame
Re: [ANNOUNCE] Ubuntu Authentication
« Reply #9 on: November 10, 2009, 02:59:22 PM »
Quote
I think you could achieve it changing the mount point in pam_mount.conf.xml  file
There might be special permission problems ... I'll have to experiment.

Quote
no, because SME doesn't use (ATM) ldap for users' accounts and auth
The LDAP contrib allows this to happen.

I'll have a go at both and let you know ...

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

Offline Stefano

  • *
  • 10,894
  • +3/-0
Re: [ANNOUNCE] Ubuntu Authentication
« Reply #10 on: November 10, 2009, 03:30:33 PM »
The LDAP contrib allows this to happen.
I'll have a go at both and let you know ...

ok.. but please remember that it is beta sw.. ;-)
in any case, let us know

Offline engdev

  • *
  • 71
  • +0/-0
Re: [ANNOUNCE] Ubuntu Authentication
« Reply #11 on: November 27, 2009, 06:00:01 PM »
Thanks timn, you are a genius.

Tried this on my existing 9.04 Ubuntu installation and works fine. However, once you reboot after doing the 'login & test', I receive a "no logon servers" error after entering my logon password. It doesn't appear to matter as my home drive is still thereand read/write is ok. I have my SME home mapped to 'U_drive' so it's same as windows.

Offline engdev

  • *
  • 71
  • +0/-0
Re: [ANNOUNCE] Ubuntu Authentication
« Reply #12 on: December 03, 2009, 06:13:57 PM »
Just thought I would let you know that I removed my Ubuntu 9.04 and installed fresh Linuxmint 8 (i.e Ubuntu 9.10 base). I followed the how-to 100% and it works great, the only change is at the very end. After the 'Login and Test' part you need to re-boot, simply logging out doesn't work. As far as I am concerned there is no login delay, it seems fine to me.

Thanks again for a great how-to.

Offline linuxgurumaniac

  • *
  • 13
  • +0/-0
  • ROCKING 24/7 \m/V\m/
    • Learn 2 Program
Re: [ANNOUNCE] Ubuntu Authentication
« Reply #13 on: December 15, 2009, 04:09:31 PM »
hello,
great tutorial, all works but when i tried to login with any of the sme user,
if a entered a wrong password ill get a wrong password which is good
but when i enter the right one i get the following :
"your password has expired"
please help....
Everything in life is magic, until it get defined by science, then it will become logic...

Offline timn

  • *
  • 62
  • +0/-0
    • Nash CDL
Re: [ANNOUNCE] Ubuntu Authentication
« Reply #14 on: December 15, 2009, 05:04:26 PM »
Just tried and works OK for me. Incorrect password gives "wrong password" followed by "authentication failure" messages. Second attempt with correct password works OK. Doesn't help you I know.

Is the actual users SME account locked?

Are you sure the machine has joined the SME domain?