Exemplos

POST /api/auth_source_ldaps
{
  "auth_source_ldap": {
    "name": "ldap2",
    "host": "ldap2",
    "server_type": "posix"
  }
}
201
{
  "host": "ldap2",
  "port": 389,
  "account": null,
  "base_dn": null,
  "ldap_filter": null,
  "attr_login": null,
  "attr_firstname": null,
  "attr_lastname": null,
  "attr_mail": null,
  "attr_photo": null,
  "onthefly_register": false,
  "usergroup_sync": true,
  "tls": false,
  "server_type": "posix",
  "groups_base": null,
  "use_netgroups": false,
  "created_at": "2019-11-07 08:51:15 UTC",
  "updated_at": "2019-11-07 08:51:15 UTC",
  "id": 980190964,
  "type": "AuthSourceLdap",
  "name": "ldap2",
  "external_usergroups": [],
  "locations": [],
  "organizations": []
}

Parâmentros

Nome parâmetro Descrição
location_id
opcional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
opcional

Set the current organization context for the request

Validations:

  • Must be a Integer

auth_source_ldap
requerido

Validations:

  • Must be a Hash

auth_source_ldap[name]
requerido

Validations:

  • Must be a String

auth_source_ldap[host]
requerido

Validations:

  • Must be a String

auth_source_ldap[port]
opcional , nulo permitido

padrão é 389

Validations:

  • Must be a number.

auth_source_ldap[account]
opcional , nulo permitido

Validations:

  • Must be a String

auth_source_ldap[base_dn]
opcional , nulo permitido

Validations:

  • Must be a String

auth_source_ldap[account_password]
opcional , nulo permitido

Necessário se onthefly_register for verdadeiro

Validations:

  • Must be a String

auth_source_ldap[attr_login]
opcional , nulo permitido

Necessário se onthefly_register for verdadeiro

Validations:

  • Must be a String

auth_source_ldap[attr_firstname]
opcional , nulo permitido

Necessário se onthefly_register for verdadeiro

Validations:

  • Must be a String

auth_source_ldap[attr_lastname]
opcional , nulo permitido

Necessário se onthefly_register for verdadeiro

Validations:

  • Must be a String

auth_source_ldap[attr_mail]
opcional , nulo permitido

Necessário se onthefly_register for verdadeiro

Validations:

  • Must be a String

auth_source_ldap[attr_photo]
opcional , nulo permitido

Validations:

  • Must be a String

auth_source_ldap[onthefly_register]
opcional , nulo permitido

Validations:

  • Must be one of: true, false, 1, 0.

auth_source_ldap[usergroup_sync]
opcional , nulo permitido

sincronizar grupos de usuários externos no login

Validations:

  • Must be one of: true, false, 1, 0.

auth_source_ldap[tls]
opcional , nulo permitido

Validations:

  • Must be one of: true, false, 1, 0.

auth_source_ldap[groups_base]
opcional , nulo permitido

grupos base DN

Validations:

  • Must be a String

auth_source_ldap[use_netgroups]
opcional , nulo permitido

Use grupos de rede NIS, em vez de grupos POSIX. Aplicável somente quando o server_type é POXIS ou free_ipa

Validations:

  • Must be one of: true, false, 1, 0.

auth_source_ldap[server_type]
opcional , nulo permitido

tipo do servidor LDAP

Validations:

  • Must be one of: free_ipa, active_directory, posix.

auth_source_ldap[ldap_filter]
opcional , nulo permitido

Filtro LDAP

Validations:

  • Must be a String

auth_source_ldap[location_ids]
opcional , nulo permitido

SUBSTITUIR localizações dadas com ids

Validations:

  • Must be an array of any type

auth_source_ldap[organization_ids]
opcional , nulo permitido

SUBSTITUIR organizações dadas com ids

Validations:

  • Must be an array of any type