blob: 90c90ef9c9f6f8da1f8e212e2934a8ef17fe3475 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
|
diff -ur nfsidmap-0.7.orig/libnfsidmap.c nfsidmap-0.7/libnfsidmap.c
--- nfsidmap-0.7.orig/libnfsidmap.c 2004-12-30 23:14:59.417270096 -0500
+++ nfsidmap-0.7/libnfsidmap.c 2004-12-30 23:16:06.136127288 -0500
@@ -143,12 +143,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
diff -ur nfsidmap-0.7.orig/umich_ldap.c nfsidmap-0.7/umich_ldap.c
--- nfsidmap-0.7.orig/umich_ldap.c 2004-12-30 23:14:59.421269488 -0500
+++ nfsidmap-0.7/umich_ldap.c 2004-12-30 23:16:34.319842712 -0500
@@ -32,6 +32,8 @@
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
+#if defined(ENABLE_LDAP)
+
#include <stdio.h>
#include <stdlib.h>
#include <sys/types.h>
@@ -421,3 +423,5 @@
.gid_to_name = umichldap_gid_to_name,
.gss_princ_to_grouplist = umichldap_gss_princ_to_grouplist,
};
+
+#endif /* ENABLE_LDAP */
|