Hello,
I am integration AD authentication to Cent OS 6 servers. I am running to this error when I tried to join with AD server.
error message :
# net ads join -U 504783
Host is not configured as a member server.
Invalid configuration. Exiting....
Failed to join domain: This operation is only allowed for the PDC of the doma in.
#
configuration file of samba smb.conf under [global] is updated with this info.
workgroup = ctab
realm = CTAB.ALPHA.COM
security = ads
idmap uid = 7000-500000
idmap gid = 7000-500000
template shell = /bin/bash
template homedir = /home/%U
winbind use default domain = true
winbind offline logon = false
winbind nss info = rfc2307
idmap config TRD:backend = ad
idmap config TRD:defauly = yes
idmap config TRD:range = 70000-500000
idmap config TRD:schema_mode = rfc2307
server string = Samba Server Version %y
I have updated krb5.conf as this
#more /etc/krb5.conf
[logging]
default = FILE:/var/log/krb5libs.log
kdc = FILE:/var/log/krb5kdc.log
admin_server = FILE:/var/log/kadmind.log
[libdefaults]
default_realm = CTAB.ALPHA.COM
dns_lookup_realm = false
dns_lookup_kdc = false
ticket_lifetime = 24h
renew_lifetime = 7d
forwardable = true
[realms]
CTLAB.ALPHA.COM = {
kdc = ctab.alpha.com
admin_server = ctab.alpha.com
}
[domain_realm]
.ctab.alpha.com = CTLAB.ALPHA.COM
ctab.alpha.com = CTLAB.ALPHA.COM
#
I wasnt able to fix it can someone please suggest it.
Thanks,
Kartheek.