Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unchecking/disabling ldap_allow_unauthenticated odes not work #139

Open
TRoc81 opened this issue Sep 12, 2024 · 0 comments
Open

Unchecking/disabling ldap_allow_unauthenticated odes not work #139

TRoc81 opened this issue Sep 12, 2024 · 0 comments
Labels
bug Something isn't working

Comments

@TRoc81
Copy link

TRoc81 commented Sep 12, 2024

Describe the bug
I am trying to disable the ldap_allow_unauthenticated option, which is enabled by default when creating a new LDAP authentication server.
I can re-enable it after manually disabling the option.
Same with ldap_rfc2307, but this option is not enabled by default.
I can enable both by setting them to true in the playbook, but cannot disable them by setting them to false in the playbook.

There is no error when running the playbook.
I tried FALSE, false, False, "FALSE", "false" and "False".

Expected behavior
Options will either be checked when setting them to true or unchecked when setting them to false in the playbook.

Playbook
Please paste a minimal playbook to reproduce the issue:

    - name: Add adservers authentication server
      pfsensible.core.pfsense_authserver_ldap:
        name: AD
        host: adserver.example.com
        port: 636
        transport: ssl
        scope: subtree
        authcn: cn=users
        basedn: dc=example,dc=com
        binddn: cn=bind,ou=Service Accounts,dc=example,dc=com
        bindpw: "password"
        attr_user: samAccountName
        attr_member: memberOf
        attr_groupobj: group
        ldap_allow_unauthenticated: false
        state: present

Output
Please paste the ansible output run with -vv:

PLAYBOOK: test.yaml **************************************************************************************************************************************************************************************
1 plays in test.yaml

PLAY [create ldap auth server] ***************************************************************************************************************************************************************************

TASK [Add adservers authentication server] ***************************************************************************************************************************************************************
task path: /home/ubuntu/playbooks/pfsense/test.yaml:8
changed: [fw01-a-pfsensetest] => {"changed": true, "commands": ["create authserver_ldap 'AD'"], "stderr": "", "stderr_lines": [], "stdout": "", "stdout_lines": []}

PLAY RECAP ***********************************************************************************************************************************************************************************************
fw01-a-pfsensetest         : ok=1    changed=1    unreachable=0    failed=0    skipped=0    rescued=0    ignored=0

Environment

  • What version of pfsensible.core?
    0.6.2
  • What version of ansible?
    2.16.3
  • What version of pfSense?
    2.7.2
@TRoc81 TRoc81 added the bug Something isn't working label Sep 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant