I was able to join all other centos linux instance but not this one even though I have AD admin access, still I am getting this error
- Resolving: _ldap._tcp.example.local
- Performing LDAP DSE lookup on: XXX.XX.XXX.X
- Performing LDAP DSE lookup on: XXX.XX.XXX.X
- Successfully discovered: example.local Password for [email protected]:
- Required files: /usr/sbin/oddjobd, /usr/libexec/oddjob/mkhomedir, /usr/sbin/sssd, /usr/bin/net
- LANG=C LOGNAME=root /usr/bin/net -s /var/cache/realmd/realmd-smb-conf.7J0AR1 -U [email protected] ads join example.local Enter [email protected]'s password:ads_print_error: AD LDAP ERROR: 50 (Insufficient access): 00000005: SecErr: DSID-031A11B9, problem 4003 (INSUFF_ACCESS_RIGHTS), data 0
Failed to join domain: Failed to set account flags for machine account (NT_STATUS_ACCESS_DENIED)
! Insufficient permissions to join the domain example.local realm: Couldn't join realm: Insufficient permissions to join the domain example.local
sudo kinit -V [email protected] ||| Successfully Authenticated to krb5
sudo realm join -U [email protected] example.LOCAL | Refer to the error mentioned above on the post
Adding
rdns=falseunder the[libdefaults]section in the/etc/krb5.conffile fixed the issue for me.Example: