~ubuntu-branches/ubuntu/saucy/sudo/saucy

« back to all changes in this revision

Viewing changes to debian/patches/fix_sssd_build.patch

  • Committer: Package Import Robot
  • Author(s): Stéphane Graber
  • Date: 2012-11-16 09:31:32 UTC
  • mfrom: (1.4.13)
  • Revision ID: package-import@ubuntu.com-20121116093132-ptext55adlzbrq6y
Tags: 1.8.6p3-0ubuntu1
* New upstream release (1.8.6p3).
* Add patch to fix building with sssd when ldap is disabled.
* Drop sudo.manpages and sudo-ldap.manpages as the upstream build system
  now does the right thing here.
* Build the main sudo package with support for sssd, this doesn't add any
  additional build time or runtime dependency. sudo will dynamically load
  the sssd library if 'sss' is listed for the 'sudoers' nss service.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
Index: sudo/plugins/sudoers/sssd.c
 
2
===================================================================
 
3
--- sudo.orig/plugins/sudoers/sssd.c    2012-10-26 11:04:40.492227205 +0200
 
4
+++ sudo/plugins/sudoers/sssd.c 2012-10-26 11:05:28.676229161 +0200
 
5
@@ -239,7 +239,7 @@
 
6
 static int sudo_sss_open(struct sudo_nss *nss)
 
7
 {
 
8
     struct sudo_sss_handle *handle;
 
9
-    static const char path[] = _PATH_SSSD_LIB"/libsss_sudo.so";
 
10
+    static const char path[] = _PATH_SSSD_LIB"/libsss_sudo.so.1";
 
11
     debug_decl(sudo_sss_open, SUDO_DEBUG_SSSD);
 
12
 
 
13
     /* Create a handle container. */
 
14
Index: sudo/plugins/sudoers/sudo_nss.c
 
15
===================================================================
 
16
--- sudo.orig/plugins/sudoers/sudo_nss.c        2012-10-26 11:05:24.452512000 +0200
 
17
+++ sudo/plugins/sudoers/sudo_nss.c     2012-10-26 11:06:01.184230481 +0200
 
18
@@ -89,9 +89,11 @@
 
19
            if (strcasecmp(cp, "files") == 0 && !saw_files) {
 
20
                tq_append(&snl, &sudo_nss_file);
 
21
                got_match = true;
 
22
+#ifdef HAVE_LDAP
 
23
            } else if (strcasecmp(cp, "ldap") == 0 && !saw_ldap) {
 
24
                tq_append(&snl, &sudo_nss_ldap);
 
25
                got_match = true;
 
26
+#endif
 
27
 #ifdef HAVE_SSSD
 
28
            } else if (strcasecmp(cp, "sss") == 0 && !saw_sss) {
 
29
                tq_append(&snl, &sudo_nss_sss);
 
30
@@ -171,11 +173,13 @@
 
31
                tq_append(&snl, &sudo_nss_file);
 
32
                got_match = true;
 
33
                ep = &cp[5];
 
34
+#ifdef HAVE_LDAP
 
35
            } else if (!saw_ldap && strncasecmp(cp, "ldap", 4) == 0 &&
 
36
                (isspace((unsigned char)cp[4]) || cp[4] == '\0')) {
 
37
                tq_append(&snl, &sudo_nss_ldap);
 
38
                got_match = true;
 
39
                ep = &cp[4];
 
40
+#endif
 
41
 #ifdef HAVE_SSSD
 
42
            } else if (!saw_sss && strncasecmp(cp, "sss", 3) == 0 &&
 
43
                (isspace((unsigned char)cp[3]) || cp[3] == '\0')) {