/[smeserver]/rpms/sudo/sme9/sudo-1.8.6p3-ldap-sssd-usermatch.patch
ViewVC logotype

Annotation of /rpms/sudo/sme9/sudo-1.8.6p3-ldap-sssd-usermatch.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (hide annotations) (download)
Thu Feb 4 19:44:16 2021 UTC (3 years, 8 months ago) by jpp
Branch: MAIN
CVS Tags: sudo-1_8_6p3-30_el6_sme, sudo-1_8_6p3-29_el6_9, HEAD
Sudo

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;

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed