I have an Oracle Linux 6.9 server running samba 3.6.23-44.0.1.el6_9 that has been joined to our Active Directory domain(08 R2 functional level) for well over a year, and last week a user reported he could not login. While investigating, I found the following:
wbinfo -i <AD account> returns 'no such user' for this person. If I run this against my own account, it returns fine, along with others I have tested. Group membership does not seem to affect this.
wbinfo -u returns only a limited list of user accounts. The domain has several thousand AD User objects, so something seems off there. GREPing this list does not find the above id either.
wbinfo -g returns a similarly limited list of groups.
net ads status returns all good info. Domain is shown, with correct server information etc.
net ads join -U domainadminaccount@CHILD.DOMAIN.AD returns:
Failed to join domain: failed to lookup DC info for domain 'CHILD.DOMAIN.AD' over rpc: NT_STATUS_CONNECTION_RESET
I've increased my logging level and reviewed /var/log/samba/log.winbindd-idmap, which shows this:
[2017/10/02 11:02:44.411403, 1] winbindd/winbindd_cm.c:927(cm_prepare_connection) cli_negprot failed: NT_STATUS_CONNECTION_RESET [2017/10/02 11:02:44.413149, 5] winbindd/winbindd_dual.c:1084(child_msg_offline) child_msg_offline received for domain CHILD. [2017/10/02 11:02:44.413176, 5] winbindd/winbindd_dual.c:1100(child_msg_offline) child_msg_offline: marking CHILD offline. [2017/10/02 11:03:03.094034, 5] lib/util_sock.c:319(read_fd_with_timeout) read_fd_with_timeout: blocking read. EOF from client. [2017/10/02 11:03:03.094070, 3] winbindd/winbindd_dual.c:61(child_read_request) child_read_request: read_data failed: NT_STATUS_END_OF_FILE
I've confirmed that DNS is healthy, I can nslookup the domain, and no firewalls are in place to disrupt traffic.
At this point, I've even removed it from the domain (net ads leave) and removed the AD object, purged the TDB cache files in /var/lib/samba, and rebooted. When attempting to join, I get the above 'NT_STATUS_CONNECTION_RESET' message.
I'm a little stumped. Any idea what might be causing the CONNECTION RESETs?