X-Git-Url: http://www.project-moonshot.org/gitweb/?a=blobdiff_plain;f=plugins%2Fplugins.cpp;h=d23f1271cb0d2184334227d005fe79b42ad7771b;hb=HEAD;hp=323f7d48b3d2b10e44fe5ff8f8c1a85bb2df2fea;hpb=dab23c7b89f186b0683339615efbdc8cfe4492fa;p=shibboleth%2Fcpp-sp.git diff --git a/plugins/plugins.cpp b/plugins/plugins.cpp index 323f7d4..d23f127 100644 --- a/plugins/plugins.cpp +++ b/plugins/plugins.cpp @@ -41,29 +41,35 @@ using namespace std; #endif namespace shibsp { -#ifdef HAVE_GSSAPI_NAMINGEXTS + PluginManager::Factory TimeAccessControlFactory; +#ifndef SHIBSP_LITE +# ifdef HAVE_GSSAPI_NAMINGEXTS PluginManager::Factory GSSAPIExtractorFactory; -#endif +# endif PluginManager::Factory TemplateAttributeResolverFactory; PluginManager::Factory TransformAttributeResolverFactory; PluginManager::Factory UpperCaseAttributeResolverFactory; PluginManager::Factory LowerCaseAttributeResolverFactory; +#endif }; extern "C" int PLUGINS_EXPORTS xmltooling_extension_init(void*) { SPConfig& conf = SPConfig::getConfig(); -#ifdef HAVE_GSSAPI_NAMINGEXTS + conf.AccessControlManager.registerFactory("Time", TimeAccessControlFactory); +#ifndef SHIBSP_LITE +# ifdef HAVE_GSSAPI_NAMINGEXTS conf.AttributeExtractorManager.registerFactory("GSSAPI", GSSAPIExtractorFactory); static const XMLCh _GSSAPIName[] = UNICODE_LITERAL_10(G,S,S,A,P,I,N,a,m,e); static const XMLCh _GSSAPIContext[] = UNICODE_LITERAL_13(G,S,S,A,P,I,C,o,n,t,e,x,t); XMLObjectBuilder::registerBuilder(xmltooling::QName(shibspconstants::SHIB2ATTRIBUTEMAP_NS, _GSSAPIName), new AnyElementBuilder()); XMLObjectBuilder::registerBuilder(xmltooling::QName(shibspconstants::SHIB2ATTRIBUTEMAP_NS, _GSSAPIContext), new AnyElementBuilder()); -#endif +# endif conf.AttributeResolverManager.registerFactory("Template", TemplateAttributeResolverFactory); conf.AttributeResolverManager.registerFactory("Transform", TransformAttributeResolverFactory); conf.AttributeResolverManager.registerFactory("UpperCase", UpperCaseAttributeResolverFactory); conf.AttributeResolverManager.registerFactory("LowerCase", LowerCaseAttributeResolverFactory); +#endif return 0; // signal success }