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