Change expired password flag indicator
authorGabriel Buades <gbuades@soffid.com>
Mon, 8 Sep 2014 10:21:26 +0000 (12:21 +0200)
committerJeremy Allison <jra@samba.org>
Mon, 3 Nov 2014 22:46:04 +0000 (23:46 +0100)
Signed-off-by: Gabriel Buades <gbuades@soffid.com>
Reviewed-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Jim McDonough <jmcd@samba.org>
source3/lib/netapi/user.c

index 4a39f6976d0870198ff00759a542ef5122daf949..63240844e87cd30e7b33997e1739b7d9954bf594 100644 (file)
@@ -68,7 +68,7 @@ static void convert_USER_INFO_X_to_samr_user_info21(struct USER_INFO_X *infoX,
                fields_present |= SAMR_FIELD_DESCRIPTION;
        }
        if (infoX->usriX_password_age) {
-               fields_present |= SAMR_FIELD_FORCE_PWD_CHANGE;
+               fields_present |= SAMR_FIELD_EXPIRED_FLAG;
        }
        if (infoX->usriX_full_name) {
                fields_present |= SAMR_FIELD_FULL_NAME;