diff options
author | Volker Lendecke <vl@samba.org> | 2007-12-15 22:33:52 +0100 |
---|---|---|
committer | Volker Lendecke <vl@samba.org> | 2007-12-15 22:33:52 +0100 |
commit | 3a0b1b2060facd5f1ac1461b23dd86c75cdd9458 (patch) | |
tree | d894c14e9395f912a142822b7fa6dfa2978b04a9 /source/librpc | |
parent | 7b8276aaa48852270c6b70b081c3f28e316a7a2c (diff) | |
download | samba-3a0b1b2060facd5f1ac1461b23dd86c75cdd9458.tar.gz samba-3a0b1b2060facd5f1ac1461b23dd86c75cdd9458.tar.xz samba-3a0b1b2060facd5f1ac1461b23dd86c75cdd9458.zip |
Use dom_sid_string for sid_string_talloc
Remove some code duplication, but introduce one more dependency on librpc/ndr.
Easily turned around so that librpc/ndr depends on lib/util_sid if necessary
Diffstat (limited to 'source/librpc')
-rw-r--r-- | source/librpc/ndr/sid.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source/librpc/ndr/sid.c b/source/librpc/ndr/sid.c index b621f2485bb..89ab2b8ea50 100644 --- a/source/librpc/ndr/sid.c +++ b/source/librpc/ndr/sid.c @@ -75,6 +75,11 @@ char *dom_sid_string(TALLOC_CTX *mem_ctx, const struct dom_sid *sid) ret = (char *)talloc_size(mem_ctx, maxlen); if (!ret) return talloc_strdup(mem_ctx, "(SID ERR)"); + /* + * BIG NOTE: this function only does SIDS where the identauth is not + * >= ^32 in a range of 2^48. + */ + ia = (sid->id_auth[5]) + (sid->id_auth[4] << 8 ) + (sid->id_auth[3] << 16) + |