Hi all,

I have some problems joining an AD Domain hosted by some Windows 2003 DCs.

Tried with v3.5.11 from Debian Unstable, v3.5.6 from Debian Squeeze
and v3.2.5 from Debian Lenny, all showed the same problem.

please find attached log generated from

        net ads join -U Administrator -d 99

I always get: Failed to join domain: failed to find DC for domain BLUB.LOCAL

DNS entries are OK, forward, reverse, all are fine and correct.
ldapsearch works, kinit works, smbclient -k works.

The only difference from other Active Directories where I can join successfully
is that the DCs from that customer are using:

        
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters]
        "NT4Emulator"=dword:00000001

and on Windows Clients they have to use:

        
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Netlogon\Parameters]
        "NeutralizeNT4Emulator"=dword:00000001

to be able to join to the domain BLUB.LOCAL


is there any equiv parameter for Samba?


net rpc join just works.

Thanks in advance.




-- 
Kind regards
        Marc-Christian Petersen
[2011/08/12 11:17:44,  5] lib/debug.c:405(debug_dump_status)
  INFO: Current debug levels:
    all: True/99
    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
[2011/08/12 11:17:44,  3] param/loadparm.c:9169(lp_load_ex)
  lp_load_ex: refreshing parameters
[2011/08/12 11:17:44,  3] param/loadparm.c:4939(init_globals)
  Initialising global parameters
[2011/08/12 11:17:44,  2] param/loadparm.c:4798(max_open_files)
  rlimit_max: increasing rlimit_max (1024) to minimum Windows limit (16384)
[2011/08/12 11:17:44.269828,  3] ../lib/util/params.c:550(pm_process)
  params.c:pm_process() - Processing configuration file "/etc/samba/smb.conf"
[2011/08/12 11:17:44.269859,  3] param/loadparm.c:7853(do_section)
  Processing section "[global]"
  doing parameter workgroup = BLUB.NB
  doing parameter realm = BLUB.LOCAL
  doing parameter server string = %h server
  doing parameter dns proxy = no
  doing parameter log file = /var/log/samba/log.%m
  doing parameter max log size = 1000
  doing parameter syslog = 0
  doing parameter panic action = /usr/share/samba/panic-action %d
  doing parameter security = ads
  doing parameter encrypt passwords = true
  doing parameter passdb backend = tdbsam
  doing parameter obey pam restrictions = yes
  doing parameter unix password sync = yes
  doing parameter passwd program = /usr/bin/passwd %u
  doing parameter passwd chat = *Enter\snew\s*\spassword:* %n\n 
*Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
  doing parameter pam password change = yes
  doing parameter domain logons = no
  doing parameter domain master = no
  doing parameter idmap uid = 70000-1000000
  doing parameter idmap gid = 70000-1000000
  doing parameter template homedir = /home/%U
  doing parameter template shell = /bin/bash
  doing parameter winbind use default domain = yes
  doing parameter winbind refresh tickets = yes
[2011/08/12 11:17:44.270225,  4] param/loadparm.c:9204(lp_load_ex)
  pm_process() returned Yes
[2011/08/12 11:17:44.270245,  7] param/loadparm.c:9410(lp_servicenumber)
  lp_servicenumber: couldn't find homes
[2011/08/12 11:17:44.270259, 10] param/loadparm.c:8414(set_server_role)
  set_server_role: role = ROLE_DOMAIN_MEMBER
[2011/08/12 11:17:44.270273,  5] lib/iconv.c:104(smb_register_charset)
  Attempting to register new charset UCS-2LE
[2011/08/12 11:17:44.270283,  5] lib/iconv.c:112(smb_register_charset)
  Registered charset UCS-2LE
[2011/08/12 11:17:44.270291,  5] lib/iconv.c:104(smb_register_charset)
  Attempting to register new charset UTF-16LE
[2011/08/12 11:17:44.270302,  5] lib/iconv.c:112(smb_register_charset)
  Registered charset UTF-16LE
[2011/08/12 11:17:44.270311,  5] lib/iconv.c:104(smb_register_charset)
  Attempting to register new charset UCS-2BE
[2011/08/12 11:17:44.270318,  5] lib/iconv.c:112(smb_register_charset)
  Registered charset UCS-2BE
[2011/08/12 11:17:44.270326,  5] lib/iconv.c:104(smb_register_charset)
  Attempting to register new charset UTF-16BE
