Repository navigation
tac_plus-ng mavis external module with vendor specific MSCHAPv2 attributes #218
Replies: 14 comments
|
Hi, I'm not sure what you're trying to achieve -- there's Cheers, Marc |
|
Dear Marc, I didn't expect you to be able to address my issue so quickly! Thank you very much. The code is expected. In this case, Mikrotik sends Vendor-Specific 0x1a codes, not These codes do not appear in the perl Those that it cannot decode are not processed further in the external module. Regards, István |
|
Hi, MAVIS doesn't know about RADIUS attributes. tac_plus-ng recognizes both MS-CHAP-Challenge and MS-CHAP2-Response and puts them in the MAVIS "CHALLENGE" attribute for backend evaluation. This requires Cheers, Marc |
|
Dear Marc, The relevant configuration for tac_plus-ng is as follows: The login session log is as follows: Contents of I believe that the attributes indicated in the lines What is also strange is that before I enter the password - ssh login - I get a reject, and of course I get a reject after entering the password as well. Best regards, István |
|
Hi István, your "testuser" (which seems to be defined locally) doesn't have a MSCHAP password set, so login fails. Also, your installation (or at least the RADIUS dict you're using) is likely outdated. Current versions would resolve the hex attributes correctly to MS-CHAP-Challenge and MS-CHAP2-Response. Cheers, Marc |
|
Dear Marc, Now I use current source. In the log, I see the following: Contents of How can I access the Is this necessary for MSCHAPv2 authentication? I don't currently have a samba environment, so I can't use the What do you suggest I do next? Best regards, István |
|
Hi, comes with both the calculated challenge (D17B...E7) and the nt-response (FD54...E4). Please detail what you're trying to achieve. If using ntlm_auth is out of scope, then plain-text MSCHAP(v2) is the only option left. Cheers, Marc |
|
Dear Marc, However, this value but only to Is this a problem? I am aware of the risks, but passwords must (should) be stored in clear text. Unfortunately, I couldn't find any Perl code that would be equivalent to the behavior of Regards: István |
|
Hi, I've never actually tested mavis_tacplus-ng_ntlmauth.pl. It may or may not work, and you've spotted that one right, 32 is correct, 16 isn't. My bad, I'll push another untested fix, thanks for that! Still, what are you actually trying to implement? Cheers, Marc |
|
Hello Marc, Although not identical to this issue, I am currently trying to overcome something similar or perhaps in my environment. I am attempting to figure out a correct configuration to authenticate login to a Palo Alto firewall using CHAP and a LDAP bind. I have gotten this to work with pap using "pap backend = mavis" and configuring the palo to use PAP, but this is outside of the security requirements of my environment. Trying "chap backend = mavis" results in the service not starting because it doesn't recognize it. I also got the same with ms-chap, unlike this other user in this thread.. Without adding any "chap backend" lines I get this log when attempting with chap: So it appears to be querying the backend but failing? This user logs in fine with pap or when a chap password is configured directly in the user or profile, but neither is ideal. Do you have any recommendations to get this working? |
|
Dear Marc, I tried a small piece. Login is successful both in the log and in reality, so the Mikrotik network device communicates with the tac_plus-ng server as expected. I naively think that the code that performs MSCHAPv2 authentication – admittedly in C language – is available. Now I "just" need to do the same using the mavis external module. But how? Regards: István |
|
Hi, I can't help you with that, you'll need to read the RFCs, or have a look at the ntlm_auth source code. Cheers, Marc |
Please open a separate discussion or issue for that. |
|
Dear Marc, Crazy idea. It seems that the The configuration: The script: The log: I see that the error is caused by What did I overlook? Regards: István |
Uh oh!
There was an error while loading. Please reload this page.
Dear Marc,
I would like to use the tac_plus-ng mavis external module for authentication, not with the "usual" PAP but with MSCHAPv2.
When running in debug mode, I can see that I get vendor-specific attributes in the packet because some of them are displayed as follows:
However, the
lines, which are Vendor-Specific MSCHAPv2 attributes (Vendor-Specific Type=26 MS-CHAP-Challenge and MS-CHAP2-Response ), do not reach the external mavis perl module in the
@Varray.Crazy idea:
mavis module = external { raw-vsa = yes }How can this be remedied? Or am I missing something?
Thank you in advance for your help.
Best regards, István
All reactions