Automating usage of smbspool_krb5_wrapper
Mikhail Novosyolov
m.novosyolov at rosalinux.ru
Mon Oct 28 07:58:26 UTC 2019
28.10.2019 10:44, Mikhail Novosyolov пишет:
> <...>
> There are 2 possible solutions:
>
> 1) either patch source3/client/smbspool_krb5_wrapper.c to "goto
> smbspool;" if env does not contain "negotiate" instead of chekcing to
> be either null or 0 - how correct will this be?
>
I mean this:
diff --git a/source3/client/smbspool_krb5_wrapper.c
b/source3/client/smbspool_krb5_wrapper.c
index bff1df417e8..000a613291e 100644
--- a/source3/client/smbspool_krb5_wrapper.c
+++ b/source3/client/smbspool_krb5_wrapper.c
@@ -149,7 +149,7 @@ int main(int argc, char *argv[])
env = getenv("AUTH_INFO_REQUIRED");
/* If not set, then just call smbspool. */
- if (env == NULL || env[0] == 0) {
+ if (env == NULL || env == "none" || env[0] == 0) {
CUPS_SMB_DEBUG("AUTH_INFO_REQUIRED is not set - "
"execute smbspool");
goto smbspool;
or maybe it is not needed because cups will not set env
AUTH_INFO_REQUIRED if "AuthInfoRequired none" ? I've looked into
cups/scheduler/job.c, seems that it does set AUTH_INFO_REQUIRED=none
env, but I'm not sure at all.
Also, I'm not sure that cases like AUTH_INFO_REQUIRED=xxx,none or
AUTH_INFO_REQUIRED=none,xxx are not possible.
More information about the samba-technical
mailing list