[2011/08/12 11:17:44.270334,  5] lib/iconv.c:112(smb_register_charset)
  Registered charset UTF-16BE
[2011/08/12 11:17:44.270341,  5] lib/iconv.c:104(smb_register_charset)
  Attempting to register new charset UTF8
[2011/08/12 11:17:44.270349,  5] lib/iconv.c:112(smb_register_charset)
  Registered charset UTF8
[2011/08/12 11:17:44.270356,  5] lib/iconv.c:104(smb_register_charset)
  Attempting to register new charset UTF-8
[2011/08/12 11:17:44.270364,  5] lib/iconv.c:112(smb_register_charset)
  Registered charset UTF-8
[2011/08/12 11:17:44.270371,  5] lib/iconv.c:104(smb_register_charset)
  Attempting to register new charset ASCII
[2011/08/12 11:17:44.270381,  5] lib/iconv.c:112(smb_register_charset)
  Registered charset ASCII
[2011/08/12 11:17:44.270388,  5] lib/iconv.c:104(smb_register_charset)
  Attempting to register new charset 646
[2011/08/12 11:17:44.270399,  5] lib/iconv.c:112(smb_register_charset)
  Registered charset 646
[2011/08/12 11:17:44.270406,  5] lib/iconv.c:104(smb_register_charset)
  Attempting to register new charset ISO-8859-1
[2011/08/12 11:17:44.270414,  5] lib/iconv.c:112(smb_register_charset)
  Registered charset ISO-8859-1
[2011/08/12 11:17:44.270421,  5] lib/iconv.c:104(smb_register_charset)
  Attempting to register new charset UCS2-HEX
[2011/08/12 11:17:44.270434,  5] lib/iconv.c:112(smb_register_charset)
  Registered charset UCS2-HEX
[2011/08/12 11:17:44.270586,  5] lib/charcnv.c:98(charset_name)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2011/08/12 11:17:44.270709,  5] lib/charcnv.c:98(charset_name)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2011/08/12 11:17:44.270754,  5] lib/charcnv.c:98(charset_name)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2011/08/12 11:17:44.270786,  5] lib/charcnv.c:98(charset_name)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2011/08/12 11:17:44.270814,  5] lib/charcnv.c:98(charset_name)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2011/08/12 11:17:44.270833,  5] lib/charcnv.c:98(charset_name)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2011/08/12 11:17:44.270851,  5] lib/charcnv.c:98(charset_name)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2011/08/12 11:17:44.270882,  5] lib/charcnv.c:98(charset_name)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2011/08/12 11:17:44.270911,  5] lib/charcnv.c:98(charset_name)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2011/08/12 11:17:44.270937,  5] lib/charcnv.c:98(charset_name)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2011/08/12 11:17:44.270979,  5] lib/charcnv.c:98(charset_name)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2011/08/12 11:17:44.271031,  5] lib/charcnv.c:98(charset_name)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2011/08/12 11:17:44.271070,  5] lib/charcnv.c:98(charset_name)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2011/08/12 11:17:44.271107,  5] lib/charcnv.c:98(charset_name)
  Substituting charset 'ANSI_X3.4-1968' for LOCALE
[2011/08/12 11:17:44.271169,  5] lib/util.c:276(init_names)
  Netbios name list:-
  my_netbios_names[0]="TESTHOST"
[2011/08/12 11:17:44.271334,  2] lib/interface.c:340(add_interface)
  added interface eth0 ip=10.0.2.38 bcast=10.0.255.255 netmask=255.255.0.0
