Skip to content

Commit

Permalink
authlogin: add tunable for nsswitch domains to connect to kanidm-unixd
Browse files Browse the repository at this point in the history
Signed-off-by: Kenton Groombridge <[email protected]>
  • Loading branch information
0xC0ncord committed Aug 10, 2024
1 parent 37d90b6 commit d7bbbef
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions policy/modules/system/authlogin.te
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,13 @@ policy_module(authlogin)
## </desc>
gen_tunable(authlogin_pam, true)

## <desc>
## <p>
## Allow users to resolve user passwd entries directly from kanidm.
## </p>
## </desc>
gen_tunable(authlogin_nsswitch_use_kanidm, false)

## <desc>
## <p>
## Allow users to resolve user passwd entries directly from ldap rather then using a sssd server
Expand Down Expand Up @@ -478,6 +485,13 @@ ifdef(`init_systemd', `
systemd_stream_connect_userdb(nsswitch_domain)
')

optional_policy(`
tunable_policy(`authlogin_nsswitch_use_kanidm',`
kanidm_read_config(nsswitch_domain)
kanidm_unixd_stream_connect(nsswitch_domain)
')
')

tunable_policy(`authlogin_nsswitch_use_ldap',`
miscfiles_read_generic_certs(nsswitch_domain)
sysnet_use_ldap(nsswitch_domain)
Expand Down

0 comments on commit d7bbbef

Please sign in to comment.