Commit 7993f27
committed
sudo_ldap_check_non_unix_group: only call plugin for non-Unix groups
The query for netgroups and non-Unix groups may return other types
of sudoUser entries. We must check that the sudoUser value starts
with "%:" before incrementing it by 2 and passing it to the non-Unix
group plugin.
Reported by Christos Papakonstantinou from Cantina (cantina.xyz)1 parent 5066cce commit 7993f27
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
324 | 324 | | |
325 | 325 | | |
326 | 326 | | |
327 | | - | |
| 327 | + | |
328 | 328 | | |
329 | 329 | | |
330 | 330 | | |
331 | 331 | | |
332 | 332 | | |
333 | | - | |
| 333 | + | |
334 | 334 | | |
335 | 335 | | |
336 | 336 | | |
| |||
0 commit comments