--- libnfsidmap-0.16/umich_ldap.c +++ libnfsidmap-0.16/umich_ldap.c @@ -32,6 +32,8 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ +#if defined(ENABLE_LDAP) + #include #include #include @@ -1007,3 +1009,5 @@ .gid_to_name = umichldap_gid_to_name, .gss_princ_to_grouplist = umichldap_gss_princ_to_grouplist, }; + +#endif /* ENABLE_LDAP */ --- libnfsidmap-0.16/libnfsidmap.c +++ libnfsidmap-0.16/libnfsidmap.c @@ -164,12 +164,18 @@ } extern struct trans_func nss_trans; +#if defined(ENABLE_LDAP) extern struct trans_func umichldap_trans; #define TR_SIZE 2 +#else +#define TR_SIZE 1 +#endif static struct trans_func * t_array[TR_SIZE] = { [0] = &nss_trans, +#if defined(ENABLE_LDAP) [1] = &umichldap_trans, +#endif }; int