git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
43c841b
)
s3: Slightly simplify winbindd_store_creds
author
Volker Lendecke
<vl@samba.org>
Sat, 9 Jan 2010 18:01:35 +0000
(19:01 +0100)
committer
Volker Lendecke
<vl@samba.org>
Sat, 9 Jan 2010 19:37:39 +0000
(20:37 +0100)
source3/winbindd/winbindd_creds.c
patch
|
blob
|
history
diff --git
a/source3/winbindd/winbindd_creds.c
b/source3/winbindd/winbindd_creds.c
index 98a16ee937d99194692b52257fc1c9eb21961660..3874b6e5bddfe471b6372610cdcda6019b3922c8 100644
(file)
--- a/
source3/winbindd/winbindd_creds.c
+++ b/
source3/winbindd/winbindd_creds.c
@@
-66,10
+66,8
@@
NTSTATUS winbindd_store_creds(struct winbindd_domain *domain,
if (info3 != NULL) {
- DOM_SID sid;
- sid_copy(&sid, info3->base.domain_sid);
- sid_append_rid(&sid, info3->base.rid);
- sid_copy(&cred_sid, &sid);
+ sid_compose(&cred_sid, info3->base.domain_sid,
+ info3->base.rid);
info3->base.user_flags |= NETLOGON_CACHED_ACCOUNT;
} else if (user_sid != NULL) {