[Samba] samba-3.0.23d server doesn't join in domain

Emilio Casbas ecasbas at unav.es
Fri Nov 24 11:31:22 GMT 2006


Hi,

We are testing the samba-3.0.23d in a samba server as role member in a 
domain with PDC (samba-3.0.20) and ldap as backend.

The first tests don't left us join the machine in the domain, the 
following is showed:


[root at machinetest bin]# ./net rpc testjoin -d 10

[2006/11/24 12:28:26, 5] lib/debug.c:debug_dump_status(391)
  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
[2006/11/24 12:28:26, 3] param/loadparm.c:lp_load(4945)
  lp_load: refreshing parameters
[2006/11/24 12:28:26, 3] param/loadparm.c:init_globals(1410)
  Initialising global parameters
[2006/11/24 12:28:26, 3] param/params.c:pm_process(572)
  params.c:pm_process() - Processing configuration file 
"/usr/local/etc2/samba_dv/lib/smb.conf"
[2006/11/24 12:28:26, 3] param/loadparm.c:do_section(3687)
  Processing section "[global]"
  doing parameter netbios name = SACOTMP
[2006/11/24 12:28:26, 4] param/loadparm.c:handle_netbios_name(3045)
  handle_netbios_name: set global_myname to: SACOTMP
  doing parameter server string = DiscoVirtualtmp
  doing parameter workgroup = UNAV-PDC-01
  doing parameter log level = 10
  doing parameter log file = /var/log/samba_dv
  doing parameter max log size = 0
  doing parameter syslog = 1
  doing parameter syslog only = no
  doing parameter timestamp logs = yes
  doing parameter security = domain
  doing parameter password server = pdc10 bdc10
  doing parameter null passwords = no
  doing parameter encrypt passwords = yes
  doing parameter use spnego = no
  doing parameter domain logons = no
  doing parameter public = no
  doing parameter wins server = 159.237.12.52 159.237.112.52
  doing parameter wins support = no
  doing parameter wins proxy = no
  doing parameter domain master = no
  doing parameter local master = no
  doing parameter preferred master = no
  doing parameter os level = 0
  doing parameter browseable = yes
  doing parameter bind interfaces only = yes
  doing parameter interfaces = eth0
  doing parameter socket options = SO_KEEPALIVE IPTOS_LOWDELAY TCP_NODELAY
  doing parameter unix charset = CP850
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(105)
  Attempting to register new charset UCS-2LE
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(113)
  Registered charset UCS-2LE
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(105)
  Attempting to register new charset UTF-16LE
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(113)
  Registered charset UTF-16LE
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(105)
  Attempting to register new charset UCS-2BE
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(113)
  Registered charset UCS-2BE
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(105)
  Attempting to register new charset UTF-16BE
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(113)
  Registered charset UTF-16BE
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(105)
  Attempting to register new charset UTF8
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(113)
  Registered charset UTF8
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(105)
  Attempting to register new charset UTF-8
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(113)
  Registered charset UTF-8
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(105)
  Attempting to register new charset ASCII
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(113)
  Registered charset ASCII
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(105)
  Attempting to register new charset 646
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(113)
  Registered charset 646
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(105)
  Attempting to register new charset ISO-8859-1
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(113)
  Registered charset ISO-8859-1
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(105)
  Attempting to register new charset UCS2-HEX
[2006/11/24 12:28:26, 5] lib/iconv.c:smb_register_charset(113)
  Registered charset UCS2-HEX
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
  doing parameter writable = no
[2006/11/24 12:28:26, 4] param/loadparm.c:lp_load(4976)
  pm_process() returned Yes
[2006/11/24 12:28:26, 7] param/loadparm.c:lp_servicenumber(5112)
  lp_servicenumber: couldn't find homes
[2006/11/24 12:28:26, 10] param/loadparm.c:set_server_role(4221)
  set_server_role: role = ROLE_DOMAIN_MEMBER
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/charcnv.c:charset_name(81)
  Substituting charset 'UTF-8' for LOCALE
[2006/11/24 12:28:26, 5] lib/util.c:init_names(286)
  Netbios name list:-
  my_netbios_names[0]="SACOTMP"
[2006/11/24 12:28:26, 2] lib/interface.c:add_interface(81)
  added interface ip=159.237.112.130 bcast=159.237.112.255 
nmask=255.255.255.0
[2006/11/24 12:28:26, 10] libsmb/namequery.c:internal_resolve_name(1132)
  internal_resolve_name: looking up UNAV-PDC-01#1b
[2006/11/24 12:28:26, 5] lib/gencache.c:gencache_init(61)
  Opening cache file at /usr/local/etc2/samba_dv/var/locks/gencache.tdb
[2006/11/24 12:28:26, 10] lib/gencache.c:gencache_get(304)
  Returning valid cache entry: key = NBT/UNAV-PDC-01#1B, value = 
159.237.12.140:0, timeout = Fri Nov 24 12:33:17 2006
[2006/11/24 12:28:26, 5] libsmb/namecache.c:namecache_fetch(201)
  name UNAV-PDC-01#1B found.
