Duo Integration with LDAP Group mapping for Post Auth

Business solution to host your own OpenVPN server with web management interface and bundled clients.
Post Reply
anazary
OpenVpn Newbie
Posts: 3
Joined: Fri May 19, 2023 6:02 pm

Duo Integration with LDAP Group mapping for Post Auth

Post by anazary » Tue Dec 05, 2023 9:54 pm

Hello All,

I am trying to configure Duo integration with LDAP Group mapping into OpenVPN Access Server 2.11.4, but openvpn allows only one script for the Post Auth, I've tried to merge both of the python scripts into one, but for some reason it only executes the duo script "which is the second function in the script" but the ldap group mapping does not work, openvpn support does not cover custom scripts, and I've exhausted google searches without any luck, so I would appreciate any help to get this working,

Thanks,

mcdutch
OpenVpn Newbie
Posts: 6
Joined: Tue May 26, 2015 2:51 pm

Re: Duo Integration with LDAP Group mapping for Post Auth

Post by mcdutch » Wed Oct 30, 2024 4:39 pm

Try running the LDAP mapping first, then call the Duo part. Also, check for any early returns in the script, those can stop it from running both parts. Debug prints helped me spot where it got stuck.

Post Reply