Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
<samba:parameter name="cups server"
context="G"
type="string"
<samba:parameter name="cups server"
context="G"
type="string"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<description>
<para>
static http_t *cups_connect(TALLOC_CTX *frame)
{
static http_t *cups_connect(TALLOC_CTX *frame)
{
+ const struct loadparm_substitution *lp_sub =
+ loadparm_s3_global_substitution();
http_t *http = NULL;
char *server = NULL, *p = NULL;
int port;
int timeout = lp_cups_connection_timeout();
size_t size;
http_t *http = NULL;
char *server = NULL, *p = NULL;
int port;
int timeout = lp_cups_connection_timeout();
size_t size;
- if (lp_cups_server(talloc_tos()) != NULL && strlen(lp_cups_server(talloc_tos())) > 0) {
- if (!push_utf8_talloc(frame, &server, lp_cups_server(talloc_tos()), &size)) {
+ if (lp_cups_server(talloc_tos(), lp_sub) != NULL && strlen(lp_cups_server(talloc_tos(), lp_sub)) > 0) {
+ if (!push_utf8_talloc(frame, &server, lp_cups_server(talloc_tos(), lp_sub), &size)) {