git.samba.org
/
nivanova
/
samba-autobuild
/
.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c178eb
)
s3:client: Use KRB5CCNAME in smbspool_krb5_wrapper if set
author
Andreas Schneider
<asn@samba.org>
Wed, 12 Jul 2017 14:07:25 +0000
(16:07 +0200)
committer
Andreas Schneider
<asn@cryptomilk.org>
Tue, 25 Jul 2017 07:14:19 +0000
(09:14 +0200)
Signed-off-by: Andreas Schneider <asn@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
source3/client/smbspool_krb5_wrapper.c
patch
|
blob
|
history
diff --git
a/source3/client/smbspool_krb5_wrapper.c
b/source3/client/smbspool_krb5_wrapper.c
index a72006a4c4fec62205c3c0131fc8772720f7fb77..9a82b2a7b699daee311f29ebac70e1417b366cd9 100644
(file)
--- a/
source3/client/smbspool_krb5_wrapper.c
+++ b/
source3/client/smbspool_krb5_wrapper.c
@@
-181,6
+181,13
@@
int main(int argc, char *argv[])
return CUPS_BACKEND_FAILED;
}
+ env = getenv("KRB5CCNAME");
+ if (env != NULL && env[0] != 0) {
+ snprintf(gen_cc, sizeof(gen_cc), "%s", env);
+
+ goto create_env;
+ }
+
snprintf(gen_cc, sizeof(gen_cc), "/tmp/krb5cc_%d", uid);
rc = lstat(gen_cc, &sb);
@@
-205,6
+212,7
@@
int main(int argc, char *argv[])
}
}
+create_env:
/*
* Make sure we do not have LD_PRELOAD or other security relevant
* environment variables set.