Netgate Discussion Forum
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search
    • Register
    • Login

    AD Group names with spaces or longer than 16 characters

    Scheduled Pinned Locked Moved General pfSense Questions
    4 Posts 2 Posters 3.0k Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • L
      lawre
      last edited by

      I have pfsense using our corporate Active Directory server for authentication, and attempting to add some of these AD groups for different levels of authorization within the System: Group manager window.  I have come across the following two limitations:

      1. a Group's name cannot have more than 16 characters.
      2. a Group's name with a space doesn't seem to work

      Unfortunately, I do not have control over what the AD group names are as the domain serves upwards of 100k users.

      How might I be able to get around these two limitations within pfSense?

      I am currently on 2.1.4

      1 Reply Last reply Reply Quote 0
      • B
        BeerCan
        last edited by

        you should post your settings
        Including but not limited to
        Extend queries set?
        Settings for
        User naming attribute   
        Group naming attribute   
        Group member attribute

        1 Reply Last reply Reply Quote 0
        • L
          lawre
          last edited by

          samAccountName
          cn
          memberOf

          I should clarify that AD authentication works perfect for any AD groups that do not have spaces.  I found the exact LDAP settings for AD from another post here (not sure the exact post).

          1 Reply Last reply Reply Quote 0
          • B
            BeerCan
            last edited by

            Are you using extended queries?

            You should post a screenshot of your config page.  Blank out anything you might feel is sensitive but do it in a way we can see all the strings.

            you can also try and escape the space with \20 and see if that works

            so
            ou=OU WithSpace
            becomes
            ou=OU\20WithSpace

            Or

            might  be %20 as escape for space. so would be ou=OU%20WithSpace

            if you need multiple groups to be searched the authentication container string should look similar to this
            CN=Users,DC=domain,DC=com;OU=DifferentUsers,DC=domain,DC=com

            I use extended queries for my vpn access and it looks like this
            memberOf=CN=VPNusers,CN=Users,DC=domain,DC=com

            1 Reply Last reply Reply Quote 0
            • First post
              Last post
            Copyright 2025 Rubicon Communications LLC (Netgate). All rights reserved.