diff options
author | Jeremy Allison <jra@samba.org> | 2003-07-09 00:23:42 +0000 |
---|---|---|
committer | Jeremy Allison <jra@samba.org> | 2003-07-09 00:23:42 +0000 |
commit | 9d0692a54fe2cb087f25796ec2ab5e1d8433e388 (patch) | |
tree | 1039d0e75b8a29eca8e88c428a32a75b18c8dc84 /source/smbd/uid.c | |
parent | 6bd47884030c9c124c4bba1f0d57cb8dd916530d (diff) | |
download | samba-9d0692a54fe2cb087f25796ec2ab5e1d8433e388.tar.gz samba-9d0692a54fe2cb087f25796ec2ab5e1d8433e388.tar.xz samba-9d0692a54fe2cb087f25796ec2ab5e1d8433e388.zip |
Get rid of DISP_USER_INFO/DISP_GROUP_INFO as they serve no useful
purpose. Replace with an array of SAM_ACCOUNT/DOMAIN_GRP entries.
ZERO struct's in smbd/uid.c stops core dumps when sid_to_XX
functions fail. Getting ready to add caching.
Jeremy.
Diffstat (limited to 'source/smbd/uid.c')
-rw-r--r-- | source/smbd/uid.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source/smbd/uid.c b/source/smbd/uid.c index 320f8eb9806..6ca2aa336d3 100644 --- a/source/smbd/uid.c +++ b/source/smbd/uid.c @@ -722,6 +722,8 @@ NTSTATUS uid_to_sid(DOM_SID *psid, uid_t uid) uid_t low, high; fstring sid; + ZERO_STRUCTP(psid); + if (fetch_sid_from_uid_cache(psid, uid)) return ( psid ? NT_STATUS_OK : NT_STATUS_UNSUCCESSFUL ); @@ -761,6 +763,8 @@ NTSTATUS gid_to_sid(DOM_SID *psid, gid_t gid) gid_t low, high; fstring sid; + ZERO_STRUCTP(psid); + if (fetch_sid_from_gid_cache(psid, gid)) return ( psid ? NT_STATUS_OK : NT_STATUS_UNSUCCESSFUL ); |