Hello world,
A week ago I am trying to set up a project in training to add linux seveurs to Active directory but without success.
I followed the following tutorial I turn on CentOS and virtualbox in Bridge.
https://community.spiceworks.com/how...tive-directory
I can not run the command kinit} {rabah} who is a user in my AD.
kinit {rabah}
Code:
kinit: Cannot find KDC for realm "{TEST.LOCAL}" while getting initial credentials
vim /etc/krb5.conf
Code:
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log
[libdefaults]
default_realm = {TEST.LOCAL}
dns_lookup_realm = true
dns_lookup_kdc = true
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = true
[realms]
{TEST.LOCAL} = {
admin_server = {WIn-Server2012}.{Test.local}
kdc_server = {Win-Server2012}.{Test.local}
}
{Test.local} = {
}
[domain_realm]
.{Win-Server2012.Test.local} = {WIN-SERVER2012.TEST.LOCAL}
{Win-Server2012.Test.local} = {WIN-SERVER2012.TEST.LOCAL}
FQDN of my AD
Code:
Win-Server2012.Test.local
hostname
vim /etc/resolv.conf
Code:
# Generated by NetworkManager
search CentOsSrv.local
nameserver 192.168.0.254
dns-nameserver Win-Server2012.Test.local
Vim /etc/hosts
Code:
127.0.0.1 localhost.localdomain CentOsSrv
192.168.0.10 CentOsSrv.local
192.168.0.20 Win-Server2012.Test.local
ping windows server
Code:
ping win-server2012.test.local
PING Win-Server2012.Test.local (192.168.0.20) 56(84) bytes of data.
64 bytes from Win-Server2012.Test.local (192.168.0.20): icmp_seq=1 ttl=128 time=0.947 ms
64 bytes from Win-Server2012.Test.local (192.168.0.20): icmp_seq=2 ttl=128 time=0.287 ms
64 bytes from Win-Server2012.Test.local (192.168.0.20): icmp_seq=3 ttl=128 time=0.451 ms
64 bytes from Win-Server2012.Test.local (192.168.0.20): icmp_seq=4 ttl=128 time=0.469 ms
Thanks for help