Hello.
I launched a Linux Domain with CentOS 7 and joined Windows clients to it but I can't join my Linux clients to it :
My Domain name is "linux.dj" and smb.conf on Linux client is :
workgroup = Linux.DJ
realm = LINUX.DJ
security = ads
idmap config * : range = 16777216-33554431
template homedir = /home/%U
template shell = /bin/bash
kerberos method = secrets only
winbind use default domain = true
winbind offline logon = true
preferred master = no
dns proxy = yes
wins server = DC.Linux.DJ
krb5.conf is :
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log
[libdefaults]
dns_lookup_realm = false
dns_lookup_kdc = true
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = true
rdns = false
default_realm = LINUX.DJ
default_ccache_name = KEYRING
ersistent:%{uid}
[realms]
LINUX.DJ = {
kdc = xxx.xxx.xxx.xxx
}
[domain_realm]
.linux.DJ = .LINUX.DJ
Linux.DJ = .LINUX.DJ
But when I run "net ads join" show me :
Enter test's password:
Failed to join domain: failed to find DC for domain LINUX.DJ
Linux client can't find my Domain
. For more information I did :
# net ads info
LDAP server: 192.168.72.1
LDAP server name: fileserver.linux.dj
Realm: LINUX.DJ
Bind Path: dc=LINUX,dc=DJ
LDAP port: 389
Server time: Tue, 22 Dec 2015 05:33:53 EST
KDC server: 192.168.72.1
Server time offset: 0
# smbclient -L 192.168.72.1 -U%
Domain=[LINUX] OS=[Windows 6.1] Server=[Samba 4.2.3-SerNet-RedHat-18.el7]
Sharename Type Comment
--------- ---- -------
netlogon Disk
sysvol Disk
my-share Disk Linux File Server
IPC$ IPC IPC Service (Samba 4.2.3-SerNet-RedHat-18.el7)
Domain=[LINUX] OS=[Windows 6.1] Server=[Samba 4.2.3-SerNet-RedHat-18.el7]
Server Comment
--------- -------
Workgroup Master
--------- -------
# smbclient //192.168.72.1/netlogon -Uadministrator -c 'ls'
Enter administrator's password:
Domain=[LINUX] OS=[Windows 6.1] Server=[Samba 4.2.3-SerNet-RedHat-18.el7]
. D 0 Tue Sep 8 04:46:06 2015
.. D 0 Tue Sep 8 04:50:49 2015
51175 blocks of size 1048576. 46878 blocks available
# host -t SRV _ldap._tcp.Linux.DJ
_ldap._tcp.Linux.DJ has SRV record 0 100 389 localhost.linux.dj.
# host -t SRV _kerberos._udp.Linux.DJ
_kerberos._udp.Linux.DJ has SRV record 0 100 88 localhost.linux.dj.
# host -t A fileserver.Linux.DJ
Host fileserver.Linux.DJ not found: 3(NXDOMAIN)
It seems that wins server is defined as "DC.Linux.DJ" but my dc is "fileserver.Linux.DJ".
How can I solve it?