Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Stefan Metzmacher <metze@samba.org>
context="G"
type="string"
function="defaultservice"
+ substitution="1"
xmlns:samba="http://www.samba.org/samba/DTD/samba-doc">
<synonym>default</synonym>
<description>
int find_service(TALLOC_CTX *ctx, const char *service_in, char **p_service_out)
{
+ const struct loadparm_substitution *lp_sub =
+ loadparm_s3_global_substitution();
int iService;
if (!service_in) {
/* just possibly it's a default service? */
if (iService < 0) {
- char *pdefservice = lp_defaultservice(talloc_tos());
+ char *pdefservice = lp_defaultservice(talloc_tos(), lp_sub);
if (pdefservice &&
*pdefservice &&
!strequal(pdefservice, *p_service_out)