<filename>tests/test_api_v1_user_auth_server_ldap.py<gh_stars>0
import unit_test_framework

class APIUnitTestUserAuthServerLDAP(unit_test_framework.APIUnitTest):
    url = "/api/v1/user/auth_server/ldap"
    get_payloads = [{}]
    post_payloads = [
        {
            "name": "TEST_AUTHSERVER",
            "host": "ldap.com",
            "ldap_port": 636,
            "ldap_urltype": "encrypted",
            "ldap_protver": "3",
            "ldap_timeout": 12,
            "ldap_scope": "subtree",
            "ldap_basedn": "dc=test,dc=com",
            "ldap_authcn": "ou=people,dc=test,dc=com;ou=groups,dc=test,dc=com",
            "ldap_attr_user": "uid",
            "ldap_attr_group": "cn",
            "ldap_attr_member": "memberof",
            "ldap_attr_groupobj": "posixGroup",
            "ldap_binddn": "cn=pfsense,dc=test,dc=com",
            "ldap_bindpw": "asdf",
            "active": False
        }
    ]
    delete_payloads = [
        {"name": "TEST_AUTHSERVER"}
    ]

APIUnitTestUserAuthServerLDAP()