Elsewhere, we use a #define for this environment variable name, so do the
authorAndrew Bartlett <abartlet@samba.org>
Fri, 9 May 2003 09:37:12 +0000 (09:37 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Fri, 9 May 2003 09:37:12 +0000 (09:37 +0000)
same here.

Andrew Bartlett

source/printing/nt_printing.c

index 685f5ff4999a10f0f43f20b4a3c0be9550a95794..b9aed03c961cdbc790743e6c9742964b1f4c4d8a 100644 (file)
@@ -2607,7 +2607,7 @@ static WERROR publish_it(NT_PRINTER_INFO_LEVEL *printer)
                DEBUG(3, ("ads_init() failed\n"));
                return WERR_SERVER_UNAVAILABLE;
        }
-       setenv("KRB5CCNAME", "MEMORY:prtpub_cache", 1);
+       setenv(KRB5_ENV_CCNAME, "MEMORY:prtpub_cache", 1);
        SAFE_FREE(ads->auth.password);
        ads->auth.password = secrets_fetch_machine_password(lp_workgroup(),
                                                            NULL, NULL);
@@ -2668,7 +2668,7 @@ WERROR unpublish_it(NT_PRINTER_INFO_LEVEL *printer)
                DEBUG(3, ("ads_init() failed\n"));
                return WERR_SERVER_UNAVAILABLE;
        }
-       setenv("KRB5CCNAME", "MEMORY:prtpub_cache", 1);
+       setenv(KRB5_ENV_CCNAME, "MEMORY:prtpub_cache", 1);
        SAFE_FREE(ads->auth.password);
        ads->auth.password = secrets_fetch_machine_password(lp_workgroup(),
                                                            NULL, NULL);