Find the answer to your Linux question:
Results 1 to 4 of 4
Hi guys, I'm trying to setup a Debian fileserver with samba. i have a Windows domain controller etc The Domain Controller is called atmosphere The Domain is ct.local The error ...
  1. #1
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Australia (Down Under)
    Posts
    141

    DNS Issue With SAMBA (kinit error)

    Hi guys,

    I'm trying to setup a Debian fileserver with samba.

    i have a Windows domain controller etc

    The Domain Controller is called atmosphere
    The Domain is ct.local

    The error i get is below:

    Code:
    kinit administrator@CT.LOCAL
    kinit(v5): Cannot resolve network address for KDC in requested realm while getting initial credentials
    My /etc/resolv.conf file contains:
    Code:
    # generated by NetworkManager, do not edit!
    
    search ct.local
    
    
    nameserver 10.135.148.7
    nameserver 10.135.148.1
    and my /etc/hosts contains

    Code:
    127.0.0.1       localhost
    127.0.1.1       X-Wing.ct.local X-Wing
    not sure if this helps, but i can ping my server (ping atmosphere) but not the FQDN (ping atmosphere.ct.local)

  2. #2
    Linux Engineer jledhead's Avatar
    Join Date
    Oct 2004
    Location
    North Carolina
    Posts
    1,077
    whats in your /etc/krb5.conf file?

  3. #3
    Linux Guru
    Join Date
    Nov 2007
    Posts
    1,695
    My experience has been that for best results in joining Samba > Domain, hostname --fqdn had better match the domain you are joining - which can be done via the hosts file.

    In your case:

    /etc/hosts:

    <ip_address> x-wing.ct.local x-wing
    So that hostname returns x-wing and hostname --fqdn = x-wing.ct.local. I'd also put your DC into the debian hosts file. Only have localhost resolve to 127.0.0.1 - and x-wing resolve to an IP that the DC can reach.

  4. #4
    Linux Newbie
    Join Date
    Jul 2005
    Location
    Australia (Down Under)
    Posts
    141
    my /etc/krb5.conf contains

    Code:
    [realms]
    
    CT.LOCAL = {
    #kdc = 10.135.148.7
    #admin_server = 10.135.147.7
    
    kdc = atmosphere.ct.local
    admin_server = atmosphere.ct.local
    default_domain = ct.local
    }

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •