LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 10-03-2002, 10:47 PM   #1
R0N1N
Member
 
Registered: Sep 2002
Location: United States
Distribution: Slackware 8.1, 9.0 / Debian 3.0
Posts: 44

Rep: Reputation: 15
Samba PDC and WindowsXP Professional


Hello all. I've been checking out this forum for a while, and it's the best linux forum I've seen.

I've been a slackware user for a long time and have been unable to find a solution to this problem.

I'm currently using Slackware 8.1 in a network server role including it being a Primary Domain Controller for windows machines (for centralized user authentication). All versions of windows authenticate to the domain without any trouble (including Windows 2000 sp3), with one exception: Windows XP Professional. When I try to join it to the domain it just says access denied.

I've been searching for this solution (if there is one) and thought I may as well ask, since there are no previous threads dealing with this issue.

If need be, I can post my smb.conf file. Although, like I said, it's only XP that is having the problem. All my other windows machines have no problem logging onto the domain and accessing the domain shares, changing user passwords from windows, etc. Although I'm still trying to figure out a way for windows machines to change file permissions on server shares by using the right-click --> properties --> permission/security menu. This may, however, not be possible.

Ideas? Questions? Comments?

Thanks in advance.

...and please, no comments like "It's easy, eliminate windows machines on your network" etc.
 
Old 10-04-2002, 06:53 AM   #2
Echojin
LQ Newbie
 
Registered: Oct 2002
Distribution: redhat-7.3
Posts: 9

Rep: Reputation: 0
hallo all, I am new to this forum and also to linux,
just now I am using Linux redhat-7.3 and Windows-XP,
I have changed some configurations, e.g. WORKGROUP, SHARE ... in the smb.conf, but unlucky smb isn't working, can anybody help me? Thanx!
 
Old 10-04-2002, 08:25 AM   #3
R0N1N
Member
 
Registered: Sep 2002
Location: United States
Distribution: Slackware 8.1, 9.0 / Debian 3.0
Posts: 44

Original Poster
Rep: Reputation: 15
Since you aren't using a domain, and you are just trying to get XP to access shares on you linux machine, you can use a pretty much default samba configuration.

Make sure they are both using the same "workgroup".

If you are using "security = user", you will need to add any users that will access samba.

# add a linux user account
useradd -g "groupid" -m "username"
passwd "username"

# add the user to samba
smbpasswd -a "username"
 
Old 10-04-2002, 04:28 PM   #4
R0N1N
Member
 
Registered: Sep 2002
Location: United States
Distribution: Slackware 8.1, 9.0 / Debian 3.0
Posts: 44

Original Poster
Rep: Reputation: 15
Any ideas?

Has no one else tried to get a windows xp machine to logon to a Linux Domain controller before?
 
Old 10-05-2002, 05:15 AM   #5
Echojin
LQ Newbie
 
Registered: Oct 2002
Distribution: redhat-7.3
Posts: 9

Rep: Reputation: 0
Thanx, I have checked sam.conf, it shows that in some optional commands:
server string = Samba Server // ok?
....
[Share]
comment: samba test
path: /home/share
valid users = Echojin
public = no
writeable = yes
printable = no
create mask = 0765

I hope it helps.
greetings!
 
Old 10-06-2002, 03:13 AM   #6
TrueSword
LQ Newbie
 
Registered: Oct 2002
Location: Australia
Distribution: Mandrake 8.X & Redhat 7.X
Posts: 7

Rep: Reputation: 0
Yes, I have managed to get WinXP to browse and use files on a Linux Server.....

What you need to do is use "NetBeui" on the Windows XP box for it to see a Linux system. As Netbeui doesnt install standard with XP - you need to manually add it in. Take a look on the XP CD - the Netbeui protocol is there...
After this, you should be able to browse a Linux Netowrk.
If you have security = user or server, need encryption turned on for the Linux system.
Then manually add in the users from the Linux server using the smbadduser command....

