s3: No value change, just use the correct enum value
authorVolker Lendecke <vl@samba.org>
Fri, 6 Jan 2012 13:21:37 +0000 (14:21 +0100)
committerVolker Lendecke <vlendec@samba.org>
Fri, 6 Jan 2012 15:33:42 +0000 (16:33 +0100)
Autobuild-User: Volker Lendecke <vlendec@samba.org>
Autobuild-Date: Fri Jan  6 16:33:42 CET 2012 on sn-devel-104

nsswitch/pam_winbind.c

index 04977267c970857409c650957c6538b4c82b3c11..831fa844626702573e16f348149f3e4b296020dc 100644 (file)
@@ -1946,7 +1946,7 @@ static int winbind_chauthtok_request(struct pwb_context *ctx,
        }
 
        params.account_name             = user;
-       params.level                    = WBC_AUTH_USER_LEVEL_PLAIN;
+       params.level                    = WBC_CHANGE_PASSWORD_LEVEL_PLAIN;
        params.old_password.plaintext   = oldpass;
        params.new_password.plaintext   = newpass;
        params.flags                    = flags;