forked from freeipa-pr-ci2/freeipa
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
This patch add a certauth plugin which allows the IPA server to support PKINIT for certificates which do not include a special SAN extension which contains a Kerberos principal but allow other mappings with the help of SSSD's certmap library. Related to https://pagure.io/freeipa/issue/4905 Reviewed-By: Alexander Bokovoy <[email protected]> Reviewed-By: David Kupka <[email protected]>
- Loading branch information
1 parent
da880de
commit c415604
Showing
9 changed files
with
450 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -75,6 +75,7 @@ freeipa2-dev-doc | |
/daemons/dnssec/ipa-ods-exporter.socket | ||
/daemons/ipa-kdb/ipa_kdb_tests | ||
/daemons/ipa-kdb/tests/.dirstamp | ||
/daemons/ipa-kdb/ipa-certauth | ||
/daemons/ipa-otpd/ipa-otpd | ||
/daemons/ipa-otpd/ipa-otpd.socket | ||
/daemons/ipa-otpd/[email protected] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -18,6 +18,7 @@ AM_CPPFLAGS = \ | |
$(WARN_CFLAGS) \ | ||
$(NDRPAC_CFLAGS) \ | ||
$(NSS_CFLAGS) \ | ||
$(SSSCERTMAP_CFLAGS) \ | ||
$(NULL) | ||
|
||
plugindir = $(libdir)/krb5/plugins/kdb | ||
|
@@ -39,6 +40,20 @@ ipadb_la_SOURCES = \ | |
ipa_kdb_audit_as.c \ | ||
$(NULL) | ||
|
||
if BUILD_IPA_CERTAUTH_PLUGIN | ||
ipadb_la_SOURCES += ipa_kdb_certauth.c | ||
|
||
|
||
%: %.in | ||
sed \ | ||
-e 's|@plugindir@|$(plugindir)|g' \ | ||
'$(srcdir)/[email protected]' >$@ | ||
|
||
krb5confdir = $(sysconfdir)/krb5.conf.d | ||
krb5conf_DATA = ipa-certauth | ||
CLEANFILES = $(krb5conf_DATA) | ||
endif | ||
|
||
ipadb_la_LDFLAGS = \ | ||
-avoid-version \ | ||
-module \ | ||
|
@@ -50,6 +65,7 @@ ipadb_la_LIBADD = \ | |
$(NDRPAC_LIBS) \ | ||
$(UNISTRING_LIBS) \ | ||
$(NSS_LIBS) \ | ||
$(SSSCERTMAP_LIBS) \ | ||
$(top_builddir)/util/libutil.la \ | ||
$(NULL) | ||
|
||
|
@@ -70,6 +86,11 @@ ipa_kdb_tests_SOURCES = \ | |
ipa_kdb_delegation.c \ | ||
ipa_kdb_audit_as.c \ | ||
$(NULL) | ||
|
||
if BUILD_IPA_CERTAUTH_PLUGIN | ||
ipa_kdb_tests_SOURCES += ipa_kdb_certauth.c | ||
endif | ||
|
||
ipa_kdb_tests_CFLAGS = $(CMOCKA_CFLAGS) | ||
ipa_kdb_tests_LDADD = \ | ||
$(CMOCKA_LIBS) \ | ||
|
@@ -78,12 +99,13 @@ ipa_kdb_tests_LDADD = \ | |
$(NDRPAC_LIBS) \ | ||
$(UNISTRING_LIBS) \ | ||
$(NSS_LIBS) \ | ||
$(SSSCERTMAP_LIBS) \ | ||
$(top_builddir)/util/libutil.la \ | ||
-lkdb5 \ | ||
-lsss_idmap \ | ||
$(NULL) | ||
|
||
dist_noinst_DATA = ipa_kdb.exports | ||
dist_noinst_DATA = ipa_kdb.exports ipa-certauth.in | ||
|
||
clean-local: | ||
rm -f tests/.dirstamp | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
[plugins] | ||
certauth = { | ||
module = ipakdb:@plugindir@/ipadb.so | ||
enable_only = ipakdb | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.