[2011/08/12 11:17:44.271547,  1] libnet/libnet_join.c:1954(libnet_Join)
  libnet_Join:
      libnet_JoinCtx: struct libnet_JoinCtx
          in: struct libnet_JoinCtx
              dc_name                  : NULL
              machine_name             : 'TESTHOST'
              domain_name              : *
                  domain_name              : 'BLUB.LOCAL'
              account_ou               : NULL
              admin_account            : 'Administrator'
              admin_password           : *
              machine_password         : NULL
              join_flags               : 0x00000023 (35)
                     0: WKSSVC_JOIN_FLAGS_IGNORE_UNSUPPORTED_FLAGS
                     0: WKSSVC_JOIN_FLAGS_JOIN_WITH_NEW_NAME
                     0: WKSSVC_JOIN_FLAGS_JOIN_DC_ACCOUNT
                     0: WKSSVC_JOIN_FLAGS_DEFER_SPN
                     0: WKSSVC_JOIN_FLAGS_MACHINE_PWD_PASSED
                     0: WKSSVC_JOIN_FLAGS_JOIN_UNSECURE
                     1: WKSSVC_JOIN_FLAGS_DOMAIN_JOIN_IF_JOINED
                     0: WKSSVC_JOIN_FLAGS_WIN9X_UPGRADE
                     0: WKSSVC_JOIN_FLAGS_ACCOUNT_DELETE
                     1: WKSSVC_JOIN_FLAGS_ACCOUNT_CREATE
                     1: WKSSVC_JOIN_FLAGS_JOIN_TYPE
              os_version               : NULL
              os_name                  : NULL
              create_upn               : 0x00 (0)
              upn                      : NULL
              modify_config            : 0x00 (0)
              ads                      : NULL
              debug                    : 0x01 (1)
              use_kerberos             : 0x00 (0)
              secure_channel_type      : SEC_CHAN_WKSTA (2)
[2011/08/12 11:17:44.271705, 10] libsmb/dsgetdcname.c:1132(dsgetdcname)
  dsgetdcname: domain_name: BLUB.LOCAL, domain_guid: (null), site_name: (null), 
flags: 0x40001011
[2011/08/12 11:17:44.271726, 10] libsmb/dsgetdcname.c:46(debug_dsdcinfo_flags)
  debug_dsdcinfo_flags: 0x40001011
        DS_FORCE_REDISCOVERY DS_DIRECTORY_SERVICE_REQUIRED DS_WRITABLE_REQUIRED 
DS_RETURN_DNS_NAME 
[2011/08/12 11:17:44.271770,  5] lib/gencache.c:65(gencache_init)
  Opening cache file at /var/run/samba/gencache.tdb
[2011/08/12 11:17:44.271851,  5] lib/gencache.c:108(gencache_init)
  Opening cache file at /var/run/samba/gencache_notrans.tdb
[2011/08/12 11:17:44.271921, 10] lib/gencache.c:334(gencache_get_data_blob)
  Cache entry with key = AD_SITENAME/DOMAIN/BLUB.LOCAL couldn't be found 
[2011/08/12 11:17:44.271937,  5] libads/dns.c:807(sitename_fetch)
  sitename_fetch: No stored sitename for BLUB.LOCAL
[2011/08/12 11:17:44.271946, 10] 
libsmb/dsgetdcname.c:1045(dsgetdcname_rediscover)
  dsgetdcname_rediscover
[2011/08/12 11:17:44.272398,  4] libads/dns.c:432(ads_dns_lookup_srv)
  ads_dns_lookup_srv: 3 records returned in the answer section.
[2011/08/12 11:17:44.272431, 10] libads/dns.c:213(ads_dns_parse_rr_srv)
  ads_dns_parse_rr_srv: Parsed ad2.blub.local [0, 100, 389]
[2011/08/12 11:17:44.272443, 10] libads/dns.c:213(ads_dns_parse_rr_srv)
  ads_dns_parse_rr_srv: Parsed ad3.blub.local [0, 100, 389]
[2011/08/12 11:17:44.272454, 10] libads/dns.c:213(ads_dns_parse_rr_srv)
  ads_dns_parse_rr_srv: Parsed ad1.blub.local [0, 100, 389]
[2011/08/12 11:17:44.272472, 10] libsmb/dsgetdcname.c:859(process_dc_dns)
  LDAP ping to ad2.blub.local
[2011/08/12 11:17:44.273248,  2] libads/cldap.c:97(ads_cldap_netlogon)
  cldap_netlogon() failed: NT_STATUS_NOT_FOUND
[2011/08/12 11:17:44.273286, 10] libsmb/dsgetdcname.c:859(process_dc_dns)
  LDAP ping to ad2.blub.local
[2011/08/12 11:17:44.273705,  2] libads/cldap.c:97(ads_cldap_netlogon)
  cldap_netlogon() failed: NT_STATUS_NOT_FOUND
[2011/08/12 11:17:44.273738, 10] libsmb/dsgetdcname.c:859(process_dc_dns)
  LDAP ping to ad3.blub.local
[2011/08/12 11:17:44.275965,  2] libads/cldap.c:97(ads_cldap_netlogon)
  cldap_netlogon() failed: NT_STATUS_NOT_FOUND
