[Samba] Failed to join domain: The network name cannot be found -

wpc wasepc at yahoo.com
Sat Jun 13 17:00:41 GMT 2009


I get this error "Failed to join domain: The network name cannot be found
"

while trying to connect my linux server to a windows 2003 server domain. 

Details Below.

root at sandstone:/etc/squid# net ads join -U administrator at MIL.LOCAL
administrator at MIL.LOCAL's password:
Failed to join domain: The network name cannot be found


root at sandstone:/etc/squid# net ads join -U administrator at MIL.LOCAL -d2
[2009/06/13 19:46:15, 2] lib/interface.c:add_interface(81)
  added interface ip=10.1.0.52 bcast=10.1.0.255 nmask=255.255.255.0
[2009/06/13 19:46:15, 2] lib/interface.c:add_interface(81)
  added interface ip=10.1.14.4 bcast=10.1.14.255 nmask=255.255.255.0
administrator at MIL.LOCAL's password:
[2009/06/13 19:46:26, 2] lib/util_sock.c:open_socket_out(903)
  error connecting to 10.1.0.7:445 (Connection reset by peer)
[2009/06/13 19:46:26, 1] libsmb/cliconnect.c:cli_start_connection(1572)
  session request to PDC-SRV.MIL.LOC failed (Called name not present)
[2009/06/13 19:46:26, 1] libsmb/cliconnect.c:cli_start_connection(1572)
  session request to PDC-SRV failed (Called name not present)
[2009/06/13 19:46:26, 1] libsmb/cliconnect.c:cli_start_connection(1572)
  session request to *SMBSERVER failed (Called name not present)
[2009/06/13 19:46:26, 1] utils/net.c:connect_to_ipc_krb5(294)
  Cannot connect to server using kerberos.  Error was NT_STATUS_BAD_NETWORK_NAME
[2009/06/13 19:46:26, 1] utils/net_ads.c:net_ads_join(1548)
  call of net_join_domain failed: The network name cannot be found
Failed to join domain: The network name cannot be found
[2009/06/13 19:46:26, 2] utils/net.c:main(1046)
  return code = -1


kerberos Ticket

root at sandstone:/etc/squid# klist
Credentials cache: FILE:/tmp/krb5cc_0
        Principal: administrator at MIL.LOCAL

  Issued           Expires          Principal
Jun 13 18:32:14  Jun 14 04:30:20  krbtgt/MIL.LOCAL at MIL.LOCAL



smb.conf

[global]
        workgroup = MIL
        realm = MIL.LOCAL
        netbios name = TAX
        server string = %h server (Samba, Ubuntu)
        security = ADS
        map to guest = Bad User
        obey pam restrictions = Yes
        password server = pdc.mil.local
        passdb backend = tdbsam
        pam password change = Yes
        passwd program = /usr/bin/passwd %u
        passwd chat = *Enter\snew\s*\spassword:* %n\n *Retype\snew\s*\spassword:* %n\n *password\supdated\ssuccessfully* .
        username map = /etc/samba/smbusers
        unix password sync = Yes
        syslog = 0
        log file = /var/log/samba/log.%m
        max log size = 1000
        dns proxy = No
        usershare allow guests = Yes
        panic action = /usr/share/samba/panic-action %d
        idmap uid = 10000-20000
        idmap gid = 10000-20000
        template shell = /bin/bash
        winbind enum users = Yes
        winbind enum groups = Yes
        winbind use default domain = Yes
        invalid users = root



i can see in the debug output my FQDN is truncated to PDC-SRV.MIL.LOC  could this be the cause ? 

Why would it do this ? 








      


More information about the samba mailing list