diff options
author | Simo Sorce <ssorce@redhat.com> | 2010-05-28 13:18:13 -0400 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2010-06-07 22:53:07 +1000 |
commit | e6456df1489ec964445dfd6f009f9f75377b3d11 (patch) | |
tree | 927178aa5b4800fb2280af1b61a2342cb700cfc4 /source3/auth/auth_util.c | |
parent | 61823fb8852cb8d66c341ecd54e7fb96abc4363a (diff) | |
download | samba-e6456df1489ec964445dfd6f009f9f75377b3d11.tar.gz samba-e6456df1489ec964445dfd6f009f9f75377b3d11.tar.bz2 samba-e6456df1489ec964445dfd6f009f9f75377b3d11.zip |
s3:auth handle unix domain sids in samu
When we generate a user out of thin air we may end up adding sids
that are not part of the sam domain (unix domain sids).
Handle the case and preserve these sids as extra sids.
Signed-off-by: Andrew Bartlett <abartlet@samba.org>
Diffstat (limited to 'source3/auth/auth_util.c')
-rw-r--r-- | source3/auth/auth_util.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/source3/auth/auth_util.c b/source3/auth/auth_util.c index c1b2d55993..3591271157 100644 --- a/source3/auth/auth_util.c +++ b/source3/auth/auth_util.c @@ -643,8 +643,8 @@ NTSTATUS make_server_info_pw(struct auth_serversupplied_info **server_info, return NT_STATUS_NO_MEMORY; } - status = samu_to_SamInfo3(result, sampass, - global_myname(), &result->info3); + status = samu_to_SamInfo3(result, sampass, global_myname(), + &result->info3, &result->extra); if (!NT_STATUS_IS_OK(status)) { DEBUG(10, ("Failed to convert samu to info3: %s\n", nt_errstr(status))); @@ -871,6 +871,7 @@ struct auth_serversupplied_info *copy_serverinfo(TALLOC_CTX *mem_ctx, TALLOC_FREE(dst); return NULL; } + dst->extra = src->extra; dst->pam_handle = NULL; dst->unix_name = talloc_strdup(dst, src->unix_name); |