diff --git a/etc/Makefile b/etc/Makefile --- a/etc/Makefile +++ b/etc/Makefile @@ -15,6 +15,12 @@ SUBDIR+=sendmail .endif +.if ${MK_MITKRB5} != "no" +SUBDIR+=gss-krb5 +.else +SUBDIR+=gss +.endif + # NB: keep these sorted by MK_* knobs ETCMAIL=aliases @@ -53,7 +59,11 @@ @echo "set DESTDIR before running \"make ${.TARGET}\"" @false .endif +.if ${MK_MITKRB5} != "no" + ${_+_}cd ${.CURDIR}/gss-krb5; ${MAKE} install +.else ${_+_}cd ${.CURDIR}/gss; ${MAKE} install +.endif ${_+_}cd ${.CURDIR}/mtree; ${MAKE} install ${_+_}cd ${SRCTOP}/share/termcap; ${MAKE} etc-termcap ${_+_}cd ${SRCTOP}/usr.sbin/rmt; ${MAKE} etc-rmt diff --git a/etc/gss-krb5/Makefile b/etc/gss-krb5/Makefile new file mode 100644 --- /dev/null +++ b/etc/gss-krb5/Makefile @@ -0,0 +1,5 @@ +FILES= mech qop +NO_OBJ= +FILESDIR= /etc/gss + +.include diff --git a/etc/gss-krb5/mech b/etc/gss-krb5/mech new file mode 100644 --- /dev/null +++ b/etc/gss-krb5/mech @@ -0,0 +1,10 @@ +# +# Name OID Library name Kernel module +kerberosv5 1.2.840.113554.1.2.2 /usr/lib/libgssapi_krb5.so.121 kgssapi_krb5 +kerberosv5 1.2.840.113554.1.2.3 /usr/lib/libgssapi_krb5.so.121 kgssapi_krb5 +kerberosv5 1.3.6.1.5.5.2 /usr/lib/libgssapi_krb5.so.121 kgssapi_krb5 +kerberosv5 1.2.840.48018.1.2.2.1 /usr/lib/libgssapi_krb5.so.121 kgssapi_krb5 +kerberosv5 1.2.840.48018.1.2.2.2 /usr/lib/libgssapi_krb5.so.121 kgssapi_krb5 +kerberosv5 1.2.840.48018.1.2.2.4 /usr/lib/libgssapi_krb5.so.121 kgssapi_krb5 +kerberosv5 1.2.840.48018.1.2.2.5 /usr/lib/libgssapi_krb5.so.121 kgssapi_krb5 +kerberosv5 1.3.5.1.5.2 /usr/lib/libgssapi_krb5.so.121 kgssapi_krb5 diff --git a/etc/gss-krb5/qop b/etc/gss-krb5/qop new file mode 100644 --- /dev/null +++ b/etc/gss-krb5/qop @@ -0,0 +1 @@ +GSS_KRB5_CONF_C_QOP_DES3_KD 0x0200 kerberosv5