# Configuring OPT\_X\_TLS\_REQUIRE\_CERT with awx.awx.settings

**URL:** <https://forum.ansible.com/t/configuring-opt-x-tls-require-cert-with-awx-awx-settings/44354>\
**Category:** Get Help\
**Tags:** awx\
**Created:** [August 22, 2025, 4:56am UTC](https://forum.ansible.com/t/configuring-opt-x-tls-require-cert-with-awx-awx-settings/44354 "2025-08-22T04:56:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thenhawke](https://avatars.discourse-cdn.com/v4/letter/t/258eb7/32.png) [@thenhawke](https://forum.ansible.com/u/thenhawke)\
**Post date:** [August 22, 2025, 4:56am UTC](https://forum.ansible.com/t/configuring-opt-x-tls-require-cert-with-awx-awx-settings/44354/1 "2025-08-22T04:56:14Z")

</div>

I’m trying to configure the `OPT_X_TLS_REQUIRE_CERT` option using `awx.awx.settings` like this:

```yaml
- name: Configure AWX
  awx.awx.settings:
    settings:
      AUTH_LDAP_CONNECTION_OPTIONS:
        OPT_REFERRALS: 0
        OPT_NETWORK_TIMEOUT: 30
        OPT_X_TLS_REQUIRE_CERT: OPT_X_TLS_NEVER

```

However this configuration throws: `django_auth_ldap 'str' object cannot be interpreted as an integer while authenticating 'email@example.com'`. I’m assuming this is because `OPT_X_TLS_NEVER` is getting treated as a string from the yaml and not as the python constant `ldap.OPT_X_TLS_NEVER`. I also tried setting the option to 0 but that didn’t work. (Probably because of the way the constants are declared in the `python-ldap` library)

How can I configure this option with `awx.awx.settings`?
