Koozali.org: home of the SME Server

Kubuntu and SME (domain controller) using samba

vanceibz

Kubuntu and SME (domain controller) using samba
« on: May 03, 2007, 04:19:08 PM »
Hi guys,

I am setting up kubuntu workstations to work in a sme domain. I have several windows xp workstations working perfectly with sme, setting up users, printers, shared drives, etc.. but i seem to be stuck when configuring samba (on kubuntu) to see the sme server domain.

I want to be able to login kubuntu with the users configured on the sme..

Anyone has any advice?

Thanks in advance guys

Vance

Offline jester

  • *
  • 496
  • +1/-0
Kubuntu and SME (domain controller) using samba
« Reply #1 on: May 03, 2007, 05:24:46 PM »
Although being for Mepis, maybe this guide will help: http://wiki.contribs.org/Mepis

vanceibz

Kubuntu and SME (domain controller) using samba
« Reply #2 on: May 04, 2007, 01:38:09 PM »
thanks, i will give it a go..

vanceibz

Kubuntu and SME (domain controller) using samba
« Reply #3 on: May 04, 2007, 02:12:56 PM »
I am getting the following error when trying to join the domain, the user and password does exist as i am using them to login into windows...
----
[2007/05/04 14:08:54, 0] utils/net_rpc_join.c:net_rpc_join_newstyle(350)
  Error in domain join verification (credential setup failed): NT_STATUS_ACCESS_DENIED
----
Any ideas what it means? I am very new to ubuntu...

Vance

vanceibz

Kubuntu and SME (domain controller) using samba
« Reply #4 on: May 04, 2007, 02:47:34 PM »
I seem to have been locked out.. When trying to gain sudo privileges to modify a file I am getting the following

password:
sudo: pam_authenticate: User not known to the underlying authentication module

How can i find the password or reset the changes i made...

Also any application i try to open...simply closes down.

Offline dalbjerg

  • 3
  • +0/-0
Kubuntu and SME (domain controller) using samba
« Reply #5 on: May 09, 2007, 01:25:15 AM »
Hi, I got the same problem with Xubuntu 7.04 Feisty Fawn. And SME 7.1.3
I have used the wiki from Mepis http://wiki.contribs.org/Mepis and the Howto: “NT Domain Authentication” from http://ubuntuforums.org/showthread.php?t=5409&highlight=samba+network+domain.

I get the same error when I tray to join the Domain
utils/net_rpc_join.c:net_rpc_join_newstyle(350)
Error in domain join verification (credential setup failed): NT_STATUS_ACCESS_DENIED


I can see the users of the domain with wbinfo –u .

If I tray to join the domain with a nonexistent account I get the error
Could not connect to server SERVER9
The username or password was not correct.
Connection failed: NT_STATUS_LOGON_FAILURE


If I tray to join with a user account that exist but had no administrative right on the domain I get
Creation of workstation account failed
User specified does not have administrator privileges
Unable to join domain MYDOMAIN
"

So the SME server actually verify both the name and password ok.

SERVER9 is the name of the server, MYDOMAIN is the domain name.

Can anybody help? I have to get it running in my daughter’s school, the windows XP part working perfect even with roaming profiles and directory redirection. But wee have to ad 15 machines with xubuntu to the network.

Regards Bo

Offline misnerspace

  • *
  • 58
  • +0/-0
Kubuntu and SME (domain controller) using samba
« Reply #6 on: May 09, 2007, 02:05:23 AM »
I'm trying to do the same with edubuntu but am having no real success which is a great shame, I'll keep on trawling the internet for ubuntu + samba...

Does anyone know of any other Linux distribution that can work with SME via samba?

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Kubuntu and SME (domain controller) using samba
« Reply #7 on: May 09, 2007, 06:16:40 AM »
Quote from: "misnerspace"
I'm trying to do the same with edubuntu but am having no real success which is a great shame, I'll keep on trawling the internet for ubuntu + samba...

Does anyone know of any other Linux distribution that can work with SME via samba?
I use openSUSE OK.

But have you done a
Code: [Select]
smbpasswd -a -m ClientName$and then tried to add the machine?

