Bug 1244932

Summary: Cannot remove Active Directory user accounts using GUI (or cli)
Product: Red Hat Enterprise Linux 7 Reporter: Ray Strode [halfline] <rstrode>
Component: accountsserviceAssignee: Ray Strode [halfline] <rstrode>
Status: CLOSED ERRATA QA Contact: Desktop QE <desktop-qa-list>
Severity: low Docs Contact:
Priority: unspecified    
Version: 7.2CC: dblechte, desktop-qa-list, ebenes, hakan.hagenrud, mclasen, modehnal, oholy, rstrode, tpelka, vbenes, vrutkovs
Target Milestone: rc   
Target Release: ---   
Hardware: x86_64   
OS: Linux   
Whiteboard:
Fixed In Version: accountsservice-0.6.35-10.el7 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: 1141949 Environment:
Last Closed: 2016-11-04 07:51:43 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:

Comment 2 Ray Strode [halfline] 2016-06-30 19:56:38 UTC
this got fixed "for free" when fixing bug 1220904 .  We no longer aggregate users from wtmp (limiting wtmp merely for determining login frequency).

Comment 7 Ray Strode [halfline] 2016-07-15 12:56:17 UTC
To get a list of all cached users (by uid) run:

dbus-send --print-reply --system --dest=org.freedesktop.Accounts /org/freedesktop/Accounts org.freedesktop.Accounts.ListCachedUsers | sed -n 's@.*/org/freedesktop/Accounts/User\([^"]*\)["]@\1@p'

So then you'd just need to run id -u bob18695 to get its uid and then compare if it's in the list

Comment 11 errata-xmlrpc 2016-11-04 07:51:43 UTC
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

https://rhn.redhat.com/errata/RHBA-2016-2522.html