Blame SOURCES/sudo-1.8.6p3-sssdrulenames.patch

523624
diff -up sudo-1.8.6p3/plugins/sudoers/sssd.c.rulenames sudo-1.8.6p3/plugins/sudoers/sssd.c
523624
--- sudo-1.8.6p3/plugins/sudoers/sssd.c.rulenames	2014-05-21 12:33:21.000768420 +0200
523624
+++ sudo-1.8.6p3/plugins/sudoers/sssd.c	2014-05-21 12:38:13.779864718 +0200
523624
@@ -1180,6 +1180,18 @@ sudo_sss_display_entry_long(struct sudo_
523624
     int count = 0, i;
523624
     debug_decl(sudo_sss_display_entry_long, SUDO_DEBUG_SSSD);
523624
 
523624
+    switch(handle->fn_get_values(rule, "cn", &val_array)) {
523624
+    case 0:
523624
+	if (val_array[0]) {
523624
+	    lbuf_append(lbuf, _("\nSSSD Role: %s\n"), val_array[0]);
523624
+	}
523624
+	handle->fn_free_values(val_array);
523624
+	val_array = NULL;
523624
+	break;
523624
+    default:
523624
+	lbuf_append(lbuf, _("\nSSSD Role: UNKNOWN\n"));
523624
+    }
523624
+
523624
     /* get the RunAsUser Values from the entry */
523624
     lbuf_append(lbuf, "    RunAsUsers: ");
523624
     switch (handle->fn_get_values(rule, "sudoRunAsUser", &val_array)) {