Bug 961244

Summary: If joined via adcli, leave --remove doesn't work
Product: [Fedora] Fedora Reporter: Stef Walter <stefw>
Component: realmdAssignee: Stef Walter <stefw>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 19CC: jhrozek, pkis, stefw, yelley
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: realmd-0.14.3-1.fc19 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
: 967008 (view as bug list) Environment:
Last Closed: 2013-08-02 03:38:45 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 959458, 967008    

Description Stef Walter 2013-05-09 08:33:25 UTC
If realm join was done via adcli, and not 'net ads join' then 'realm leave --remove' doesn't actually remove the computer account from the domain.

Comment 1 Stef Walter 2013-05-09 08:35:17 UTC
[stef@stef ~]$ realm leave --verbose --remove borg.thewalter.lan
Password for Administrator: 
 * LANG=C LOGNAME=root /usr/bin/net -s /var/cache/realmd/realmd-smb-conf.1PNQWW -U Administrator ads leave
Enter Administrator's password:
Failed to leave domain: Unable to fetch domain sid: are we joined?
 ! Leaving the domain borg.thewalter.lan failed
 * Removing entries from keytab for realm
 * /usr/sbin/sss_cache --users --groups --netgroups --services --autofs-maps
 * Removing domain configuration from sssd.conf
 * /usr/bin/systemctl restart sssd.service
 * Successfully unenrolled machine from realm

Comment 2 Stef Walter 2013-07-22 14:03:21 UTC
Pushed fix to realmd and adcli git master.

Comment 3 Fedora Update System 2013-07-22 16:33:51 UTC
adcli-0.7.2-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/adcli-0.7.2-1.fc19

Comment 4 Fedora Update System 2013-07-22 16:34:52 UTC
realmd-0.14.3-1.fc19 has been submitted as an update for Fedora 19.
https://admin.fedoraproject.org/updates/realmd-0.14.3-1.fc19

Comment 5 Fedora Update System 2013-07-24 03:25:25 UTC
Package realmd-0.14.3-1.fc19:
* should fix your issue,
* was pushed to the Fedora 19 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing realmd-0.14.3-1.fc19'
as soon as you are able to.
Please go to the following url:
https://admin.fedoraproject.org/updates/FEDORA-2013-13467/realmd-0.14.3-1.fc19
then log in and leave karma (feedback).

Comment 6 Fedora Update System 2013-08-02 03:38:45 UTC
adcli-0.7.2-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Fedora Update System 2013-08-02 03:46:20 UTC
realmd-0.14.3-1.fc19 has been pushed to the Fedora 19 stable repository.  If problems still persist, please make note of it in this bug report.