Home
Help
Search
Login
Register
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
[Solved] LDAP + TOTP authentication failure
« previous
next »
Print
Pages: [
1
]
2
3
Author
Topic: [Solved] LDAP + TOTP authentication failure (Read 18304 times)
CraigS
Newbie
Posts: 25
Karma: 2
[Solved] LDAP + TOTP authentication failure
«
on:
July 25, 2020, 10:52:26 am »
Good day all,
Please help!
I have Opnsense 20.1.9 installed, and configured for Radius and LDAP authentication.
OPNsense 20.1.9-amd64
FreeBSD 11.2-RELEASE-p20-HBSD
OpenSSL 1.1.1g 21 Apr 2020
Authentications that work:
Local user
Local user + TOTP (Google Authenticator)
Radius user
LDAP user
I did have to install opnsense-patch b2affd1 to get LDAP working. (allow CA cert selection under server)
Then imported the ldap user and generated the QR code.
I cannot get LDAP + TOTP to work. Tried token in front and rear of password and using Google Authenticator but tried 2FA Authenticator too.
Tester just gives this error:
The following input errors were detected: Authentication failed.
The log files do not seem to show any errors regarding ldap or totp.
Am I missing something?
Thank you in advance.
«
Last Edit: October 22, 2020, 10:48:06 am by CraigS
»
Logged
CraigS
Newbie
Posts: 25
Karma: 2
Re: LDAP + TOTP authentication failure
«
Reply #1 on:
August 03, 2020, 11:19:00 am »
Hi Guys,
58x views and no answers?
Does anybody successfully use ldap+totp authentication?
If so, on what firmware version? 18.7, 19.1 and 20.1.9 does not work.
Thanks
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: LDAP + TOTP authentication failure
«
Reply #2 on:
August 03, 2020, 11:22:47 am »
Sure, I have a half dozen Firewalls running a combination of LDAP and TOTP without any issue.
Are you sure LDAP works via tester?
Hard to diagnose from remote. Your time on firewall is correct? It should be since local+totp works ...
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
CraigS
Newbie
Posts: 25
Karma: 2
Re: LDAP + TOTP authentication failure
«
Reply #3 on:
August 03, 2020, 11:33:08 am »
Hello mimugmail,
ldap works 100% from tester and vpn logins.
I tried to verify the time sync by looking at my desktop time and vpn time at same time.
It seems to be fine. Perhaps 1sec difference.
Thanks
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: LDAP + TOTP authentication failure
«
Reply #4 on:
August 03, 2020, 12:35:07 pm »
And the time on your mobile?
So, you say local+totp works and ldap+totp doesnt, really?
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
CraigS
Newbie
Posts: 25
Karma: 2
Re: LDAP + TOTP authentication failure
«
Reply #5 on:
August 03, 2020, 01:13:30 pm »
Please see the video:
URL:
https://transfer.csir.co.za/index.php/s/WQ6NYGHiMemazQd
passwd is: D5M`(!wr,8
link expires 17/07/2020
I would be very happy if I was making a mistake and could have this problem resolved.
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: LDAP + TOTP authentication failure
«
Reply #6 on:
August 03, 2020, 01:19:01 pm »
Screenshot of this server config please ...
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
CraigS
Newbie
Posts: 25
Karma: 2
Re: LDAP + TOTP authentication failure
«
Reply #7 on:
August 03, 2020, 01:24:27 pm »
screenshot attached
Also tested totp on a different phone with same failure.
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: LDAP + TOTP authentication failure
«
Reply #8 on:
August 03, 2020, 01:29:06 pm »
And ldap-only config screenshot please?
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
CraigS
Newbie
Posts: 25
Karma: 2
Re: LDAP + TOTP authentication failure
«
Reply #9 on:
August 03, 2020, 01:32:45 pm »
screenshot attached
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: LDAP + TOTP authentication failure
«
Reply #10 on:
August 03, 2020, 01:47:48 pm »
Can you switch to plaintext LDAP and port 389, do a tcpdump with -X to watch contents and check if LDAP is really contacted? Hard to debug from remote
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
CraigS
Newbie
Posts: 25
Karma: 2
Re: LDAP + TOTP authentication failure
«
Reply #11 on:
August 03, 2020, 01:58:54 pm »
new cleartext ldap server authenticates fine.
Same server with totp fails.
Tcpdump gives "That device doesn't support monitor mode" error - vmxnet3 vmware driver.
Will try tcpdump on different vm with e1000 driver.
Logged
CraigS
Newbie
Posts: 25
Karma: 2
Re: LDAP + TOTP authentication failure
«
Reply #12 on:
August 03, 2020, 02:22:27 pm »
You may be on to something.
The successful ldap auth has about 3x times more packets than the ldap+totp auth.
I tested on cleartext and ssl ldap with same results.
It does seem to do the client hello, server hello, certificate hello and handshake without errors.
I wonder if it is sending the totp to the ldap server as well?
Logged
mimugmail
Hero Member
Posts: 6766
Karma: 494
Re: LDAP + TOTP authentication failure
«
Reply #13 on:
August 03, 2020, 02:40:51 pm »
No, never ever ...
Logged
WWW:
www.routerperformance.net
Support plans:
https://www.max-it.de/en/it-services/opnsense/
Commercial Plugins (German):
https://opnsense.max-it.de/
CraigS
Newbie
Posts: 25
Karma: 2
Re: LDAP + TOTP authentication failure
«
Reply #14 on:
August 03, 2020, 03:19:51 pm »
Any ideas?
Biggest problem is no logging of errors so I have nowhere to start troubleshooting.
Logged
Print
Pages: [
1
]
2
3
« previous
next »
OPNsense Forum
»
Archive
»
20.1 Legacy Series
»
[Solved] LDAP + TOTP authentication failure