]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Allow workstation trust accounts, too
authorAlan T. DeKok <aland@freeradius.org>
Thu, 9 Dec 2010 10:13:36 +0000 (11:13 +0100)
committerAlan T. DeKok <aland@freeradius.org>
Thu, 9 Dec 2010 10:13:50 +0000 (11:13 +0100)
Closes bug #123

src/modules/rlm_mschap/rlm_mschap.c

index 190388c62ba9b245b207fb24775ce8ed2ec0a506..be8908d9c8ad7e2e76317aafed73fe13ef0002f3 100644 (file)
@@ -1273,8 +1273,8 @@ static int mschap_authenticate(void * instance, REQUEST *request)
                 *      return 'not found'.
                 */
                if (((smb_ctrl->vp_integer & ACB_DISABLED) != 0) ||
-                   ((smb_ctrl->vp_integer & ACB_NORMAL) == 0)) {
-                       RDEBUG2("SMB-Account-Ctrl says that the account is disabled, or is not a normal account.");
+                   ((smb_ctrl->vp_integer & (ACB_NORMAL|ACB_WSTRUST)) == 0)) {
+                       RDEBUG2("SMB-Account-Ctrl says that the account is disabled, or is not a normal or workstatin trust account.");
                        mschap_add_reply(request, &request->reply->vps,
                                          *response->vp_octets,
                                          "MS-CHAP-Error", "E=691 R=1", 9);