[2006/11/24 12:28:26, 10] libsmb/namequery.c:name_status_find(276)
  name_status_find: looking up UNAV-PDC-01#1b at 159.237.12.140
[2006/11/24 12:28:26, 10] lib/gencache.c:gencache_get(329)
  Cache entry with key = NBT/UNAV-PDC-01#1B.20.159.237.12.140 couldn't 
be found
[2006/11/24 12:28:26, 5] libsmb/namecache.c:namecache_status_fetch(308)
  namecache_status_fetch: no entry for 
NBT/UNAV-PDC-01#1B.20.159.237.12.140 found.
[2006/11/24 12:28:26, 10] lib/gencache.c:gencache_del(235)
  Deleting cache entry (key = NBT/UNAV-PDC-01#1B.20.159.237.12.140)
[2006/11/24 12:28:26, 10] lib/util_sock.c:open_socket_in(839)
  bind succeeded on port 0
[2006/11/24 12:28:26, 5] libsmb/nmblib.c:send_udp(777)
  Sending a packet of len 50 to (159.237.12.140) on port 137
[2006/11/24 12:28:26, 10] lib/util_sock.c:read_udp_socket(294)
  read_udp_socket: lastip 159.237.12.140 lastport 137 read: 247
[2006/11/24 12:28:26, 10] libsmb/nmblib.c:parse_nmb(506)
  parse_nmb: packet id = 20643
[2006/11/24 12:28:26, 5] libsmb/nmblib.c:read_packet(755)
  Received a packet of len 247 from (159.237.12.140) port 137
[2006/11/24 12:28:26, 4] libsmb/nmblib.c:debug_nmb_packet(112)
  nmb packet from 159.237.12.140(137) header: id=20643 opcode=Query(0) 
response=Yes
      header: flags: bcast=No rec_avail=No rec_des=No trunc=No auth=Yes
      header: rcode=0 qdcount=0 ancount=1 nscount=0 arcount=0
      answers: nmb_name=UNAV-PDC-01<1b> rr_type=33 rr_class=1 ttl=0
      answers   0 char .PDC10             hex 
08504443313020202020202020202020
      answers  10 char .d.PDC10           hex 
00640050444331302020202020202020
      answers  20 char   .d...__MSBROWS   hex 
202003640001025F5F4D5342524F5753
      answers  30 char E__....UNAV-PDC-   hex 
455F5F0201E400554E41562D5044432D
      answers  40 char 01    ...UNAV-PD   hex 
30312020202000E400554E41562D5044
      answers  50 char C-01    .d.UNAV-   hex 
432D3031202020201B6400554E41562D
      answers  60 char PDC-01    ...UNA   hex 
5044432D3031202020201CE400554E41
      answers  70 char V-PDC-01    .d.U   hex 
562D5044432D3031202020201D640055
      answers  80 char NAV-PDC-01    ..   hex 
4E41562D5044432D3031202020201EE4
      answers  90 char ................   hex 
00000000000000000000000000000000
      answers  a0 char ................   hex 
00000000000000000000000000000000
      answers  b0 char ...............   hex 000000000000000000000000000000
[2006/11/24 12:28:26, 10] libsmb/namequery.c:parse_node_status(158)
  PDC10#00: flags = 0x64
[2006/11/24 12:28:26, 10] libsmb/namequery.c:parse_node_status(158)
  PDC10#03: flags = 0x64
[2006/11/24 12:28:26, 10] libsmb/namequery.c:parse_node_status(158)
  __MSBROWSE__#01: flags = 0xe4
[2006/11/24 12:28:26, 10] libsmb/namequery.c:parse_node_status(158)
  UNAV-PDC-01#00: flags = 0xe4
[2006/11/24 12:28:26, 10] libsmb/namequery.c:parse_node_status(158)
  UNAV-PDC-01#1b: flags = 0x64
[2006/11/24 12:28:26, 10] libsmb/namequery.c:parse_node_status(158)
  UNAV-PDC-01#1c: flags = 0xe4
[2006/11/24 12:28:26, 10] libsmb/namequery.c:parse_node_status(158)
  UNAV-PDC-01#1d: flags = 0x64
[2006/11/24 12:28:26, 10] libsmb/namequery.c:parse_node_status(158)
  UNAV-PDC-01#1e: flags = 0xe4
[2006/11/24 12:28:26, 10] libsmb/namequery.c:name_status_find(315)
  name_status_find: name not found
[2006/11/24 12:28:26, 10] intl/lang_tdb.c:lang_tdb_init(138)
  lang_tdb_init: /usr/local/etc2/samba_dv/lib/en_US.UTF-8.msg: No such 
file or directory
Unable to find a suitable server
Join to domain 'UNAV-PDC-01' is not valid
[2006/11/24 12:28:26, 2] utils/net.c:main(988)
  return code = -1

Any ideas?

Thanks in advance.
Emilio C.

-- 
Emilio Casbas
University of Navarra




More information about the samba mailing list