[Samba] wiki suggestions, part 2
Klaus Hartnegg
hartnegg at gmx.de
Fri Apr 27 07:26:36 UTC 2018
Am 26.04.2018 um 20:07 schrieb Harry Jede via samba:
> No, i have created 2 users with same sid.
>
> root at capella:~# pdbedit -Lv | grep "User SID" | sort|uniq -d
> root at capella:~#
>
> root at capella:~# pdbedit -L|grep Failing
> ldapsam_getsampwsid: More than one user with SID [S-1-5-21-3958726613-3318811842-4132420312-21010]. Failing. count=2
> ldapsam_getsampwsid: More than one user with SID [S-1-5-21-3958726613-3318811842-4132420312-21010]. Failing. count=2
What?!?
I would like to call this behaviour of "pdbedit -Lv" a bug, and wonder
whether it is documented.
What happens with this command:
pdbedit -Lv | grep "SID" | grep -v "Group" | sort | uniq -d
With this behaviour of pdbedit the suggestion from the wiki to "script
around" the commands "pdbedit -Lv" and "net groupmap list" does not help
to find multiple users with the same SID. It should specifically tell
that the output will not contain a "User SID" of those users, because
nobody would expect that.
Does the comment from the wiki mean that a user could have the same SID
as a group? That would require matching both, then the sentence makes sense.
Klaus
More information about the samba
mailing list