Skip to main content
Grumman
New Member
Oct 1, 2015 3:50 PM UTC
Solved

Captive Portal & OpenLDAP

I have successfully managed to configure FortiGate captive portal authentication through an OpenLDAP server on a 60D firewall.

 

Now the problem I am facing is that I made it to work with individual users that reside on the OpenLDAP server.

What I am trying to accomplish now is instead of having to add the LDAP users on FortiGate individually, I would like to have a group on the FortiGate that points to the same LDAP group and any users in that LDAP group to be able to go through the captive portal.

 

I have setup the group on both FortiGate and LDAP but when I am trying to login on the captive portal with a user account that belongs to that group on the LDAP, it says Authentication Failed.

 

Any ideas?

 

    xsilver_FTNT
    Staff
    Oct 2, 2015 7:49 AM UTC

    Hello,

     

    default FGT LDAP server config looks for 'MemberOf' LDAP attribute to catch group membership. OpenLDAP usually do not have group membership presented in this LDAP attribute.

     

    Pay attention to 'group-member-check' and 'member-attr' in config user ldap / <LDAP-server> settings

     

    For example you can do following for usual OpenLDAP

    set group-member-check group-object

    set group-object-filter (&(objectclass=posixgroup)(memberuid=*))

     

    Best regards, Tomas

    2 replies

    xsilver_FTNT
    Staff
    Staff
    Oct 2, 2015 7:49 AM UTC

    Hello,

     

    default FGT LDAP server config looks for 'MemberOf' LDAP attribute to catch group membership. OpenLDAP usually do not have group membership presented in this LDAP attribute.

     

    Pay attention to 'group-member-check' and 'member-attr' in config user ldap / <LDAP-server> settings

     

    For example you can do following for usual OpenLDAP

    set group-member-check group-object

    set group-object-filter (&(objectclass=posixgroup)(memberuid=*))

     

    Best regards, Tomas

    Grumman
    GrummanAuthor
    New Member
    Oct 2, 2015 11:26 AM UTC

    Thanks for the reply Tomas!

     

    I have added the set group-member-check group-object & set group-object-filter (&(objectclass=posixgroup)(memberuid=*)) as suggested but it did not make a difference...

     

    I have also changed set member-attr "MemberOf" to the corresponding LDAP group which in this case is "WiFi-Users" but still no authentication...

     

    any other thoughs?

    Risk and Resilience in the Age of AI. An OT Thought Leadership Summit for Houston's Critical Infrastructure Leaders. Date: Thursday, December 3, 2026. Time: 8:30 am - 1:30 pm (CT). Location: The Westin Houston, Memorial City | 945 Gessner Road, Houston, TX 77024