]> git.ipfire.org Git - thirdparty/hostap.git/commitdiff
Fix NT-hash password use with integrated authentication server
authorB. J <bryanp35@comcast.net>
Sat, 15 Oct 2011 09:13:27 +0000 (12:13 +0300)
committerJouni Malinen <j@w1.fi>
Sat, 15 Oct 2011 09:13:27 +0000 (12:13 +0300)
The password_hash parameter was not copied in case of the integrated
authentication server (but was for RADIUS server). This broke EAP
authentication when the user entry used NT-hash.

src/ap/ieee802_1x.c

index a06f9565ec63f738bb2cab6a9cf549a72aece7f8..d163ce61f76f1b63b611e43ee8841ccef4ff3894 100644 (file)
@@ -1599,6 +1599,7 @@ static int ieee802_1x_get_eap_user(void *ctx, const u8 *identity,
                os_memcpy(user->password, eap_user->password,
                          eap_user->password_len);
                user->password_len = eap_user->password_len;
+               user->password_hash = eap_user->password_hash;
        }
        user->force_version = eap_user->force_version;
        user->ttls_auth = eap_user->ttls_auth;