s4-loadparm: 2nd half of lp_ to lpcfg_ conversion
[nivanova/samba-autobuild/.git] / source4 / winbind / wb_utils.c
index 43effc30288c2db70864a95a5c1c99a4b15ad151..ffc4aa1950827fd60386d02f981e603b1a5ad88f 100644 (file)
@@ -31,10 +31,10 @@ bool wb_samba3_split_username(TALLOC_CTX *mem_ctx, struct loadparm_context *lp_c
                              const char *domuser,
                                 char **domain, char **user)
 {
-       char *p = strchr(domuser, *lp_winbind_separator(lp_ctx));
+       char *p = strchr(domuser, *lpcfg_winbind_separator(lp_ctx));
 
        if (p == NULL) {
-               *domain = talloc_strdup(mem_ctx, lp_workgroup(lp_ctx));
+               *domain = talloc_strdup(mem_ctx, lpcfg_workgroup(lp_ctx));
        } else {
                *domain = talloc_strndup(mem_ctx, domuser,
                                         PTR_DIFF(p, domuser));