Should be a goer after this....
 
Old 10-06-2002, 11:15 AM   #7
NickPGSmith
LQ Newbie
 
Registered: Oct 2002
Location: Lingfield, Surrey, UK.
Posts: 1

Rep: Reputation: 0
XP Pro w/s, RHat 7.2 PDC

I have been able to get XP Pro workstation to authenticate off a RedHat 7.2 PDC (which in turn uses OpenLDAP, by the way), but needed the following trick:

Registry Hack:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\netlogon\parameters
"RequireSignOrSeal"=dword:00000000

Or, though the GUI: Control Panel->Administrative Tools->Local Security Settings->Local Policies->Security Options->Domain Member: Digitally encrupt or sign... SET THIS TO DISABLED.

Cheers
Nick
 
Old 10-08-2002, 11:34 PM   #8
R0N1N
Member
 
Registered: Sep 2002
Location: United States
Distribution: Slackware 8.1, 9.0 / Debian 3.0
Posts: 44

Original Poster
Rep: Reputation: 15
Thank you for the above posts, but... The problem isn't that Windows XP can't browse the network and access the samba share. I have no problem access shares through the workgroup if I create a user on the XP box that has access. That is not the point of a PDC. It is used as a central point for authenticating any domain user from any machine.

Thanks NickPGSmith!

Quote:
Registry Hack:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\netlogon\parameters
"RequireSignOrSeal"=dword:00000000

Or, though the GUI: Control Panel->Administrative Tools->Local Security Settings->Local Policies->Security Options->Domain Member: Digitally encrupt or sign... SET THIS TO DISABLED.
I'll try that right away...although, I hope samba has an update that resolves this issue so I won't have to do that on all future machines that run winxp.

