Bug 961244 - If joined via adcli, leave --remove doesn't work
Summary: If joined via adcli, leave --remove doesn't work
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: realmd
Version: 19
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Stef Walter
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 959458 967008
TreeView+ depends on / blocked
 
Reported: 2013-05-09 08:33 UTC by Stef Walter
Modified: 2013-08-02 03:46 UTC (History)
4 users (show)

Fixed In Version: realmd-0.14.3-1.fc19
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 967008 (view as bug list)
Environment:
Last Closed: 2013-08-02 03:38:45 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
FreeDesktop.org 65032 0 None None None Never

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.


Note You need to log in before you can comment on or make changes to this bug.