Commit ac76f56
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 ac76f56
1 file changed
+19
-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 | + | |
871 | 889 | | |
872 | 890 | | |
873 | 891 | | |
| |||
888 | 906 | | |
889 | 907 | | |
890 | 908 | | |
| 909 | + | |
891 | 910 | | |
892 | 911 | | |
893 | 912 | | |
| |||
0 commit comments