celestian's pull request #13: "MEMBEROF: Don't resolve members if they are
removed" was opened
PR body:
"""
## TOPIC
If we need remove ghost (SYSDB_GHOST, DB_GHOST) attribute
from group we use empty structure.
This doesn't mean that there is pointer to NULL but
it means that there is zero elements.
Ghost attribute is array not string.
Resolves:
https://fedorahosted.org/sssd/ticket/2940
## REPRODUCER
preparing:
```
ipa user-add --first=Adam --last=Adam --email=adam(a)persei.cz adam
ipa group-add group_1
ipa group-add-member --users=adam group_1
ipa group-add group_2
```
reproducer (possible repeat):
```
systemctl daemon-reload
sudo su -c "truncate -s0 /var/log/sssd/*.log"
sudo su -c "rm -f /var/lib/sss/db/*"
sudo su -c "rm -f /var/lib/sss/mc/*"
sudo systemctl restart sssd.service
ipa group-add-member --groups=group_1 group_2
sss_cache -UG
sudo su -c "truncate -s0 /var/log/sssd/*.log"
getent group group_2
ipa group-remove-member --groups=group_1 group_2
sss_cache -UG
sudo su -c "truncate -s0 /var/log/sssd/*.log"
getent group group_2
```
"""
See the full pull-request at
https://github.com/SSSD/sssd/pull/13
... or pull the PR as Git branch:
git remote add ghsssd
https://github.com/SSSD/sssd
git fetch ghsssd pull/13/head:pr13
git checkout pr13