Blame SOURCES/sudo-1.8.6p3-ldap-sssd-usermatch.patch
|
|
1b092f |
diff -up sudo-1.8.6p3/plugins/sudoers/ldap.c.usermatch sudo-1.8.6p3/plugins/sudoers/ldap.c
|
|
|
1b092f |
--- sudo-1.8.6p3/plugins/sudoers/ldap.c.usermatch 2012-11-23 15:57:00.084176086 +0100
|
|
|
1b092f |
+++ sudo-1.8.6p3/plugins/sudoers/ldap.c 2012-11-23 15:57:21.491239877 +0100
|
|
|
1b092f |
@@ -742,7 +742,7 @@ sudo_ldap_check_runas_user(LDAP *ld, LDA
|
|
|
1b092f |
}
|
|
|
1b092f |
/* FALLTHROUGH */
|
|
|
1b092f |
default:
|
|
|
1b092f |
- if (strcasecmp(val, runas_pw->pw_name) == 0)
|
|
|
1b092f |
+ if (userpw_matches(val, runas_pw->pw_name, runas_pw))
|
|
|
1b092f |
ret = true;
|
|
|
1b092f |
break;
|
|
|
1b092f |
}
|
|
|
1b092f |
diff -up sudo-1.8.6p3/plugins/sudoers/sssd.c.usermatch sudo-1.8.6p3/plugins/sudoers/sssd.c
|
|
|
1b092f |
--- sudo-1.8.6p3/plugins/sudoers/sssd.c.usermatch 2012-11-23 15:57:12.234211662 +0100
|
|
|
1b092f |
+++ sudo-1.8.6p3/plugins/sudoers/sssd.c 2012-11-23 15:57:21.492239881 +0100
|
|
|
1b092f |
@@ -466,7 +466,7 @@ sudo_sss_check_runas_user(struct sudo_ss
|
|
|
1b092f |
/* FALLTHROUGH */
|
|
|
1b092f |
sudo_debug_printf(SUDO_DEBUG_DEBUG, "FALLTHROUGH");
|
|
|
1b092f |
default:
|
|
|
1b092f |
- if (strcasecmp(val, runas_pw->pw_name) == 0) {
|
|
|
1b092f |
+ if (userpw_matches(val, runas_pw->pw_name, runas_pw)) {
|
|
|
1b092f |
sudo_debug_printf(SUDO_DEBUG_DEBUG,
|
|
|
1b092f |
"%s == %s (pw_name) => match", val, runas_pw->pw_name);
|
|
|
1b092f |
ret = true;
|