URL:
https://github.com/SSSD/sssd/pull/317
Title: #317: Make sure overrides work with files provider
fidencio commented:
"""
This is how I've manually tested the patches:
- /etc/sssd/sssd.conf:
```
[domain/files]
id_provider = files
[sssd]
services = nss, sudo, pam, ssh
domains = files
```
- /etc/nssswitch.conf:
```
...
passwd: sss files
shadow: files sss
group: sss files
...
```
- Testing:
```
[root@client1 vagrant]# rm -rf /var/lib/sss/db/*
[root@client1 vagrant]# systemctl restart sssd
[root@client1 vagrant]# getent passwd vagrant
vagrant:x:1001:1001::/home/vagrant:/bin/bash
[root@client1 vagrant]# sss_override user-add vagrant -n fidencio -u 1111 -g 1111
SSSD needs to be restarted for the changes to take effect.
[root@client1 vagrant]# systemctl restart sssd
[root@client1 vagrant]# getent passwd vagrant
fidencio:x:1111:1111::/home/vagrant:/bin/bash
[root@client1 vagrant]# getent passwd fidencio
fidencio:x:1111:1111::/home/vagrant:/bin/bash
[root@client1 vagrant]#
[root@client1 vagrant]#
[root@client1 vagrant]# getent group vagrant
vagrant:x:1001:
[root@client1 vagrant]# sss_override group-add vagrant -n fidencio -g 2222
[root@client1 vagrant]# systemctl restart sssd
[root@client1 vagrant]# getent group vagrant
fidencio:x:2222:
[root@client1 vagrant]# getent group fidencio
fidencio:x:2222:
```
"""
See the full comment at
https://github.com/SSSD/sssd/pull/317#issuecomment-314078578