The service io.systemd.Multiplexer will drop responses if the username in the
response does not match the requested name. This happens when the requested
username is an UPN and the response is a down-level user name (DOMAIN\user).
Signed-off-by: Samuel Cabrero <scabrero@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Thu Feb 20 09:05:46 UTC 2025 on atb-devel-224
goto out;
}
+ // The systemd multiplexer service expects the returned username to
+ // match the requested one. If we were asked for an UPN like
+ // user1@aforest.ad don't reply with AFOREST\\user1 or the record will
+ // be ignored.
+ fstrcpy(response->data.pw.pw_name, s->fake_req->data.username);
user_record_reply(s->call, &response->data.pw, false);
out:
TALLOC_FREE(s);