Access denied from gdm sesssion

Hello everyone, on gdm I was unable to activate the deactivation of anonymous access in shares, which I did with lightdm.

Remote login to rocky linux 9 via rdp and AD user , works . When I travel the network appears to me the access denied as anonymous as for a reason that I do not understand the pc comes with different credentials.