|
Bugzilla – Full Text Bug Listing |
| Summary: | in sudo.c, calling zero_env breaks later calls to getpwuid(getuid()) for LDAP accounts | ||
|---|---|---|---|
| Product: | Sudo | Reporter: | Patrick Wolfe <pwolfe> |
| Component: | Sudo | Assignee: | Todd C. Miller <Todd.Miller> |
| Status: | RESOLVED FIXED | ||
| Severity: | normal | ||
| Priority: | normal | ||
| Version: | 1.6.8 | ||
| Hardware: | PC | ||
| OS: | FreeBSD | ||
|
Description
Patrick Wolfe
2006-08-02 13:46:37 MDT
"environ" is a pointer to the process's environment. Sudo uses a minimal environment to prevent its execution from being modified by any of the various environment variables that affect libc (and other) functions. From what you describe it sounds like there is a variable in your environment that is required for LDAP authentication to succeed. If you can find what that is we should be able to craft a workaround. With sudo 1.6.9 and higher the environment handling is rather different and I believe this issue has now been fixed. You can download beta versions of sudo from http://www.sudo.ws/sudo/beta.html I have tested this on both CentOS 4 and FreeBSD 6.2 and confirmed that this bug is fixed. |