LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices

Reply
 
Search this Thread
Old 12-20-2007, 06:01 AM   #1
vedang
Member
 
Registered: May 2006
Posts: 89

Rep: Reputation: 15
Samba PDC error while adding XP machine.


Hi,

I have configured smb.conf file for samba to work as a PDC.
While I run testparm it shows no errors.
I have also added hosts to /etc/passwd file like

host$:x:500:500:XP Host:/dev/null:/bin/false

then manually added host using following command with no error.

smbpasswd -a -m host

I also added root and other users to samba and applied samba passwords to them.

I am givinf my smb.conf file as below.


[global]

workgroup = ABC

server string = Samba/NT PDC
hosts allow = 192.168.0.

netbios name = linux

security = user

#unix password sync = yes
encrypt passwords = yes
smb passwd file = /etc/samba/smbpasswd
unix password sync = Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %nn

preferred master = yes
domain master = yes
local master = yes
os level = 64
add user script = /usr/sbin/useradd -d /dev/null -g 100 - /bin/false -M %u

domain logons = yes
logon script = %m.bat
logon script = netlogon.bat
logon script = logon.cmd

[netlogon]
path = /etc/samba/netlogon
writeable = no
write list = ntadmin

[profiles]
path = /usr/smb/ntprofile
writeable = yes
create mask = 0600
directory mask = 0700

All users are listed in smbpasswd file too.

Problem occurs when I try to add this XP machine to domain.

When I try to add it with a non root user it shows

Permissions denied.

And when I try to add it with root user it shows

The specified user does not exists.

I have checked a lot about all of this and log at /var/log/samba/smbd.log shows like this

[2002/01/17 05:11:58, 0] rpc_server/srv_pipe.c:api_pipe_bind_req(993)
api_pipe_bind_req: unknown auth type 1 requested.

From this error one can definitely figure it out that it is a authentication related problem. But I cannot find out the exact problem.


Please help me as it is top most urgent.


THANKS IN ADVANCE.
 
Old 12-20-2007, 08:03 AM   #2
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL 4
Posts: 360

Rep: Reputation: 29
Okay can you tell that what OS you are using if XP then it needs some editing within registry to get your xp machines working with PDC.
 
Old 12-20-2007, 08:21 AM   #3
vedang
Member
 
Registered: May 2006
Posts: 89

Original Poster
Rep: Reputation: 15
Samba pdc problem.

Thanks for reply.


Yes,

I want to add xp machine to samba PDC.

Please let me know what changes I need to make in the registry so that I can join my xp machine to samba based PDC.
 
Old 12-20-2007, 08:36 AM   #4
kool_kid
Member
 
Registered: Sep 2004
Location: Dubai, UAE
Distribution: RHL
Posts: 350

Rep: Reputation: 30
add this to your global section

add machine script = /usr/sbin/useradd -d /dev/null -g <Group name> -s /bin/false -M %u

<Group name> should be replaced with a name of the group you create.
 
Old 12-20-2007, 09:10 AM   #5
jschiwal
Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655Reputation: 655
Are these XP Home or XP professional?
XP Home edition is crippled and can not join a domain.

I haven't seen something like "host$:x:500:500:XP Host:/dev/null:/bin/false" before.

You might want to look at the Samba 3 by Example book. It is supplied either by your samba package or a samba-doc package, depending on your distro. Chapters 2 & 3 will take you step by step on setting up a samba PDC. The Samba 3 HOWTO & Reference Guide also has a section on a Stand Alone PDC server.

Here is a sample script that is in Chapter 2 of Samba 3 by Example. While you wouldn't use this exact script, is shows mapping Windows domain groups to Linux groups.

