Don't call string_to_sid after cli_lsa_lookup_names() fails.
authorTim Potter <tpot@samba.org>
Thu, 21 Dec 2000 06:21:26 +0000 (06:21 +0000)
committerTim Potter <tpot@samba.org>
Thu, 21 Dec 2000 06:21:26 +0000 (06:21 +0000)
commitca727bd638934f0ab581507809d0f294495aaef2
treea3eeb0f87a4defbaf7b5e09e847b32d02dae58fb
parent855bcea38e1c6264dced36c85fa949210f9c37a4
Don't call string_to_sid after cli_lsa_lookup_names() fails.

Can't use space as a ACL separator as it breaks NT user/group names that
contain spaces (i.e most of the default ones).

The MSDN is contradictory over the exact ordering of ACE entries in an ACL.
However NT4 gives a "The information may have been modified by a computer
running Windows NT 5.0" if denied ACEs do not appear before allowed ACEs.
Sort ACE list before calling cli_set_secdesc().
(This used to be commit 01a89978ff4b9fcc813c4f251ddfe23c0485a696)
source3/utils/smbcacls.c