[2011/08/12 11:17:44.276005, 10] libsmb/dsgetdcname.c:859(process_dc_dns)
  LDAP ping to ad1.blub.local
[2011/08/12 11:17:44.276496,  2] libads/cldap.c:97(ads_cldap_netlogon)
  cldap_netlogon() failed: NT_STATUS_NOT_FOUND
[2011/08/12 11:17:44.276536, 10] libsmb/namequery.c:1400(internal_resolve_name)
  internal_resolve_name: looking up BLUB.LOCAL#1c (sitename (null))
[2011/08/12 11:17:44.276569, 10] lib/gencache.c:334(gencache_get_data_blob)
  Cache entry with key = NBT/BLUB.LOCAL#1C couldn't be found 
[2011/08/12 11:17:44.276580,  5] libsmb/namecache.c:188(namecache_fetch)
  no entry for BLUB.LOCAL#1C found.
[2011/08/12 11:17:44.276595,  3] libsmb/namequery.c:1119(resolve_lmhosts)
  resolve_lmhosts: Attempting lmhosts lookup for name BLUB.LOCAL<0x1c>
[2011/08/12 11:17:44.276612,  4] ../libcli/nbt/lmhosts.c:40(startlmhosts)
  startlmhosts: Can't open lmhosts file /etc/samba/lmhosts. Error was No such 
file or directory
[2011/08/12 11:17:44.276635,  3] libsmb/namequery.c:983(resolve_wins)
  resolve_wins: Attempting wins lookup for name BLUB.LOCAL<0x1c>
[2011/08/12 11:17:44.276647,  3] libsmb/namequery.c:987(resolve_wins)
  resolve_wins: WINS server resolution selected and no WINS servers listed.
[2011/08/12 11:17:44.276659,  3] libsmb/namequery.c:910(name_resolve_bcast)
  name_resolve_bcast: Attempting broadcast lookup for name BLUB.LOCAL<0x1c>
[2011/08/12 11:17:44.276713, 10] lib/util_sock.c:893(open_socket_in)
  bind succeeded on port 0
[2011/08/12 11:17:44.276732,  5] lib/util_sock.c:304(print_socket_options)
  Socket options:
        SO_KEEPALIVE = 0
        SO_REUSEADDR = 1
        SO_BROADCAST = 1
        Could not test socket option TCP_NODELAY.
        Could not test socket option TCP_KEEPCNT.
        Could not test socket option TCP_KEEPIDLE.
        Could not test socket option TCP_KEEPINTVL.
        IPTOS_LOWDELAY = 0
        IPTOS_THROUGHPUT = 0
        SO_SNDBUF = 114688
        SO_RCVBUF = 114688
        SO_SNDLOWAT = 1
        SO_RCVLOWAT = 1
        SO_SNDTIMEO = 0
        SO_RCVTIMEO = 0
        Could not test socket option TCP_QUICKACK.
[2011/08/12 11:17:44.276798,  5] libsmb/nmblib.c:824(send_udp)
  Sending a packet of len 50 to (10.0.255.255) on port 137
[2011/08/12 11:17:44.547735,  5] libsmb/nmblib.c:824(send_udp)
  Sending a packet of len 50 to (10.0.255.255) on port 137
[2011/08/12 11:17:44.818999,  5] libsmb/nmblib.c:824(send_udp)
  Sending a packet of len 50 to (10.0.255.255) on port 137
[2011/08/12 11:17:45.089947, 10] libsmb/dsgetdcname.c:493(discover_dc_netbios)
  discover_dc_netbios: failed to find DC
[2011/08/12 11:17:45.090060,  1] libnet/libnet_join.c:1985(libnet_Join)
  libnet_Join:
      libnet_JoinCtx: struct libnet_JoinCtx
          out: struct libnet_JoinCtx
              account_name             : NULL
              netbios_domain_name      : NULL
              dns_domain_name          : NULL
              forest_name              : NULL
              dn                       : NULL
              domain_sid               : NULL
                  domain_sid               : (NULL SID)
              modified_config          : 0x00 (0)
              error_string             : 'failed to find DC for domain 
BLUB.LOCAL'
              domain_is_ad             : 0x00 (0)
              result                   : WERR_DCNOTFOUND
[2011/08/12 11:17:45.090135,  2] utils/net.c:916(main)
  return code = -1
Failed to join domain: failed to find DC for domain BLUB.LOCAL
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba

Reply via email to