Skip site navigation (1)Skip section navigation (2)
Date:      30 Oct 2002 19:51:10 +0000
From:      Stacey Roberts <stacey@Demon.vickiandstacey.com>
To:        FreeBSD Questions <freebsd-questions@FreeBSD.ORG>
Subject:   Joining Win2K client to samba PDC running on FreeBSD4.7
Message-ID:  <1036007471.398.106.camel@Demon.vickiandstacey.com>

next in thread | raw e-mail | index | archive | help

--=-i+zd4s0bNJ0XdD9GLw6o
Content-Type: multipart/mixed; boundary="=-j/to9unj2/ZOIcjHxKVe"


--=-j/to9unj2/ZOIcjHxKVe
Content-Type: text/plain
Content-Transfer-Encoding: quoted-printable

Hello,
     Sorry about asking this here, but I've googled, read (over and
over) the Samba How-To included with the source distro, run through the
"diagnostics.txt" test doc successfully, and finally trolled various
posting to samba lists at http://marc.theaimsgroup.com, and haven't been
able to sort this out.

I have samba version 2.2.6 running on FreeBSD 4.7 configured as a PDC. I
have two Win2K clients that I would like to join to the samba controlled
domain.=20

I have done the following:
1] Manually entered the machine account in /etc/passwd with trailing $
2] Added machine account with smbpasswd -a -m <Win2KBox$>
3] Added an account for root (su -) in smbpasswd file

From the Win2K boxes, I can see samba shares and users' respective home
dirs okay, and users connections are displayed correctly in swat.

Where things fall apart is the joining to the domain bit. This is the
procedure I am using:
1] Reboot Win2K box
2] Log in as ADMINSTRATOR
3] Go SYSTEM>NETWORK IDENTIFICATION>PROPERTIES
4] Click "Domain" radio button
5] Enter "Domain name", Click "OK"
6] Enter "root" & root's smbpasswd in log in dialogue box that appears.

The error I get is "The specified user does not exist.

Strange stuff now begins (at least for me). Here's what I get in
messages:
Oct 30 19:27:10 <snip> smbd[39222]: [2002/10/30 19:27:10, 0]
smbd/service.c:make_connection(381)=20
Oct 30 19:27:10 <snip> smbd[39222]:   make_connection: root logged in as
admin user (root privileges)=20
Oct 30 19:27:29 <snip> smbd[39235]: [2002/10/30 19:27:29, 0]
smbd/service.c:make_connection(381)=20
Oct 30 19:27:29 <snip> smbd[39235]:   make_connection: root logged in as
admin user (root privileges)=20
Oct 30 19:27:42 <snip> smbd[39236]: [2002/10/30 19:27:42, 0]
smbd/service.c:make_connection(381)

The above are the result of my repeated attempts to log on the Win2K box

This shows up in log.nmbd:
# tail -30 /var/log/log.nmbd
[2002/10/30 19:27:19, 1]
nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 192.168.1.6: code =3D 0x12
[2002/10/30 19:27:28, 1]
nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 192.168.1.6: code =3D 0x12
[2002/10/30 19:27:28, 1]
nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from 192.168.1.6: code =3D 0x12
[2002/10/30 19:27:29, 1]
nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from W2kIP>: code =3D 0x7
[2002/10/30 19:27:33, 1]
nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from W2kIP>: code =3D 0x12
[2002/10/30 19:27:41, 1]
nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from W2kIP>: code =3D 0x12
[2002/10/30 19:27:41, 1]
nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from W2kIP>: code =3D 0x12
[2002/10/30 19:27:41, 1]
nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from <W2kIP>: code =3D 0x7
[2002/10/30 19:27:45, 1]
nmbd/nmbd_processlogon.c:process_logon_packet(69)
  process_logon_packet: Logon from <W2kIP>: code =3D 0x12
[2002/10/30 19:27:57, 1]
nmbd/nmbd_processlogon.c:process_logon_packet(69)

Are there any list members that have been able to get this to work at
all? I've attached my smb.conf file for your perusal. At best, I'm not
looking for *the* answers here. I'd really just appreciate someone
informing me of what I'm doing wrong here and where I might find a
solution.

TIA
Stacey
--=20
Stacey Roberts
B.Sc (HONS) Computer Science

Web: www.vickiandstacey.com


--=-j/to9unj2/ZOIcjHxKVe
Content-Disposition: attachment; filename=smb.conf
Content-Type: text/plain; name=smb.conf; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash)=20
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not many any basic syntactic errors.=20
#
#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D Glob=
al Settings =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
[global]

# workgroup =3D NT-Domain-Name or Workgroup-Name, eg: REDHAT4
   netbios name =3D DEMON
   workgroup =3D VICKIANDSTACEY

# server string is the equivalent of the NT Description field
   server string =3D Samba Server

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The
# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
   hosts allow =3D 192.168.1. 127.

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
   load printers =3D yes

# you may wish to override the location of the printcap file
;   printcap name =3D /etc/printcap

# on SystemV system setting printcap name to lpstat should allow
# you to automatically obtain a printer list from the SystemV spool
# system
;   printcap name =3D lpstat

# It should not be necessary to specify the print system type unless
# it is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
;   printing =3D bsd

# Uncomment this if you want a guest account, you must add this to /etc/pas=
swd
# otherwise the user "nobody" is used
;  guest account =3D pcguest

# this tells Samba to use a separate log file for each machine
# that connects
   log file =3D /var/log/log.%m
   log level =3D 2

# Put a capping on the size of the log files (in Kb).
   max log size =3D 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
   security =3D user

# Administrator Section
admin users =3D @wheel
domain admin group =3D @wheel

# Use password server option only with security =3D server
# The argument list may include:
#   password server =3D My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
#   password server =3D *
;   password server =3D <NT-Server-Name>

# Note: Do NOT use the now deprecated option of "domain controller"
# This option is no longer implemented.

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
  encrypt passwords =3D yes

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include =3D /usr/local/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
# You may want to add the following on a Linux system:
#         SO_RCVBUF=3D8192 SO_SNDBUF=3D8192
   socket options =3D TCP_NODELAY=20

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
;   interfaces =3D 192.168.12.2/24 192.168.13.2/24=20

# Browser Control Options:
# set local master to no if you don't want Samba to become a master
# browser on your network. Otherwise the normal election rules apply
   local master =3D yes

# OS Level determines the precedence of this server in master browser
# elections. The default value should be reasonable
   os level =3D 64

# Domain Master specifies Samba to be the Domain Master Browser. This
# allows Samba to collate browse lists between subnets. Don't use this
# if you already have a Windows NT domain controller doing this job
   domain master =3D yes=20

# Preferred Master causes Samba to force a local browser election on startu=
p
# and gives it a slightly higher chance of winning the election
   preferred master =3D yes

# Enable this if you want Samba to be a domain logon server for=20
# Windows95 workstations.=20
   domain logons =3D yes

# if you enable domain logons then you may want a per-machine or
# per user logon script
# run a specific logon batch file per workstation (machine)
;   logon script =3D %m.bat
# run a specific logon batch file per username
   logon script =3D %U.bat

# Where to store roving profiles (only for Win95 and WinNT)
#        %L substitutes for this servers netbios name, %U is username
#        You must uncomment the [Profiles] share below
   logon path =3D \\%L\Profiles\%U
   logon drive =3D H:

# Windows Internet Name Serving Support Section:
# WINS Support - Tells the NMBD component of Samba to enable it's WINS Serv=
er
   wins support =3D yes

# WINS Server - Tells the NMBD components of Samba to be a WINS Client
#	Note: Samba can be either a WINS Server, or a WINS Client, but NOT both
;   wins server =3D w.x.y.z

# WINS Proxy - Tells Samba to answer name resolution queries on
# behalf of a non WINS capable client, for this to work there must be
# at least one	WINS Server on the network. The default is NO.
;   wins proxy =3D yes

# DNS Proxy - tells Samba whether or not to try to resolve NetBIOS names
# via DNS nslookups. The built-in default for versions 1.9.17 is yes,
# this has been changed in version 1.9.18 to no.
   dns proxy =3D yes=20

# Client codepage settings

# for Greek users
; client code page=3D737

# for European users (Latin 1)
; client code page=3D850

# for European users (Latin 2)
; client code page=3D852

# for Icelandic users
; client code page=3D861

# for Cyrillic users
; client code page=3D866

# for Japanese Users
; client code page=3D932
; coding system=3Dcap

# for Simplified Chinese Users
; client code page=3D936
; coding system=3Dcap

# for Korean Users
; client code page=3D949
; coding system=3Dcap

# for Traditional Chinese Users
; client code page=3D950
; coding system=3Dcap

#=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D Share Definitions =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
[homes]
   comment =3D Home Directories
   browseable =3D no
   writeable =3D yes
# Un-comment the following two lines to add a recycle bin facility to a sam=
ba share
# NOTE: It currently doesn't work with the [homes] virtual share, use a reg=
ular share instead
;  vfs object =3D /usr/local/lib/samba/recycle.so
;  vfs options=3D recycle=3D.recycle

# Un-comment the following and create the netlogon directory for Domain Log=
ons
 [netlogon]
   comment =3D Network Logon Service
   path =3D /usr/local/samba/lib/netlogon
   read only =3D yes
   guest ok =3D no
   writeable =3D no
   share modes =3D no


# Un-comment the following to provide a specific roving profile share
# the default is to use the user's home directory
[Profiles]
    path =3D /usr/local/samba/profiles
    writeable =3D yes
    browseable =3D no
    create mask =3D 0600
    directory mask =3D 0700
    guest ok =3D no


# NOTE: If you have a BSD-style print system there is no need to=20
# specifically define each individual printer
[printers]
   comment =3D All Printers
   path =3D /var/spool/samba
   browseable =3D no
# Set public =3D yes to allow user 'guest account' to print
   guest ok =3D no
   writeable =3D no
   printable =3D yes

# This one is useful for people to share files
;[tmp]
;   comment =3D Temporary file space
;   path =3D /tmp
;   read only =3D no
;   public =3D yes

# A publicly accessible directory, but read only, except for people in
# the "staff" group
;[public]
;   comment =3D Public Stuff
;   path =3D /home/samba
;   public =3D yes
;   writeable =3D yes
;   printable =3D no
;   write list =3D @staff

# Other examples.=20
#
# A private printer, usable only by fred. Spool data will be placed in fred=
's
# home directory. Note that fred must have write access to the spool direct=
ory,
# wherever it is.
;[fredsprn]
;   comment =3D Fred's Printer
;   valid users =3D fred
;   path =3D /homes/fred
;   printer =3D freds_printer
;   public =3D no
;   writeable =3D no
;   printable =3D yes

# A private directory, usable only by fred. Note that fred requires write
# access to the directory.
;[fredsdir]
;   comment =3D Fred's Service
;   path =3D /usr/somewhere/private
;   valid users =3D fred
;   public =3D no
;   writeable =3D yes
;   printable =3D no

# a service which has a different directory for each machine that connects
# this allows you to tailor configurations to incoming machines. You could
# also use the %U option to tailor it by user name.
# The %m gets replaced with the machine name that is connecting.
;[pchome]
;  comment =3D PC Directories
;  path =3D /usr/pc/%m
;  public =3D no
;  writeable =3D yes

# A publicly accessible directory, read/write to all users. Note that all f=
iles
# created in the directory by users will be owned by the default user, so
# any user with access can delete any other user's files. Obviously this
# directory must be writeable by the default user. Another user could of co=
urse
# be specified, in which case all files would be owned by that user instead=
.
;[public]
;   path =3D /usr/somewhere/else/public
;   public =3D yes
;   only guest =3D yes
;   writeable =3D yes
;   printable =3D no
# Un-comment the following two lines to add a recycle bin facility to a sam=
ba share
;  vfs object =3D /usr/local/lib/samba/recycle.so
;  vfs options=3D recycle=3D.recycle

# The following two entries demonstrate how to share a directory so that tw=
o
# users can place files there that will be owned by the specific users. In =
this
# setup, the directory should be writeable by both users and should have th=
e
# sticky bit set on it to prevent abuse. Obviously this could be extended t=
o
# as many users as required.
;[myshare]
;   comment =3D Mary's and Fred's stuff
;   path =3D /usr/somewhere/shared
;   valid users =3D mary fred
;   public =3D no
;   writeable =3D yes
;   printable =3D no
;   create mask =3D 0765



--=-j/to9unj2/ZOIcjHxKVe--

--=-i+zd4s0bNJ0XdD9GLw6o
Content-Type: application/pgp-signature; name=signature.asc
Content-Description: This is a digitally signed message part

-----BEGIN PGP SIGNATURE-----
Version: PGP 6.5.8

iQEVAwUAPcA4K5vQeubckvvXAQHzOgf6A6JvaWpgQ1I10JLtAhXYQrfp4r2Yim0F
+cizSW+f8u0PNilFsV6tsHQbe9yCi60Qg402eaCdDBsKOmKA8DdLSqAdxGGoZccm
aNSRejMaeoalkIKWU2nIn4wWbUp3LyUj0uxBOt7L2PLBoL0sPYiQiiho3ikmoBD3
0gIMs8920oAcMdpNdya9w00f8OoCNGoyxdCQBGQXr6cWxrtgbRdUgHwtdNCKjs2k
apxI1H3C4guS0wCBbt+vzUreMl6QotLsE6TV0cm5qRDKGYCeAtacloi51U6TJAHp
fSb7bP/aUL87jbji3BCsvvusEjw/UBOFB+11zSdcwxm6cBd9jSuBww==
=VU53
-----END PGP SIGNATURE-----

--=-i+zd4s0bNJ0XdD9GLw6o--


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1036007471.398.106.camel>