Add support for krb5_ccname in ldap.conf. If specified, it will

override the default value of KRB5CCNAME in the environment for
the duration of the call to ldap_sasl_interactive_bind_s().
This commit is contained in:
Todd C. Miller
2007-07-15 19:44:46 +00:00
parent d1f6bdbcff
commit af18ed5e9d
3 changed files with 38 additions and 3 deletions

4
sudo.c
View File

@@ -565,6 +565,10 @@ init_vars(sudo_mode, envp)
for (ep = envp; *ep; ep++) {
switch (**ep) {
case 'K':
if (strncmp("KRB5CCNAME=", *ep, 11) == 0)
user_ccname = *ep + 11;
break;
case 'P':
if (strncmp("PATH=", *ep, 5) == 0)
user_path = *ep + 5;