Code:
#!/bin/bash
#
# initGrps.sh
#
# Create UNIX groups
groupadd acctsdep
groupadd finsrvcs
# Map Windows Domain Groups to UNIX groups
net groupmap add ntgroup="Domain Admins" unixgroup=root type=d
net groupmap add ntgroup="Domain Users" unixgroup=users type=d
net groupmap add ntgroup="Domain Guests" unixgroup=nobody type=d
# Add Functional Domain Groups
net groupmap add ntgroup="Accounts Dept" unixgroup=acctsdep type=d
net groupmap add ntgroup="Financial Services" unixgroup=finsrvcs type=d
Here is the [Global] section this example uses:
Code:
[global]
workgroup = BILLMORE
passwd chat = *New*Password* \
%n\n *Re-enter*new*password* %n\n *Password*changed*
username map = /etc/samba/smbusers
syslog = 0
name resolve order = wins bcast hosts
printcap name = CUPS
show add printer wizard = No
add user script = /usr/sbin/useradd -m ’%u’
delete user script = /usr/sbin/userdel -r ’%u’
add group script = /usr/sbin/groupadd ’%g’
delete group script = /usr/sbin/groupdel ’%g’
add user to group script = /usr/sbin/usermod -G ’%g’ ’%u’
add machine script = /usr/sbin/useradd
-s /bin/false -d /var/lib/nobody ’%u’
logon script = scripts\logon.bat
logon path =
logon drive = X:
domain logons = Yes
preferred master = Yes
wins support = Yes
There are more things to consider such as the ownership & permissions of the directories being shared, the /etc/nsswitch.conf setup, etc.

This is from their Q&A for the Chapter 2 example:
Quote:
10. Q: How can I manage user accounts from my Windows XP Professional
workstation?
A: Samba-3 implements a Windows NT4-style security domain architecture.
This type of Domain cannot be managed using tools present on a Windows
XP Professional installation. You may download from the Microsoft Web
site the SRVTOOLS.EXE package. Extract it into the directory from which
you wish to use it. This package extracts the tools: User Manager for
Domains, Server Manager, and Event Viewer. You may use the User
Manager for Domains to manage your Samba-3 Domain user and group
accounts. Of course, you do need to be logged on as the Administrator for
the Samba-3 Domain. It may help to log on as the root account.
Also look at the Using Samba book supplied by the samba package.
 
Old 12-21-2007, 12:11 AM   #6
vedang
Member
 
Registered: May 2006
Posts: 89

Original Poster
Rep: Reputation: 15
Samba PDC problem.

Thanks for the reply.

I will try and let you know if it works.

By the way I am using Win XP Professional to join to Samba PDC.
 
Old 12-21-2007, 09:36 AM   #7
shahz
Member
 
Registered: Sep 2006
Location: Quetta, Pakistan
Distribution: RHEL 4
Posts: 360

Rep: Reputation: 29
check this out it worked for me

Configure Windows XP clients
You should start the process for Windows XP clients by a complete Windows Update. After the release of Service Pack 2, Microsoft Windows way of dealing with profile has changed a bit. You will need to start by login into your Windows XP client locally as Administrator and execute :

gpedit.msc
then, you must navigate to :

Local Computer Policy / Computer Configuration / Administrative Templates / System / User Profiles
and change the setting of the key 'Do not check for user ownership of Roaming Profile Folders' from 'Not Configured' to 'Enable'. If that key is not present, you should try visiting Windows Update again. Then you can use 'File / Exit'. This is needed because WinXP actually checks ACL Permission in your profile file system (which isn't really that easy to develop under *NIX). Once this is completed, you can procede as for Windows 2000.

Alternatively, you can add the following registry key:

[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\System]
"CompatibleRUPSecurity"=dword:00000001
More simple
add this in [profile] section in samba 3.25 (see man smb.conf for more details)

[profile]
profile acls = yes


thanks
 
Old 07-26-2012, 02:42 AM   #8
uk.engr
Member
 
Registered: Apr 2012
Posts: 131

Rep: Reputation: Disabled
Please let me know I have tried various tutorials to configure samba PDC. But can not join Win XP professional to samba PDC. Is it necessary to have DNS server configured for Samba PDC server?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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.0 as PDC - adding computer accounts help bburnham1141 Linux - Networking 7 05-07-2009 08:22 PM
Apply NT4 policy to XP machine with samba PDC paul_mat Linux - Networking 2 02-21-2006 07:50 AM
Adding Linux Clients to Samba PDC, 2 things RaVilj Linux - Networking 1 09-27-2005 05:42 PM
working SAMBA PDC and DHCP on single machine?? hasnain Linux - Networking 1 01-05-2005 05:25 AM
Slackware machine as SAMBA PDC and mail server MS3FGX Linux - Networking 8 04-19-2004 06:52 AM


All times are GMT -5. The time now is 06:22 PM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration