summaryrefslogtreecommitdiff
path: root/source4
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-03-03 23:29:32 +0300
committerMatthias Dieter Wallnöfer <mwallnoefer@yahoo.de>2010-03-09 17:20:30 +0100
commit238ff24341767230614a3931646df59c1cf87a52 (patch)
tree82216de73f3af99f91db5088f24b93fd9bab6dc8 /source4
parent42b5b381871dd935aeda34669a2c03a05a63f5f0 (diff)
downloadsamba-238ff24341767230614a3931646df59c1cf87a52.tar.gz
samba-238ff24341767230614a3931646df59c1cf87a52.tar.bz2
samba-238ff24341767230614a3931646df59c1cf87a52.zip
s4:winbind: Fix a misplaced returned info
libwbclient expect to have in auth.exra_data the INFO3_TXT and in auth.unix_username the username Signed-off-by: Matthias Dieter Wallnöfer <mwallnoefer@yahoo.de>
Diffstat (limited to 'source4')
-rw-r--r--source4/winbind/wb_samba3_cmd.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/source4/winbind/wb_samba3_cmd.c b/source4/winbind/wb_samba3_cmd.c
index 99980d27a7..2161c2f585 100644
--- a/source4/winbind/wb_samba3_cmd.c
+++ b/source4/winbind/wb_samba3_cmd.c
@@ -676,8 +676,7 @@ static void pam_auth_crap_recv(struct composite_context *ctx)
}
if (s3call->request.flags & WBFLAG_PAM_UNIX_NAME) {
- s3call->response.extra_data.data = unix_username;
- s3call->response.length += strlen(unix_username)+1;
+ WBSRV_SAMBA3_SET_STRING(s3call->response.data.auth.unix_username,unix_username);
}
done:
@@ -769,8 +768,7 @@ static void pam_auth_recv(struct composite_context *ctx)
}
if (s3call->request.flags & WBFLAG_PAM_UNIX_NAME) {
- s3call->response.extra_data.data = unix_username;
- s3call->response.length += strlen(unix_username)+1;
+ WBSRV_SAMBA3_SET_STRING(s3call->response.data.auth.unix_username,unix_username);
}