I was having the same problems with openSUSE until I did the smbpasswd trick.

Trevor B

Offline dalbjerg

  • 3
  • +0/-0
Kubuntu and SME (domain controller) using samba
« Reply #8 on: May 09, 2007, 09:59:15 AM »
Hi
I have used the smbpasswd trick. Before that I could not get any contact with the server. Now I can use wbinfo and get information, but that’s all.
Someone has mentioned that the old SME 7.0 have no problems.???
Regards Bo

Offline stephen noble

  • *
  • 607
  • +1/-0
    • Dungog
Kubuntu and SME (domain controller) using samba
« Reply #9 on: May 09, 2007, 11:39:35 AM »
after this step
Quote
signal-event machine-account-create  ClientName$
smbpasswd -a -m ClientName$


you should have something like this

cat /etc/samba/smbpasswd
Quote
mepisdell3$:5019:XXXXXXXXXXXXXX:488489592A86:[W          ]:LCT-4618BBBC:


show us exactly what you type next
Quote
net rpc join -D WorkGroup -U admin

Offline dalbjerg

  • 3
  • +0/-0
Kubuntu and SME (domain controller) using samba
« Reply #10 on: May 09, 2007, 11:45:37 PM »
Stupid question often asked by stupid people.
I found the fault. I typed the machine name wrong when I created the machine account.
So I will write 100 times “Remember that accounts name are case sensitive”

For i =1 to 100
   Print “Remember that accounts name are case sensitive”
Next i


Now the server recognizes the machine, and users can log on to that machine.
I will now figure out how to make template for the users and store their settings on the server.
The plan is that all documents should be in the same folder as they use on the XP machines.
Both Linux and XP are running Open-Office.

I’m happy that you guided me in the right way

Regards Bo

Offline misnerspace

  • *
  • 58
  • +0/-0
Kubuntu and SME (domain controller) using samba
« Reply #11 on: May 10, 2007, 06:32:27 AM »
Hi TrevorB, I've been looking into OpenSuse and I have to admit that it seems fantastic, the only problem now is that I seem to have been converted from Ubuntu to OpenSuse and nowfaced with a new challege of joing my Suse clients to SME via samba. You don't have a link to a 'how to guide' by any chance?....thanks!

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Kubuntu and SME (domain controller) using samba
« Reply #12 on: May 10, 2007, 07:46:34 AM »
Quote from: "misnerspace"
Hi TrevorB, I've been looking into OpenSuse and I have to admit that it seems fantastic, the only problem now is that I seem to have been converted from Ubuntu to OpenSuse and nowfaced with a new challege of joing my Suse clients to SME via samba. You don't have a link to a 'how to guide' by any chance?....thanks!
Well....

I just used YAST to try and add the workstation to the domain. It returned with the dreaded "Connection failed: NT_STATUS_LOGON_FAILURE" or similar.

I then logged into the smeserver and used the smbpasswd trick for that PC and then went back to the workstation and used YAST again.

This time it worked... :D

I haven't used domain authentication, just let the users map whatever they require on the server themselves (which means that they have to log into the server when they want to access the shares - once per session).

Trevor B

Offline misnerspace

  • *
  • 58
  • +0/-0
Kubuntu and SME (domain controller) using samba
« Reply #13 on: May 10, 2007, 08:30:19 AM »
Hi TrevorB, thanks for the info, I know this may seem like a stupid question as I'm very new to Suse but how do you install winbind on Suse? I'm trying out the 'Mempis' method on Suse and I know I need winbind, maybe its installed already as part of the samba suite. Long day at the 'office' and my brain seems to be slowing down rapidly.

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
Kubuntu and SME (domain controller) using samba
« Reply #14 on: May 10, 2007, 09:16:17 AM »
Quote from: "misnerspace"
I'm very new to Suse but how do you install winbind on Suse?
If you use Yast (I'm pretty sure it is the Users & Permissions section), it will install winbind if you need it (winbind is used for connecting to the NT domain).

[EDIT]Actually Security & Users, User Management, select the Expert Options/Authentication & User Sources item[/EDIT]

Trevor B