]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
libwbclient: fix wbcAuthenticateUserEx() to not ignore provided flags field.
authorGünther Deschner <gd@samba.org>
Fri, 10 Oct 2008 13:13:14 +0000 (15:13 +0200)
committerGünther Deschner <gd@samba.org>
Fri, 10 Oct 2008 13:24:06 +0000 (15:24 +0200)
Guenther

source3/nsswitch/libwbclient/wbc_pam.c

index 70e2aa60a53f32396d11b52183f6a26d69a9874b..91ea72f05fdc4df6b18ad2beb85992ab2c2c4bb9 100644 (file)
@@ -332,6 +332,7 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params,
                                params->account_name,
                                sizeof(request.data.auth.user)-1);
                }
+
                strncpy(request.data.auth.pass,
                        params->password.plaintext,
                        sizeof(request.data.auth.pass)-1);
@@ -417,6 +418,10 @@ wbcErr wbcAuthenticateUserEx(const struct wbcAuthUserParams *params,
                BAIL_ON_WBC_ERROR(wbc_status);
        }
 
+       if (params->flags) {
+               request.flags |= params->flags;
+       }
+
        wbc_status = wbcRequestResponse(cmd,
                                        &request,
                                        &response);