Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Get a list of added LDAP directories

Code Block
{
    "method":"AxxonSoftaxxonsoft.bl.security.SecurityService.ListConfig",
    "data":{
    }
}

...

Add a LDAP directory

Code Block
{
    "method": "AxxonSoftaxxonsoft.bl.security.SecurityService.ChangeConfig",
    "data": {
        "added_ldap_servers": {
            "index": "d3231030-b7ce-4435-af85-ded1eb9b4622",
            "server_name": "192.168.33.80",
            "friendly_name": "ldap",
            "port": 389,
            "base_dn": "ou=Address,dc=axxonsoft,dc=us",
            "login": "cn=admin,dc=Axxondomain,dc=com",
            "password": "jwxWWf4f",
            "use_ssl": false,
            "search_filter": "(objectClass=person)",
            "login_attribute": "cn",
            "dn_attribute": "entrydn",
            "roles_assignments_for_new_users": [
                "00000000-0000-0000-0000-000000000000"
            ]
        }
    }

Edit a LDAP directory

Code Block
{
    "method": "AxxonSoftaxxonsoft.bl.security.SecurityService.ChangeConfig",
    "data": {
        "modified_ldap_servers": [
            {
                "index": "d3231030-b7ce-4435-af85-ded1eb9b4622",
                "server_name": "192.168.33.80",
                "friendly_name": "ldap",
                "port": 636,
                "base_dn": "ou=Address,dc=axxonsoft,dc=us",
                "login": "cn=admin,dc=Axxondomain,dc=com",
                "password": "jwxWWf4f",
                "use_ssl": true,
                "search_filter": "(objectClass=person)",
                "login_attribute": "cn",
                "dn_attribute": "entrydn",
                "roles_assignments_for_new_users": [
                    "d4451805-13f2-4414-b0c5-6ae9f081e3e1"
                ]
            }
        ]
    }
}

Remove a LDAP directory

Code Block
{
    "method": "AxxonSoftaxxonsoft.bl.security.SecurityService.ChangeConfig",
    "data": {
        "removed_ldap_servers": ["d3231030-b7ce-4435-af85-ded1eb9b4622"]
    }
}

...

Note
titleAttention!

LDAP directory must be available.


Code Block
{
    "method": "AxxonSoftaxxonsoft.bl.security.SecurityService.SearchLDAP",
    "data": {
        "ldap_server_id": "6b5769e8-1322-4666-9567-14d129a8548a"
    }
}

...