summaryrefslogtreecommitdiff
path: root/source3/pipeutil.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>1997-10-27 19:00:38 +0000
committerLuke Leighton <lkcl@samba.org>1997-10-27 19:00:38 +0000
commitaee261e784915df4283e3bffaadac54ee36ec49e (patch)
tree3a2ef98c607713b82ac78321d45910c9ce2692f9 /source3/pipeutil.c
parent6fc83d5c36ab92a832d32ebbeab5111086826e10 (diff)
downloadsamba-aee261e784915df4283e3bffaadac54ee36ec49e.tar.gz
samba-aee261e784915df4283e3bffaadac54ee36ec49e.tar.bz2
samba-aee261e784915df4283e3bffaadac54ee36ec49e.zip
added LSA_Q_CLOSE and LSA_R_CLOSE (also to smb.h). implemented in smbclient.
updated Query Info Policy to report domain name and domain sid for info levels 3 and 5. fixed bug in dom_sid_to_string (idauths decoded wrong). fixed bug in DOM_SID: subauths are 32 bit not 16. (This used to be commit 2f3cca23e2465ca6a3a31fda005af1fd74f6af92)
Diffstat (limited to 'source3/pipeutil.c')
-rw-r--r--source3/pipeutil.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/source3/pipeutil.c b/source3/pipeutil.c
index dff0374433..93a78df493 100644
--- a/source3/pipeutil.c
+++ b/source3/pipeutil.c
@@ -106,10 +106,10 @@ char *dom_sid_to_string(DOM_SID *sid)
static pstring sidstr;
char subauth[16];
int i;
- uint32 ia = (sid->id_auth[0]) +
- (sid->id_auth[1] << 8 ) +
- (sid->id_auth[2] << 16) +
- (sid->id_auth[3] << 24);
+ uint32 ia = (sid->id_auth[5]) +
+ (sid->id_auth[4] << 8 ) +
+ (sid->id_auth[3] << 16) +
+ (sid->id_auth[2] << 24);
sprintf(sidstr, "S-%d-%d", sid->sid_rev_num, ia);