Skip to content

Commit

Permalink
profiles: add systemd to nsswitch shadow and gshadow
Browse files Browse the repository at this point in the history
nss_systemd also implements shadow and gshadow so it should be set
for these databases as well.
  • Loading branch information
pbrezina committed Sep 29, 2022
1 parent a0c65ae commit a859e0d
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 deletions.
3 changes: 2 additions & 1 deletion profiles/minimal/nsswitch.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# In order of likelihood of use to accelerate lookup.
passwd: files {if "with-altfiles":altfiles }systemd
shadow: files
shadow: files systemd
group: files {if "with-altfiles":altfiles }systemd
gshadow: files systemd
hosts: files myhostname {if "with-mdns4" and "with-mdns6":mdns_minimal [NOTFOUND=return] }{if "with-mdns4" and not "with-mdns6":mdns4_minimal [NOTFOUND=return] }{if not "with-mdns4" and "with-mdns6":mdns6_minimal [NOTFOUND=return] }resolve [!UNAVAIL=return] dns
services: files
netgroup: files
Expand Down
3 changes: 2 additions & 1 deletion profiles/nis/nsswitch.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# In order of likelihood of use to accelerate lookup.
passwd: files {if "with-altfiles":altfiles }nis systemd
shadow: files nis
shadow: files nis systemd
group: files {if "with-altfiles":altfiles }nis systemd
gshadow: files nis systemd
hosts: files myhostname {if "with-libvirt":libvirt libvirt_guest }{if "with-mdns4" and "with-mdns6":mdns_minimal [NOTFOUND=return] }{if "with-mdns4" and not "with-mdns6":mdns4_minimal [NOTFOUND=return] }{if not "with-mdns4" and "with-mdns6":mdns6_minimal [NOTFOUND=return] }resolve [!UNAVAIL=return] nis dns
services: files nis
netgroup: files nis
Expand Down
3 changes: 2 additions & 1 deletion profiles/sssd/nsswitch.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# In order of likelihood of use to accelerate lookup.
passwd: {if "with-files-domain":sss }files {if "with-altfiles":altfiles }{if not "with-files-domain":sss }systemd
shadow: files
shadow: files systemd
group: {if "with-files-domain":sss }files {if "with-altfiles":altfiles }{if not "with-files-domain":sss }systemd
gshadow: files systemd
hosts: files myhostname {if "with-libvirt":libvirt libvirt_guest }{if "with-mdns4" and "with-mdns6":mdns_minimal [NOTFOUND=return] }{if "with-mdns4" and not "with-mdns6":mdns4_minimal [NOTFOUND=return] }{if not "with-mdns4" and "with-mdns6":mdns6_minimal [NOTFOUND=return] }resolve [!UNAVAIL=return] dns
services: files sss
netgroup: files sss
Expand Down
3 changes: 2 additions & 1 deletion profiles/winbind/nsswitch.conf
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
# In order of likelihood of use to accelerate lookup.
passwd: files {if "with-altfiles":altfiles }winbind systemd
shadow: files
shadow: files systemd
group: files {if "with-altfiles":altfiles }winbind systemd
gshadow: files systemd
hosts: files myhostname {if "with-libvirt":libvirt libvirt_guest }{if "with-mdns4" and "with-mdns6":mdns_minimal [NOTFOUND=return] }{if "with-mdns4" and not "with-mdns6":mdns4_minimal [NOTFOUND=return] }{if not "with-mdns4" and "with-mdns6":mdns6_minimal [NOTFOUND=return] }resolve [!UNAVAIL=return] dns
services: files
netgroup: files
Expand Down

0 comments on commit a859e0d

Please sign in to comment.