foreman 1.5 - only allows 255 characters for ldap filter

Solution In Progress - Updated -

Issue

  • When adding a LDAP filter to foreman to allow AD user integration, if the filter is longer than 255 characters, foreman will not allow it to be added.
        cmd="curl -s -H \"Accept:application/json\" -k -u $HAMMER_USER:$HAMMER_PASSWORD \
          -d \"auth_source_ldap[name]=$AD_NAME\" \
          -d \"auth_source_ldap[host]=$AD_SERVER\" \
          -d \"auth_source_ldap[port]=$AD_PORT\" \
          -d \"auth_source_ldap[account]=$AD_ACCT_USER\" \
          -d \"auth_source_ldap[account_password]=$AD_ACCT_PASS\" \
          -d \"auth_source_ldap[base_dn]=$AD_BASE_DN\" \
          -d \"auth_source_ldap[ldap_filter]=$AD_LDAP_FILTER\" \
          -d \"auth_source_ldap[attr_login]=$AD_ATTR_LOGIN\" \
          -d \"auth_source_ldap[attr_firstname]=$AD_ATTR_FIRST\" \
          -d \"auth_source_ldap[attr_lastname]=$AD_ATTR_LAST\" \
          -d \"auth_source_ldap[attr_mail]=$AD_ATTR_EMAIL\" \
          -d \"auth_source_ldap[onthefly_register]=$AD_AUTO_CREATE\" \
          -d \"auth_source_ldap[tls]=$AD_TLS\" \
          $FOREMAN_URL/api/v2/auth_source_ldaps"
  • This is with foreman 1.5 version

Environment

  • Red Hat OpenStack 5.0 (RHOS)
  • Red Hat Enterprise Linux 6.0 (RHEL)

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content