1 |
wbinfo —t |
checking the trust secret for domain RC via RPC calls failed
wbcCheckTrustCredentials(RC): error code was NT_STATUS_DOMAIN_CONTROLLER_NOT_FOUND (0xc0000233)
failed to call wbcCheckTrustCredentials: WBC_ERR_AUTH_ERROR
Could not check secret
1 2 3 4 |
sudo net cache flush sudo service smbd stop sudo service nmbd stop sudo service winbindd stop |
Удалить ubuntu из AD либо sudo net ads leave -U rootuser
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
rm —r /var/lib/samba/*.tdb sudo shutdown —r now sudo net ads join —U rootuser —D DOMAIN.LOCAL Enter rootuser‘s password: Using short domain name — DOMAIN Joined ‘FILESERVER‘ to dns domain ‘domain.local‘ sudo service winbind start sudo service smbd start sudo service nmbd start sudo wbinfo —t checking the trust secret for domain DOMAIN via RPC calls succeeded sudo net ads info LDAP server: 192.168.2.2 LDAP server name: DC.domain.local Realm: DOMAIN.LOCAL Bind Path: dc=DOMAIN,dc=LOCAL LDAP port: 389 Server time: Пт, 06 апр 2018 21:02:31 MSK KDC server: 192.168.2.2 Server time offset: —69 Last machine account password change: Пт, 06 апр 2018 20:59:58 MSK |
если не помогло
1 2 3 4 5 6 |
sudo apt—get purge winbind stop smbd, nmbd and winbindd (make sure they are really dead using ps. winbindd still lingered after I stopped the service) delete the samba from the PDC (using the Management Console) delete the secrets database (/var/lib/samba/*.tdb) join the domain again start the daemons again (smbd, nmbd and winbindd) |
Добавить комментарий