[Samba] Re: REVISED: Nobody can join domain (was W2K can't join
3.0.7 domain)
Igor Belyi
sambauser at katehok.ac93.org
Tue Oct 19 16:17:40 GMT 2004
This log shows no attempts to join domain at all - only initial
initialization of Samba.
Can you check the time written in the log and time you attempt to join
the domain? What do you do to join the domain? What error message do you
get while attempting to join the domain?
Igor
Misty Stanley-Jones wrote:
> On Tuesday 19 October 2004 09:32, Igor Belyi wrote:
>
>>There could be number of reasons why you can't join domain. The best way
>>to investigate your problem is to look in smbd log for error messages.
>
>
> There are no errors in the log. See the entire level 10 log for the time when
> I attempted to join the domain from my Linux box:
> [2004/10/19 10:10:42, 6] param/loadparm.c:lp_file_list_changed(2681)
> lp_file_list_changed()
> file /usr/local/samba/lib/bhpro.smb -> /usr/local/samba/lib/bhpro.smb last
> mod_time: Mon Oct 18 14:46:33 2004
>
> file /usr/local/samba/lib/printers.smb -> /usr/local/samba/lib/printers.smb
> last mod_time: Fri Oct 8 08:47:47 2004
>
> file /usr/local/samba/lib/smb.conf -> /usr/local/samba/lib/smb.conf last
> mod_time: Mon Oct 18 17:00:56 2004
>
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_KEEPALIVE = 1
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_REUSEADDR = 1
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_BROADCAST = 0
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option TCP_NODELAY = 1
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option IPTOS_LOWDELAY = 0
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option IPTOS_THROUGHPUT = 0
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_SNDBUF = 16384
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_RCVBUF = 87380
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_SNDLOWAT = 1
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_RCVLOWAT = 1
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_SNDTIMEO = 0
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_RCVTIMEO = 0
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_KEEPALIVE = 1
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_REUSEADDR = 1
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_BROADCAST = 0
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option TCP_NODELAY = 1
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option IPTOS_LOWDELAY = 0
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option IPTOS_THROUGHPUT = 0
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_SNDBUF = 16384
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_RCVBUF = 87380
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_SNDLOWAT = 1
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_RCVLOWAT = 1
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_SNDTIMEO = 0
> [2004/10/19 10:10:42, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_RCVTIMEO = 0
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:make_pdb_context_list(763)
> Trying to load: ldapsam:ldap://localhost
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:smb_register_passdb(93)
> Attempting to register passdb backend ldapsam
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:smb_register_passdb(106)
> Successfully added passdb backend 'ldapsam'
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:smb_register_passdb(93)
> Attempting to register passdb backend ldapsam_compat
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:smb_register_passdb(106)
> Successfully added passdb backend 'ldapsam_compat'
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:smb_register_passdb(93)
> Attempting to register passdb backend smbpasswd
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:smb_register_passdb(106)
> Successfully added passdb backend 'smbpasswd'
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:smb_register_passdb(93)
> Attempting to register passdb backend tdbsam
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:smb_register_passdb(106)
> Successfully added passdb backend 'tdbsam'
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:smb_register_passdb(93)
> Attempting to register passdb backend guest
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:smb_register_passdb(106)
> Successfully added passdb backend 'guest'
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:make_pdb_methods_name(648)
> Attempting to find an passdb backend to match ldapsam:ldap://localhost
> (ldapsam)
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:make_pdb_methods_name(669)
> Found pdb backend ldapsam
> [2004/10/19 10:10:42, 2] lib/smbldap.c:smbldap_search_domain_info(1319)
> Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=CORP1))]
> [2004/10/19 10:10:42, 5] lib/smbldap.c:smbldap_search(963)
> smbldap_search: base => [dc=borkholder,dc=com], filter =>
> [(&(objectClass=sambaDomain)(sambaDomainName=CORP1))], scope => [2]
> [2004/10/19 10:10:42, 10] lib/smbldap.c:smbldap_open_connection(542)
> smbldap_open_connection: ldap://localhost
> [2004/10/19 10:10:42, 2] lib/smbldap.c:smbldap_open_connection(638)
> smbldap_open_connection: connection opened
> [2004/10/19 10:10:42, 10] lib/smbldap.c:smbldap_connect_system(769)
> ldap_connect_system: Binding to ldap server ldap://localhost as
> "cn=Manager,dc=borkholder,dc=com"
> [2004/10/19 10:10:42, 3] lib/smbldap.c:smbldap_connect_system(804)
> ldap_connect_system: succesful connection to the LDAP server
> [2004/10/19 10:10:42, 4] lib/smbldap.c:smbldap_open(855)
> The LDAP server is succesfully connected
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:make_pdb_methods_name(672)
> pdb backend ldapsam:ldap://localhost has a valid init
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:make_pdb_methods_name(648)
> Attempting to find an passdb backend to match guest (guest)
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:make_pdb_methods_name(669)
> Found pdb backend guest
> [2004/10/19 10:10:42, 5] passdb/pdb_interface.c:make_pdb_methods_name(672)
> pdb backend guest has a valid init
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_KEEPALIVE = 1
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_REUSEADDR = 1
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_BROADCAST = 0
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option TCP_NODELAY = 1
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option IPTOS_LOWDELAY = 0
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option IPTOS_THROUGHPUT = 0
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_SNDBUF = 16384
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_RCVBUF = 87380
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_SNDLOWAT = 1
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_RCVLOWAT = 1
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_SNDTIMEO = 0
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_RCVTIMEO = 0
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_KEEPALIVE = 1
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_REUSEADDR = 1
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_BROADCAST = 0
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option TCP_NODELAY = 1
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option IPTOS_LOWDELAY = 0
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option IPTOS_THROUGHPUT = 0
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_SNDBUF = 16384
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_RCVBUF = 87380
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_SNDLOWAT = 1
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_RCVLOWAT = 1
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_SNDTIMEO = 0
> [2004/10/19 10:10:44, 5] lib/util_sock.c:print_socket_options(147)
> socket option SO_RCVTIMEO = 0
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:make_pdb_context_list(763)
> Trying to load: ldapsam:ldap://localhost
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:smb_register_passdb(93)
> Attempting to register passdb backend ldapsam
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:smb_register_passdb(106)
> Successfully added passdb backend 'ldapsam'
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:smb_register_passdb(93)
> Attempting to register passdb backend ldapsam_compat
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:smb_register_passdb(106)
> Successfully added passdb backend 'ldapsam_compat'
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:smb_register_passdb(93)
> Attempting to register passdb backend smbpasswd
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:smb_register_passdb(106)
> Successfully added passdb backend 'smbpasswd'
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:smb_register_passdb(93)
> Attempting to register passdb backend tdbsam
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:smb_register_passdb(106)
> Successfully added passdb backend 'tdbsam'
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:smb_register_passdb(93)
> Attempting to register passdb backend guest
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:smb_register_passdb(106)
> Successfully added passdb backend 'guest'
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:make_pdb_methods_name(648)
> Attempting to find an passdb backend to match ldapsam:ldap://localhost
> (ldapsam)
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:make_pdb_methods_name(669)
> Found pdb backend ldapsam
> [2004/10/19 10:10:44, 2] lib/smbldap.c:smbldap_search_domain_info(1319)
> Searching for:[(&(objectClass=sambaDomain)(sambaDomainName=CORP1))]
> [2004/10/19 10:10:44, 5] lib/smbldap.c:smbldap_search(963)
> smbldap_search: base => [dc=borkholder,dc=com], filter =>
> [(&(objectClass=sambaDomain)(sambaDomainName=CORP1))], scope => [2]
> [2004/10/19 10:10:44, 10] lib/smbldap.c:smbldap_open_connection(542)
> smbldap_open_connection: ldap://localhost
> [2004/10/19 10:10:44, 2] lib/smbldap.c:smbldap_open_connection(638)
> smbldap_open_connection: connection opened
> [2004/10/19 10:10:44, 10] lib/smbldap.c:smbldap_connect_system(769)
> ldap_connect_system: Binding to ldap server ldap://localhost as
> "cn=Manager,dc=borkholder,dc=com"
> [2004/10/19 10:10:44, 3] lib/smbldap.c:smbldap_connect_system(804)
> ldap_connect_system: succesful connection to the LDAP server
> [2004/10/19 10:10:44, 4] lib/smbldap.c:smbldap_open(855)
> The LDAP server is succesfully connected
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:make_pdb_methods_name(672)
> pdb backend ldapsam:ldap://localhost has a valid init
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:make_pdb_methods_name(648)
> Attempting to find an passdb backend to match guest (guest)
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:make_pdb_methods_name(669)
> Found pdb backend guest
> [2004/10/19 10:10:44, 5] passdb/pdb_interface.c:make_pdb_methods_name(672)
> pdb backend guest has a valid init
>
> Here is the global section of my smb.conf:
> [global]
> preexec = /bin/echo %u at %m connected to //%L/%S on %T >>/tmp/smblog
> workgroup = CORP1
> netbios name = CORPSRV
> username map = /usr/local/samba/lib/smbusers
> log file = /data/samba/log/%m.log
> log level = 10
> max log size = 50
> debug timestamp = yes
> logon script = logon.bat
> logon path = \\%L\profiles\%U\%a
> logon drive = J:
> logon home = \\%L\%U
> time server = yes
> printing = cups
> printcap = cups
> # The follow will ensure that the client-side driver gets used instead of the
> # UNIX driver
> print command = /usr/bin/lpr -P %p -o raw %s -r
> load printers = yes
> wins support = yes
> domain logons = yes
> os level = 100
> preferred master = yes
> domain master = yes
> passdb backend = ldapsam:ldap://localhost
> pam password change = yes
> ldap suffix = dc=borkholder,dc=com
> ldap admin dn = cn=Manager,dc=borkholder,dc=com
> ldap group suffix = ou=Groups
> ldap user suffix = ou=People
> ldap machine suffix = ou=Computers
> ldap idmap suffix = ou=People
> ldap ssl = no
> add user script = /usr/local/sbin/smbldap-useradd -m "%u"
> ldap delete dn = No
> add machine script = /usr/local/sbin/smbldap-useradd -w "%u"
> add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
> add user to group script = /usr/local/sbin/smbldap-groupmod -m "%u" "%g"
> delete user from group script = /usr/local/sbin/smbldap-groupmod -x "%u" "%g"
> set primary group script = /usr/local/sbin/smbldap-usermod -g "%g" "%u"
> admin users = root @"Domain Admins"
> printer admin = root @"Domain Admins"
> #socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
> deadtime = 60
> use sendfile = no
>
>
>
>>Igor
>>
>>Misty Stanley-Jones wrote:
>>
>>>On Monday 18 October 2004 14:51, Misty Stanley-Jones wrote:
>>>
>>>>W2K reports "User not found" when I try to join the domain. However, the
>>>>machine account is indeed created in LDAP! But the machine doesn't think
>>>>it has joined.
>>>
>>>I also can't join from a Linux system. Here is what I get:
>>>
>>>baa:/home/misty # net rpc join -SCORPSRV -U root
>>>Password:
>>>Create of workstation account failed
>>>Unable to join domain CORP1.
>>>
>>>But the machine account is created fine in LDAP, it's in the right ou,
>>>has the right GID and everything. Can someone give me a clue what might
>>>be happening here? I assume it's the same problem with the W2K system as
>>>well.
>>>
>>>Misty
More information about the samba
mailing list