Commit eae4ab5
committed
Add krb_provider helper to set default krb5 options
When auth_provider=krb5 is used, SSSD requires krb5_realm,
krb5_server, and krb5_kpasswd options, otherwise SSSD would
fail with "Missing krb5_realm option!".
Adds krb_provider() method in SSSDCommonConfiguration that
sets default krb5 options (auth_provider, krb5_realm,
krb5_server, krb5_kpasswd) from the backend's host configuration.
Uses setdefault() to preserve explicit config values
Called by krb5_auth() to reduce boilerplate in YAML configs
Works with KDC, IPA, and AD backends
Signed-off-by: Madhuri Upadhye <[email protected]>1 parent 8147b99 commit eae4ab5
1 file changed
+21
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
868 | 868 | | |
869 | 869 | | |
870 | 870 | | |
| 871 | + | |
| 872 | + | |
| 873 | + | |
| 874 | + | |
| 875 | + | |
| 876 | + | |
| 877 | + | |
| 878 | + | |
| 879 | + | |
| 880 | + | |
| 881 | + | |
| 882 | + | |
| 883 | + | |
| 884 | + | |
| 885 | + | |
| 886 | + | |
| 887 | + | |
| 888 | + | |
| 889 | + | |
| 890 | + | |
871 | 891 | | |
872 | 892 | | |
873 | 893 | | |
| |||
888 | 908 | | |
889 | 909 | | |
890 | 910 | | |
| 911 | + | |
891 | 912 | | |
892 | 913 | | |
893 | 914 | | |
| |||
0 commit comments