This was the behavior in versions before 4.9 and
it is hopefully not required by current callers of
become_user*().
Pair-Programmed-With: Ralph Boehme <slow@samba.org>
Signed-off-by: Stefan Metzmacher <metze@samba.org>
Signed-off-by: Ralph Boehme <slow@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
push_conn_ctx();
- ok = change_to_user_internal(conn, vuser->session_info, vuid);
+ ok = change_to_user_impersonate(conn, vuser->session_info, vuid);
if (!ok) {
pop_sec_ctx();
pop_conn_ctx();
push_conn_ctx();
- ok = change_to_user_internal(conn, session_info, UID_FIELD_INVALID);
+ ok = change_to_user_impersonate(conn, session_info, UID_FIELD_INVALID);
if (!ok) {
pop_sec_ctx();
pop_conn_ctx();