ansible / awx

AWX provides a web-based user interface, REST API, and task engine built on top of Ansible. It is one of the upstream projects for Red Hat Ansible Automation Platform.
Other
13.9k stars 3.4k forks source link

LDAP refuses valid URL because of host #12970

Closed JumpIfBelow closed 1 year ago

JumpIfBelow commented 1 year ago

Please confirm the following

Bug Summary

When filling the LDAP URL, I am unable to save the settings as it detects the URL as wrongly formatted. For example, I have such input: ldap://subdomain.example.s. As the root domain is too short in the eyes of AWX, it is simply refused while this URL is completely valid and known internally, and obviously working with several applications.

If I trick it to add another letter at the end of it, with ldap://subdomain.example.ss, it accepts the URL.

AWX version

21.3.0

Select the relevant components

Installation method

minikube

Modifications

no

Ansible version

No response

Operating system

No response

Web browser

No response

Steps to reproduce

  1. Go to "Settings" > "LDAP Settings"
  2. Set a LDAP URL ending with only 1 character at the end of the host (domain) part
  3. Save the form

Expected results

The form is saved successfully and I can set up an LDAP with a domain ending with only one character as its root.

Actual results

The URL is rejected as being wrongly formatted.

Additional information

It looks like it only accepts any URL with a root domain name with at least 2 characters, no matter which ones you are using.

djyasin commented 1 year ago

Hello, At this time there is a minimum of at least two characters for top-level domains. For more information, please see: https://www.icann.org/en/system/files/files/ua-factsheet-a4-17dec15-en.pdf

Please let us know if revising to two characters resolves this for you.

fosterseth commented 1 year ago

closing issue for now, please open a new one if you feel it is not resolved.