r26228: Store loadparm context in auth context, move more loadparm_contexts up the...
[sfrench/samba-autobuild/.git] / source4 / auth / auth_server.c
index 36637edd57bd481b46766029b66f77b9357ace38..6502564dca947b6368574bfc998b02d579f748aa 100644 (file)
@@ -206,7 +206,7 @@ static NTSTATUS check_smbserver_security(const struct auth_context *auth_context
         * password file.
         */
 
-       if (lp_is_myname(global_loadparm, user_info->domain.str)) {
+       if (lp_is_myname(auth_context->lp_ctx, user_info->domain.str)) {
                DEBUG(3,("check_smbserver_security: Requested domain was for this machine.\n"));
                return NT_STATUS_LOGON_FAILURE;
        }