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 | 4072006fecf56bebf113fe1d4566156c0d89bacc (patch) | |
tree | d117a5ac5629f0c3ed162e76ffb6a8ceea26ca57 /source3/smbd | |
parent | 2f0c3cd8174ba7c1cdf65281d50b922e5069bfa7 (diff) | |
download | samba-4072006fecf56bebf113fe1d4566156c0d89bacc.tar.gz samba-4072006fecf56bebf113fe1d4566156c0d89bacc.tar.bz2 samba-4072006fecf56bebf113fe1d4566156c0d89bacc.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.
(This used to be commit 9d0692a54fe2cb087f25796ec2ab5e1d8433e388)
Diffstat (limited to 'source3/smbd')
-rw-r--r-- | source3/smbd/uid.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/source3/smbd/uid.c b/source3/smbd/uid.c index 320f8eb980..6ca2aa336d 100644 --- a/source3/smbd/uid.c +++ b/source3/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 ); |