1 --- libnfsidmap-0.17/configure.in
2 +++ libnfsidmap-0.17/configure.in
5 # Checks for libraries.
8 + [AC_HELP_STRING([--disable-ldap],[Disable support for LDAP @<:@default=detect@:>@])])
9 +if test "x$enable_ldap" != "xno" ; then
10 + AC_CHECK_HEADER([ldap.h],
11 + [AC_CHECK_LIB([ldap], [ldap_initialize],
12 + [have_ldap="yes"],[have_ldap="no"])],
14 + if test "x$have_ldap" = "xyes" ; then
15 + AC_DEFINE([ENABLE_LDAP], 1, [Enable LDAP Support])
17 + elif test "x$enable_ldap$have_ldap" = "xyesno" ; then
18 + AC_MSG_ERROR(LDAP support not found!)
22 # Checks for header files.
24 AC_CHECK_HEADERS([stdlib.h string.h unistd.h errno.h])
25 --- libnfsidmap-0.17/Makefile.am
26 +++ libnfsidmap-0.17/Makefile.am
28 libnfsidmap_la_LDFLAGS = -version-info 2:0:2
29 include_HEADERS = nfsidmap.h
30 EXTRA_DIST = $(man_MANS) libtest.c idmapd.conf
33 # XXX: also exclude debian/files and debian/files.new ? do a clean??
35 --- libnfsidmap-0.17/libnfsidmap.c
36 +++ libnfsidmap-0.17/libnfsidmap.c
38 extern struct trans_func nss_trans;
39 extern struct trans_func umichldap_trans;
42 -static struct trans_func * t_array[TR_SIZE] = {
44 - [1] = &umichldap_trans,
45 +static struct trans_func * t_array[] = {
51 +#define TR_SIZE (sizeof(t_array)/sizeof(*t_array))
54 set_trans_method(char *method)
55 --- libnfsidmap-0.17/umich_ldap.c
56 +++ libnfsidmap-0.17/umich_ldap.c
58 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
63 #include <sys/types.h>
64 #include <sys/socket.h>
67 .gid_to_name = umichldap_gid_to_name,
68 .gss_princ_to_grouplist = umichldap_gss_princ_to_grouplist,