Skip to content

Commit

Permalink
secgsi: do not build/package libXrdSecgsiGMAPLDAP-4.so
Browse files Browse the repository at this point in the history
The way the LDAP query is implemented may represent a security threat.
Any related building and packaging reference is removed.
The code is left in place (for the time being) to remind its functionality
in the case a sanitized version is required.
  • Loading branch information
gganis committed Jun 22, 2017
1 parent 2db165d commit 81018f7
Show file tree
Hide file tree
Showing 5 changed files with 9 additions and 19 deletions.
1 change: 0 additions & 1 deletion packaging/rhel/xrootd.spec.in
Expand Up @@ -784,7 +784,6 @@ fi
%{_libdir}/libXrdPosix.so.1*
%{_libdir}/libXrdSecgsiAuthzVO.so*
%{_libdir}/libXrdSecgsiGMAPDN.so*
%{_libdir}/libXrdSecgsiGMAPLDAP.so*
%{_libdir}/libXrdSecgsi.so*
%{_libdir}/libXrdSeckrb5.so*
%{_libdir}/libXrdSecpwd.so*
Expand Down
1 change: 0 additions & 1 deletion src/XrdCl/XrdClDefaultEnv.cc
Expand Up @@ -663,7 +663,6 @@ namespace XrdCl
"libXrdSecgsi.so",
"libXrdSecgsiAuthzVO.so",
"libXrdSecgsiGMAPDN.so",
"libXrdSecgsiGMAPLDAP.so",
"libXrdSecpwd.so",
"libXrdSecsss.so",
"libXrdSecunix.so",
Expand Down
16 changes: 0 additions & 16 deletions src/XrdSecgsi.cmake
Expand Up @@ -5,7 +5,6 @@ include( XRootDCommon )
# Shared library version
#-------------------------------------------------------------------------------
set( LIB_XRD_SEC_GSI XrdSecgsi-${PLUGIN_VERSION} )
set( LIB_XRD_SEC_GSI_GMAPLDAP XrdSecgsiGMAPLDAP-${PLUGIN_VERSION} )
set( LIB_XRD_SEC_GSI_GMAPDN XrdSecgsiGMAPDN-${PLUGIN_VERSION} )
set( LIB_XRD_SEC_GSI_AUTHZVO XrdSecgsiAUTHZVO-${PLUGIN_VERSION} )

Expand All @@ -30,20 +29,6 @@ set_target_properties(
INTERFACE_LINK_LIBRARIES ""
LINK_INTERFACE_LIBRARIES "" )

#-------------------------------------------------------------------------------
# The XrdSecgsiGMAPLDAP module
#-------------------------------------------------------------------------------
add_library(
${LIB_XRD_SEC_GSI_GMAPLDAP}
MODULE
XrdSecgsi/XrdSecgsiGMAPFunLDAP.cc )

set_target_properties(
${LIB_XRD_SEC_GSI_GMAPLDAP}
PROPERTIES
INTERFACE_LINK_LIBRARIES ""
LINK_INTERFACE_LIBRARIES "" )

#-------------------------------------------------------------------------------
# The XrdSecgsiAuthzVO module
#-------------------------------------------------------------------------------
Expand Down Expand Up @@ -99,7 +84,6 @@ target_link_libraries(
install(
TARGETS
${LIB_XRD_SEC_GSI}
${LIB_XRD_SEC_GSI_GMAPLDAP}
${LIB_XRD_SEC_GSI_AUTHZVO}
${LIB_XRD_SEC_GSI_GMAPDN}
xrdgsiproxy
Expand Down
9 changes: 9 additions & 0 deletions src/XrdSecgsi/XrdSecgsiGMAPFunLDAP.cc
Expand Up @@ -38,6 +38,15 @@ XrdVERSIONINFO(XrdSecgsiGMAPFun,secgsigmap);
/* */
/* GMAP function implementation querying a LDAP database */
/* */
/* Warning: this plug-in is not build any longer because the external */
/* LDAP query via the popen() represents a potential security threat */
/* and it is believed that functionality provided is not actually used. */
/* If this believe happens to be uncorrect please report at */
/* */
/* https://github.com/xrootd */
/* */
/* a sanitized version of the plug-in can be provided using a proper library. */
/* */
/* ************************************************************************** */

#include <stdio.h>
Expand Down
1 change: 0 additions & 1 deletion src/XrdVersionPlugin.hh
Expand Up @@ -170,7 +170,6 @@
"libXrdSecgsi.so", \
"libXrdSecgsiAUTHZVO.so", \
"libXrdSecgsiGMAPDLAP.so", \
"libXrdSecgsiGMAPLDAP.so", \
"libXrdSeckrb5.so", \
"libXrdSecpwd.so", \
"libXrdSecsss.so", \
Expand Down

0 comments on commit 81018f7

Please sign in to comment.