cifs lookup - translate name into SID or vice versa
cifs lookup { name | textualsid }
The cifs lookup command translates a Windows NT user or group name into its corresponding textual Windows NT SID (Security ID), or a textual NT SID into its corresponding Windows NT user or group name.
toaster> cifs lookup mday SID = S-1-5-21-39724982-1647982808-1376457959-1221 toaster> cifs lookup NT-DOMAIN\mday SID = S-1-5-21-39724982-1647982808-1376457959-1221 toaster> cifs lookup BUILTIN\Administrators SID = S-1-5-32-544 toaster> cifs lookup S-1-5-32-544 name = BUILTIN\Administrators toaster> cifs lookup nonexistantuser lookup failed