(MS seems to be trying their best to disallow non-MS PDC's)
 
Old 10-10-2002, 07:52 PM   #9
lmillis
LQ Newbie
 
Registered: Sep 2002
Location: Orange County, CA USA
Distribution: RED HAT 7.2
Posts: 2

Rep: Reputation: 0
The problem I am having is similar, I think. When I try to join the XP PRo machines to the Linux PDC, XP asks for an account with permission to join the domain. What ever account name i try to use comes back with "Access Denied" on the XP box. I am running Red Hat 7.3. Are we on the same page, RON1N?
 
Old 10-13-2002, 03:02 PM   #10
gizbon
LQ Newbie
 
Registered: Oct 2002
Location: Dublin Ireland
Distribution: Redhat 7.2 and 8.0
Posts: 27

Rep: Reputation: 15
I have the exact same problem and if anybody sorts it out I would love to hear
 
Old 10-14-2002, 10:11 AM   #11
R0N1N
Member
 
Registered: Sep 2002
Location: United States
Distribution: Slackware 8.1, 9.0 / Debian 3.0
Posts: 44

Original Poster
Rep: Reputation: 15
lmillis : Yes, I think we are dealing with the same problem, as long as you can get a winnt or win2k box to join without a problem. I haven't gotten a chance to try the regedit yet on the XP machine yet. I was on vacation.
 
Old 10-14-2002, 04:16 PM   #12
gizbon
LQ Newbie
 
Registered: Oct 2002
Location: Dublin Ireland
Distribution: Redhat 7.2 and 8.0
Posts: 27

Rep: Reputation: 15
I got this from a news group but still having trouble if someone else can make it happen let us know

As you point out you have a PDC!!! set up on samba.
A PDC is a primary DOMAIN controller. So far so good. You can use this pdc
with win9x clients without any problem. The only thing is that win9x clients
aren't part of a DOMAIN. they just browse a workgroup.
In order for a win2k, winXP client to join the DOMAIN, the PDC must tell it
that it is allowed to.
For that you MUST have a machine trust account on the PDC.
With samba you just make a user with the machine name (add it to
/etc/passwd) but you must add a '$' on the end.
for the machine name XP_machine -> XP_machine$
Next step is to add the same user to the samba password file (if you use
encrypted passwords, which you should)
'smbpasswd -a -m XP_machine'
that should solve the problem on the samba pdc.

next you must join the xp machine to the domain (done from windows.
right-click My Computer, Properties, Network Identification, the Join the
domain)
 
Old 10-15-2002, 04:40 PM   #13
R0N1N
Member
 
Registered: Sep 2002
Location: United States
Distribution: Slackware 8.1, 9.0 / Debian 3.0
Posts: 44

Original Poster
Rep: Reputation: 15
Quote:
For that you MUST have a machine trust account on the PDC.
With samba you just make a user with the machine name
(add it to /etc/passwd) but you must add a '$' on the end.
for the machine name XP_machine -> XP_machine$
Next step is to add the same user to the samba password file
(if you use encrypted passwords, which you should)
'smbpasswd -a -m XP_machine'
that should solve the problem on the samba pdc.
Yes, I know. As I stated before... I have no problem getting the EVERY other version of windows to logon to this domain. I know all too well how to setup a Samba Primary Domain Controller and add machine names to the domain. That was not my question.
Quote:
A PDC is a primary DOMAIN controller. So far so good. You can use this pdc with win9x clients without any problem. The only thing is that win9x clients aren't part of a DOMAIN. they just browse a workgroup.
That is a false statement. Windows 95 and 98 CAN LOGON to a Samba or WindowsNT Domain. They are NOT limited to just workgroup access. WindowsXP is the only one that does not want to play nice with Samba by default. It appears you HAVE to edit the registry to make it possible.

gizbon : FYI
Why the hell do you think I said "PDC". I said PDC because that's what it is. It really pisses me off when people don't read the other posts on a thread and then try to be a smartass and post useless info.
 
Old 10-16-2002, 10:15 AM   #14
lmillis
LQ Newbie
 
Registered: Sep 2002
Location: Orange County, CA USA
Distribution: RED HAT 7.2
Posts: 2

Rep: Reputation: 0
RON1 I GOT IT!!!
Finally! Here are the mistakes i made and how i fixed them. First mistake was adding the machine account incorrectly. I needed to add it from the command line, not the gui. Here's the exact syntax i used:

/usr/sbin/useradd -d /dev/null -c "machine id" - s /bin/false machine_name$
Next passwd -l machine_name$

Make certain you have an entry for Root in the smbpasswd with the correct password. ( you probably already have done this).
Then restart the smb service.

On the XP Box: Go to control panel> Administrative Tools> Local Security Policy > Local Policies > Security Options > Then disable the six or seven items that have to do with "DOmain Member."

Then do the regedit > HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\netlogon\parameters
"RequireSignOrSeal"=dword:00000000

Then go to join the domain. I almost cried when I got the message "Welcome the Student Domain"

If I forgot anything, email me and I'll be glad to help!!!
 
Old 10-16-2002, 01:00 PM   #15
R0N1N
Member
 
Registered: Sep 2002
Location: United States
Distribution: Slackware 8.1, 9.0 / Debian 3.0
Posts: 44

Original Poster
Rep: Reputation: 15
Looks good. Congrats lmillis
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
samba 3 problem - samba PDC can not join to the domain ananthak Linux - Networking 1 05-21-2006 10:39 AM
Fedora Core 3 WindowsXP and Samba NomadABC Linux - Networking 61 01-28-2005 02:02 PM
Fedora2 Samba and WindowsXP joncolby Linux - Networking 0 06-18-2004 01:55 PM
Adding WindowsXP Professional to a Samba3 domain.(password problem) slyth1982 Linux - Networking 0 05-05-2004 11:05 AM
WindowsXP cant see samba. HELP ME! ratbert90 Linux - Networking 15 06-03-2003 01:33 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 04:02 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration