[Samba] Joining samba domain fails
Indexer
indexer at internode.on.net
Tue Jun 8 04:45:20 MDT 2010
I am attempting to join my server to a samba 3.4 domain, and having a few issues. The error it keeps returning is "NT_STATUS_END_OF_FILE" when i attempt to use the net rpc join command. Find my debug output from the command, as well as the serves SMB.conf attached
smb.conf
# Global parameters
[global]
workgroup = CHOCOLATE
server string = Nemo
netbios name = nemo
#hosts allow = 172.24.0. 172.20.0.
#interfaces = em0 tun1
#bind interfaces only = Yes
# passwd backend
encrypt passwords = yes
passdb backend = ldapsam:ldap://firstyear.ath.cx/
enable privileges = yes
pam password change= Yes
passwd program = /usr/bin/passwd %u
passwd chat = *New*UNIX*password* %nn *ReType*new*UNIX*password* %nn * passwd:*all*authentication*tokens*updated*successfully*
unix password sync = Yes
# Log options
log level = 10
log file = /var/log/samba/%m
max log size = 50
syslog = 0
# Name resolution
name resolve order = wins bcast host
# misc
timeserver = Yes
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
use sendfile = yes
veto files = /*.eml/*.nws/*.{*}/
veto oplock files = /*.doc/*.xls/*.mdb/
deadtime = 120
# Dos-Attribute
map hidden = No
map system = No
map archive = No
map read only = No
store dos attributes = Yes
# scripts invoked by samba
add user script = /usr/local/sbin/smbldap-useradd -m %u
delete user script = /usr/local/sbin/smbldap-userdel %u
add group script = /usr/local/sbin/smbldap-groupadd -p %g
delete group script = /usr/local/sbin/smbldap-groupdel %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
add machine script = /usr/local/sbin/smbldap-useradd -w %m
# LDAP-iConfiguration
ldap delete dn = Yes
ldap ssl = start tls
ldap passwd sync = Yes
ldap suffix = dc=chocolate,dc=lan
ldap machine suffix = ou=Computers
ldap user suffix = ou=Users
ldap group suffix = ou=Groups,ou=Domain
ldap idmap suffix = ou=Idmap
ldap admin dn = cn=Manager,dc=chocolate,dc=lan
idmap backend = ldap:ldap://firstyear.ath.cx
idmap uid = 10000-20000
idmap gid = 10000-20000
# logon options
logon script = logon.bat
logon path = \%Lprofiles%u
logon path =
logon home = \%L%U
logon drive = H:
# setting up as domain controller
username map = /usr/local/samba/usermap
preferred master = Yes
wins support = Yes
domain logons = Yes
domain master = Yes
local master = Yes
os level = 64
map acl inherit = Yes
unix charset = UTF8
#============================ Share Definitions ==============================
[netlogon]
comment = Network Logon Service
path = /storage/samba/netlogon
guest ok = yes
locking = no
[homes]
comment = Home Directories
valid users = %S
read only = No
browseable = No
[Profiles]
comment = Network Profiles Service
path = /storage/samba/profiles
read only = No
profile acls = yes
hide files = /desktop.ini/ntuser.ini/NTUSER.*/
profile acls = Yes
[data]
comment = Data Directory
path = /home/data
write list = @smbdomain
read only = No
create mask = 0777
directory mask = 0777
debug log
[root at nemo ~]# net rpc join -d 10 -S 172.24.0.254 -U root
[2010/06/08 20:11:42, 5] lib/debug.c:407(debug_dump_status)
INFO: Current debug levels:
all: True/10
tdb: False/0
printdrivers: False/0
lanman: False/0
smb: False/0
rpc_parse: False/0
rpc_srv: False/0
rpc_cli: False/0
passdb: False/0
sam: False/0
auth: False/0
winbind: False/0
vfs: False/0
idmap: False/0
quota: False/0
acls: False/0
locking: False/0
msdfs: False/0
dmapi: False/0
registry: False/0
[2010/06/08 20:11:42, 3] param/loadparm.c:9040(lp_load_ex)
lp_load_ex: refreshing parameters
[2010/06/08 20:11:42, 3] param/loadparm.c:4848(init_globals)
Initialising global parameters
[2010/06/08 20:11:42, 2] param/loadparm.c:4699(max_open_files)
max_open_files: sysctl_max (11095) below minimum Windows limit (16384)
[2010/06/08 20:11:42, 2] param/loadparm.c:4707(max_open_files)
rlimit_max: rlimit_max (11095) below minimum Windows limit (16384)
[2010/06/08 20:11:42, 3] ../lib/util/params.c:550(pm_process)
params.c:pm_process() - Processing configuration file "/usr/local/etc/smb.conf"
[2010/06/08 20:11:42, 3] param/loadparm.c:7727(do_section)
Processing section "[global]"
doing parameter workgroup = CHOCOLATE
doing parameter server string = Nemo
doing parameter netbios name = nemo
[2010/06/08 20:11:42, 4] param/loadparm.c:7089(handle_netbios_name)
handle_netbios_name: set global_myname to: NEMO
doing parameter encrypt passwords = yes
doing parameter passdb backend = ldapsam:ldap://firstyear.ath.cx/
doing parameter enable privileges = yes
doing parameter pam password change = Yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *New*UNIX*password* %nn *ReType*new*UNIX*password* %nn * passwd:*all*authentication*tokens*updated*successfully*
doing parameter unix password sync = Yes
doing parameter log level = 10
doing parameter log file = /var/log/samba/%m
doing parameter max log size = 50
doing parameter syslog = 0
doing parameter name resolve order = wins bcast host
doing parameter timeserver = Yes
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
doing parameter use sendfile = yes
doing parameter veto files = /*.eml/*.nws/*.{*}/
doing parameter veto oplock files = /*.doc/*.xls/*.mdb/
doing parameter deadtime = 120
doing parameter map hidden = No
doing parameter map system = No
doing parameter map archive = No
doing parameter map read only = No
doing parameter store dos attributes = Yes
doing parameter add user script = /usr/local/sbin/smbldap-useradd -m %u
doing parameter delete user script = /usr/local/sbin/smbldap-userdel %u
doing parameter add group script = /usr/local/sbin/smbldap-groupadd -p %g
doing parameter delete group script = /usr/local/sbin/smbldap-groupdel %g
doing parameter add user to group script = /usr/local/sbin/smbldap-groupmod -m %u %g
doing parameter delete user from group script = /usr/local/sbin/smbldap-groupmod -x %u %g
doing parameter set primary group script = /usr/local/sbin/smbldap-usermod -g %g %u
doing parameter add machine script = /usr/local/sbin/smbldap-useradd -w %m
doing parameter ldap delete dn = Yes
doing parameter ldap ssl = start tls
doing parameter ldap passwd sync = Yes
doing parameter ldap suffix = dc=chocolate,dc=lan
doing parameter ldap machine suffix = ou=Computers
doing parameter ldap user suffix = ou=Users
doing parameter ldap group suffix = ou=Groups,ou=Domain
doing parameter ldap idmap suffix = ou=Idmap
doing parameter ldap admin dn = cn=Manager,dc=chocolate,dc=lan
doing parameter idmap backend = ldap:ldap://firstyear.ath.cx
doing parameter idmap uid = 10000-20000
doing parameter idmap gid = 10000-20000
doing parameter logon script = logon.bat
doing parameter logon path = \%Lprofiles%u
doing parameter logon path =
doing parameter logon home = \%L%U
doing parameter logon drive = H:
doing parameter username map = /usr/local/samba/usermap
doing parameter preferred master = Yes
doing parameter wins support = Yes
doing parameter domain logons = Yes
doing parameter domain master = Yes
doing parameter local master = Yes
doing parameter os level = 64
doing parameter map acl inherit = Yes
doing parameter unix charset = UTF8
[2010/06/08 20:11:42, 5] lib/iconv.c:104(smb_register_charset)
Attempting to register new charset UCS-2LE
[2010/06/08 20:11:42, 5] lib/iconv.c:112(smb_register_charset)
Registered charset UCS-2LE
[2010/06/08 20:11:42, 5] lib/iconv.c:104(smb_register_charset)
Attempting to register new charset UTF-16LE
[2010/06/08 20:11:42, 5] lib/iconv.c:112(smb_register_charset)
Registered charset UTF-16LE
[2010/06/08 20:11:42, 5] lib/iconv.c:104(smb_register_charset)
Attempting to register new charset UCS-2BE
[2010/06/08 20:11:42, 5] lib/iconv.c:112(smb_register_charset)
Registered charset UCS-2BE
[2010/06/08 20:11:42, 5] lib/iconv.c:104(smb_register_charset)
Attempting to register new charset UTF-16BE
[2010/06/08 20:11:42, 5] lib/iconv.c:112(smb_register_charset)
Registered charset UTF-16BE
[2010/06/08 20:11:42, 5] lib/iconv.c:104(smb_register_charset)
Attempting to register new charset UTF8
[2010/06/08 20:11:42, 5] lib/iconv.c:112(smb_register_charset)
Registered charset UTF8
[2010/06/08 20:11:42, 5] lib/iconv.c:104(smb_register_charset)
Attempting to register new charset UTF-8
[2010/06/08 20:11:42, 5] lib/iconv.c:112(smb_register_charset)
Registered charset UTF-8
[2010/06/08 20:11:42, 5] lib/iconv.c:104(smb_register_charset)
Attempting to register new charset ASCII
[2010/06/08 20:11:42, 5] lib/iconv.c:112(smb_register_charset)
Registered charset ASCII
[2010/06/08 20:11:42, 5] lib/iconv.c:104(smb_register_charset)
Attempting to register new charset 646
[2010/06/08 20:11:42, 5] lib/iconv.c:112(smb_register_charset)
Registered charset 646
[2010/06/08 20:11:42, 5] lib/iconv.c:104(smb_register_charset)
Attempting to register new charset ISO-8859-1
[2010/06/08 20:11:42, 5] lib/iconv.c:112(smb_register_charset)
Registered charset ISO-8859-1
[2010/06/08 20:11:42, 5] lib/iconv.c:104(smb_register_charset)
Attempting to register new charset UCS2-HEX
[2010/06/08 20:11:42, 5] lib/iconv.c:112(smb_register_charset)
Registered charset UCS2-HEX
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 4] param/loadparm.c:9075(lp_load_ex)
pm_process() returned Yes
[2010/06/08 20:11:42, 7] param/loadparm.c:9280(lp_servicenumber)
lp_servicenumber: couldn't find homes
[2010/06/08 20:11:42, 10] param/loadparm.c:8288(set_server_role)
set_server_role: role = ROLE_DOMAIN_PDC
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/charcnv.c:82(charset_name)
Substituting charset 'US-ASCII' for LOCALE
[2010/06/08 20:11:42, 5] lib/util.c:266(init_names)
Netbios name list:-
my_netbios_names[0]="NEMO"
[2010/06/08 20:11:43, 2] lib/interface.c:340(add_interface)
added interface em0 ip=fe80:1::216:e6ff:fe7f:972e bcast=fe80:1::ffff:ffff:ffff:ffff netmask=ffff:ffff:ffff:ffff::
[2010/06/08 20:11:43, 2] lib/interface.c:340(add_interface)
added interface fxp0 ip=fe80:2::2d0:b7ff:fe4f:4629 bcast=fe80:2::ffff:ffff:ffff:ffff netmask=ffff:ffff:ffff:ffff::
[2010/06/08 20:11:43, 2] lib/interface.c:340(add_interface)
added interface em0 ip=172.24.0.254 bcast=172.24.0.255 netmask=255.255.255.0
[2010/06/08 20:11:43, 2] lib/interface.c:340(add_interface)
added interface fxp0 ip=172.25.0.150 bcast=172.25.0.255 netmask=255.255.255.0
lp_load_ex: refreshing parameters
params.c:pm_process() - Processing configuration file "/usr/local/etc/smb.conf"
Processing section "[global]"
doing parameter workgroup = CHOCOLATE
doing parameter server string = Nemo
doing parameter netbios name = nemo
handle_netbios_name: set global_myname to: NEMO
doing parameter encrypt passwords = yes
doing parameter passdb backend = ldapsam:ldap://firstyear.ath.cx/
doing parameter enable privileges = yes
doing parameter pam password change = Yes
doing parameter passwd program = /usr/bin/passwd %u
doing parameter passwd chat = *New*UNIX*password* %nn *ReType*new*UNIX*password* %nn * passwd:*all*authentication*tokens*updated*successfully*
doing parameter unix password sync = Yes
doing parameter log level = 10
doing parameter log file = /var/log/samba/%m
doing parameter max log size = 50
doing parameter syslog = 0
doing parameter name resolve order = wins bcast host
doing parameter timeserver = Yes
doing parameter socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
doing parameter use sendfile = yes
doing parameter veto files = /*.eml/*.nws/*.{*}/
doing parameter veto oplock files = /*.doc/*.xls/*.mdb/
doing parameter deadtime = 120
doing parameter map hidden = No
doing parameter map system = No
doing parameter map archive = No
doing parameter map read only = No
doing parameter store dos attributes = Yes
doing parameter add user script = /usr/local/sbin/smbldap-useradd -m %u
doing parameter delete user script = /usr/local/sbin/smbldap-userdel %u
doing parameter add group script = /usr/local/sbin/smbldap-groupadd -p %g
doing parameter delete group script = /usr/local/sbin/smbldap-groupdel %g
doing parameter add user to group script = /usr/local/sbin/smbldap-groupmod -m %u %g
doing parameter delete user from group script = /usr/local/sbin/smbldap-groupmod -x %u %g
doing parameter set primary group script = /usr/local/sbin/smbldap-usermod -g %g %u
doing parameter add machine script = /usr/local/sbin/smbldap-useradd -w %m
doing parameter ldap delete dn = Yes
doing parameter ldap ssl = start tls
doing parameter ldap passwd sync = Yes
doing parameter ldap suffix = dc=chocolate,dc=lan
doing parameter ldap machine suffix = ou=Computers
doing parameter ldap user suffix = ou=Users
doing parameter ldap group suffix = ou=Groups,ou=Domain
doing parameter ldap idmap suffix = ou=Idmap
doing parameter ldap admin dn = cn=Manager,dc=chocolate,dc=lan
doing parameter idmap backend = ldap:ldap://firstyear.ath.cx
doing parameter idmap uid = 10000-20000
doing parameter idmap gid = 10000-20000
doing parameter logon script = logon.bat
doing parameter logon path = \%Lprofiles%u
doing parameter logon path =
doing parameter logon home = \%L%U
doing parameter logon drive = H:
doing parameter username map = /usr/local/samba/usermap
doing parameter preferred master = Yes
doing parameter wins support = Yes
doing parameter domain logons = Yes
doing parameter domain master = Yes
doing parameter local master = Yes
doing parameter os level = 64
doing parameter map acl inherit = Yes
doing parameter unix charset = UTF8
pm_process() returned Yes
lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_DOMAIN_PDC
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Netbios name list:-
my_netbios_names[0]="NEMO"
added interface em0 ip=fe80:1::216:e6ff:fe7f:972e bcast=fe80:1::ffff:ffff:ffff:ffff netmask=ffff:ffff:ffff:ffff::
added interface fxp0 ip=fe80:2::2d0:b7ff:fe4f:4629 bcast=fe80:2::ffff:ffff:ffff:ffff netmask=ffff:ffff:ffff:ffff::
added interface em0 ip=172.24.0.254 bcast=172.24.0.255 netmask=255.255.255.0
added interface fxp0 ip=172.25.0.150 bcast=172.25.0.255 netmask=255.255.255.0
Connecting to host=172.24.0.254
s3_event: Added timed event "tevent_req_timedout": 0x802c189d0
s3_event: Added timed event "tevent_req_timedout": 0x802c18d90
Running timed event "tevent_req_timedout" 0x802c189d0
s3_event: Destroying timer event 0x802c189d0 "tevent_req_timedout"
s3_event: Added timed event "tevent_req_timedout": 0x802c189d0
Connecting to 172.24.0.254 at port 445
s3_event: Schedule immediate event "tevent_req_trigger": 0x802c18f10
s3_event: Added timed event "tevent_req_timedout": 0x802c18fd0
s3_event: Run immediate event "tevent_req_trigger": 0x802c18f10
s3_event: Destroying timer event 0x802c18fd0 "tevent_req_timedout"
s3_event: Destroying timer event 0x802c189d0 "tevent_req_timedout"
Socket options:
SO_KEEPALIVE = 0
SO_REUSEADDR = 0
SO_BROADCAST = 0
TCP_NODELAY = 4
IPTOS_LOWDELAY = 0
IPTOS_THROUGHPUT = 0
SO_REUSEPORT = 0
SO_SNDBUF = 8192
SO_RCVBUF = 8192
SO_SNDLOWAT = 2048
SO_RCVLOWAT = 1
SO_SNDTIMEO = 0
SO_RCVTIMEO = 0
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
Substituting charset 'US-ASCII' for LOCALE
cli_chain_cork: mid=1
failed negprot: NT_STATUS_END_OF_FILE
Cannot connect to server (anonymously). Error was NT_STATUS_END_OF_FILE
Connection failed: NT_STATUS_END_OF_FILE
failed to make ipc connection: NT_STATUS_END_OF_FILE
Enter root's password:
Connecting to host=172.24.0.254
s3_event: Added timed event "tevent_req_timedout": 0x802c189d0
s3_event: Added timed event "tevent_req_timedout": 0x802c18d90
Running timed event "tevent_req_timedout" 0x802c189d0
s3_event: Destroying timer event 0x802c189d0 "tevent_req_timedout"
s3_event: Added timed event "tevent_req_timedout": 0x802c189d0
Connecting to 172.24.0.254 at port 445
s3_event: Schedule immediate event "tevent_req_trigger": 0x802c18f10
s3_event: Added timed event "tevent_req_timedout": 0x802c18fd0
s3_event: Run immediate event "tevent_req_trigger": 0x802c18f10
s3_event: Destroying timer event 0x802c18fd0 "tevent_req_timedout"
s3_event: Destroying timer event 0x802c189d0 "tevent_req_timedout"
Socket options:
SO_KEEPALIVE = 0
SO_REUSEADDR = 0
SO_BROADCAST = 0
TCP_NODELAY = 4
IPTOS_LOWDELAY = 0
IPTOS_THROUGHPUT = 0
SO_REUSEPORT = 0
SO_SNDBUF = 8192
SO_RCVBUF = 8192
SO_SNDLOWAT = 2048
SO_RCVLOWAT = 1
SO_SNDTIMEO = 0
SO_RCVTIMEO = 0
cli_chain_cork: mid=1
failed negprot: NT_STATUS_END_OF_FILE
Could not connect to server 172.24.0.254
Connection failed: NT_STATUS_END_OF_FILE
return code = 1
[root at nemo ~]#
More information about the samba
mailing list