1 |
jpp |
1.1 |
diff -up sudo-1.8.6p3/plugins/sudoers/ldap.c.usermatch sudo-1.8.6p3/plugins/sudoers/ldap.c |
2 |
|
|
--- sudo-1.8.6p3/plugins/sudoers/ldap.c.usermatch 2012-11-23 15:57:00.084176086 +0100 |
3 |
|
|
+++ sudo-1.8.6p3/plugins/sudoers/ldap.c 2012-11-23 15:57:21.491239877 +0100 |
4 |
|
|
@@ -742,7 +742,7 @@ sudo_ldap_check_runas_user(LDAP *ld, LDA |
5 |
|
|
} |
6 |
|
|
/* FALLTHROUGH */ |
7 |
|
|
default: |
8 |
|
|
- if (strcasecmp(val, runas_pw->pw_name) == 0) |
9 |
|
|
+ if (userpw_matches(val, runas_pw->pw_name, runas_pw)) |
10 |
|
|
ret = true; |
11 |
|
|
break; |
12 |
|
|
} |
13 |
|
|
diff -up sudo-1.8.6p3/plugins/sudoers/sssd.c.usermatch sudo-1.8.6p3/plugins/sudoers/sssd.c |
14 |
|
|
--- sudo-1.8.6p3/plugins/sudoers/sssd.c.usermatch 2012-11-23 15:57:12.234211662 +0100 |
15 |
|
|
+++ sudo-1.8.6p3/plugins/sudoers/sssd.c 2012-11-23 15:57:21.492239881 +0100 |
16 |
|
|
@@ -466,7 +466,7 @@ sudo_sss_check_runas_user(struct sudo_ss |
17 |
|
|
/* FALLTHROUGH */ |
18 |
|
|
sudo_debug_printf(SUDO_DEBUG_DEBUG, "FALLTHROUGH"); |
19 |
|
|
default: |
20 |
|
|
- if (strcasecmp(val, runas_pw->pw_name) == 0) { |
21 |
|
|
+ if (userpw_matches(val, runas_pw->pw_name, runas_pw)) { |
22 |
|
|
sudo_debug_printf(SUDO_DEBUG_DEBUG, |
23 |
|
|
"%s == %s (pw_name) => match", val, runas_pw->pw_name); |
24 |
|
|
ret = true; |