If you have two accounts with the same UID in your password backend, for example dup1:12345:... dup2:12345:... dup3:12345:... pdbedit -L will report all the accounts, but with the same username. dup1:10167:Test User 1 dup1:10167:Test User 1 dup1:10167:Test User 1 I do not know if the duplicated name depends on the order of samba's backend or the UID->user resolution performed by the server host. Different usernames mapped to the same UID are useful when sharing files amonmg different users without having to share passwords.
> Different usernames mapped to the same UID are useful no. A setup with different usernames but same UID are broken. Don't do that.