Linux AD integration trubulshooting
While performing AD integration I faced below issue which has bee fixed as below.
[root@HOSTNAME ~]# net ads join -U administrator
administrator's password:
Using short domain name -- INDORE-LOCAL
Failed to set servicePrincipalNames. Please ensure that
the DNS domain of this server matches the AD domain,
Or rejoin with using Domain Admin credentials.
Deleted account for 'HOSTNAME' in realm 'INDORE-LOCAL.COM'
Failed to join domain: Type or value exists
Above error was due to /etc/hosts file in which hostname was resolving on loopback ip 127.0.0.1 as below.
PING SERVERNAME-16-2 (127.0.0.1) 56(84) bytes of data.
64 bytes from SERVERNAME-2 (127.0.0.1): icmp_seq=1 ttl=64 time=0.070 ms
I removed hostname from 127.0.0.1 line in /etc/hosts file.
wbinfo -a and -g was showing domain users but getent was not listing domain users
id kamlesh.patidar was not showing id details of the user.
Issue has been resolved by deleting .tdb files as below
service smb stop
service winbind stop
cd /var/cache/samba
rm -rf *.tdb
service smb start
service winbind start
Comments
Post a Comment