summaryrefslogtreecommitdiff
path: root/source3/libsmb/samlogon_cache.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2010-12-11 14:19:50 +0100
committerVolker Lendecke <vlendec@samba.org>2010-12-19 23:25:06 +0100
commite113b1c64f1dfd84911050379d06d9ffc4958db3 (patch)
treea47eaecee7ad3e74e99b69a11e129cd04ae57fd2 /source3/libsmb/samlogon_cache.c
parentff5f767d0e31ea0c5311ce48d8e0387eebd84ce8 (diff)
downloadsamba-e113b1c64f1dfd84911050379d06d9ffc4958db3.tar.gz
samba-e113b1c64f1dfd84911050379d06d9ffc4958db3.tar.bz2
samba-e113b1c64f1dfd84911050379d06d9ffc4958db3.zip
s3: netsamlogon_clear_cached_user only needs the SID
Diffstat (limited to 'source3/libsmb/samlogon_cache.c')
-rw-r--r--source3/libsmb/samlogon_cache.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/source3/libsmb/samlogon_cache.c b/source3/libsmb/samlogon_cache.c
index 52fbe04351..f3ef9547b7 100644
--- a/source3/libsmb/samlogon_cache.c
+++ b/source3/libsmb/samlogon_cache.c
@@ -99,25 +99,19 @@ bool netsamlogon_cache_shutdown(void)
Clear cache getpwnam and getgroups entries from the winbindd cache
***********************************************************************/
-void netsamlogon_clear_cached_user(struct netr_SamInfo3 *info3)
+void netsamlogon_clear_cached_user(const struct dom_sid *user_sid)
{
- struct dom_sid user_sid;
fstring keystr;
- if (!info3) {
- return;
- }
-
if (!netsamlogon_cache_init()) {
DEBUG(0,("netsamlogon_clear_cached_user: cannot open "
"%s for write!\n",
NETSAMLOGON_TDB));
return;
}
- sid_compose(&user_sid, info3->base.domain_sid, info3->base.rid);
/* Prepare key as DOMAIN-SID/USER-RID string */
- sid_to_fstring(keystr, &user_sid);
+ sid_to_fstring(keystr, user_sid);
DEBUG(10,("netsamlogon_clear_cached_user: SID [%s]\n", keystr));