GET /api/auth_source_ldaps
Llista tots els orígens d'autenticació LDAP

GET /api/locations/:location_id/auth_source_ldaps
Llista els orígens d'autenticació LDAP per ubicació

GET /api/organizations/:organization_id/auth_source_ldaps
Llista els orígens d'autenticació LDAP per organització

Params

Param name Description
location_id
optional

Abast per ubicacions

Validations:

  • Must be a Integer

organization_id
optional

Abast per organitzacions

Validations:

  • Must be a Integer

search
optional

filtra els resultats

Validations:

  • Must be a String

order
optional

Sort field and order, eg. ‘id DESC’

Validations:

  • Must be a String

page
optional

Page number, starting at 1

Validations:

  • Must be a number.

per_page
optional

Nombre de resultats per pàgina a retornar

Validations:

  • Must be a number.

Search fields

Field name Tipus Possible values
location
location_id
name
organization
organization_id

GET /api/auth_source_ldaps/:id
Mostra un origen d'autenticació LDAP

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be an identifier, string from 1 to 128 characters containing only alphanumeric characters, space, underscore(_), hypen(-) with no leading or trailing space.


POST /api/auth_source_ldaps
Crea un origen d'autenticació LDAP

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

auth_source_ldap
required

Validations:

  • Must be a Hash

auth_source_ldap[name]
required

Validations:

  • Must be a String

auth_source_ldap[host]
required

Validations:

  • Must be a String

auth_source_ldap[port]
optional , nil allowed

per defecte a 389

Validations:

  • Must be a number.

auth_source_ldap[account]
optional , nil allowed

Validations:

  • Must be a String

auth_source_ldap[base_dn]
optional , nil allowed

Validations:

  • Must be a String

auth_source_ldap[account_password]
optional , nil allowed

és obligatori si onthefly_register està establert a true

Validations:

  • Must be a String

auth_source_ldap[attr_login]
optional , nil allowed

és obligatori si onthefly_register està establert a true

Validations:

  • Must be a String

auth_source_ldap[attr_firstname]
optional , nil allowed

és obligatori si onthefly_register està establert a true

Validations:

  • Must be a String

auth_source_ldap[attr_lastname]
optional , nil allowed

és obligatori si onthefly_register està establert a true

Validations:

  • Must be a String

auth_source_ldap[attr_mail]
optional , nil allowed

és obligatori si onthefly_register està establert a true

Validations:

  • Must be a String

auth_source_ldap[attr_photo]
optional , nil allowed

Validations:

  • Must be a String

auth_source_ldap[onthefly_register]
optional , nil allowed

Validations:

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

auth_source_ldap[usergroup_sync]
optional , nil allowed

sincronitza els grups d'usuaris externs a l'iniciar

Validations:

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

auth_source_ldap[tls]
optional , nil allowed

Validations:

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

auth_source_ldap[groups_base]
optional , nil allowed

DN base dels grups

Validations:

  • Must be a String

auth_source_ldap[use_netgroups]
optional , nil allowed

utilitza els grups de xarxa NIS en comptes dels grups posix, només és aplicable quan server_type és posix o free_ipa

Validations:

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

auth_source_ldap[server_type]
optional , nil allowed

tipus de servidor LDAP

Validations:

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

auth_source_ldap[ldap_filter]
optional , nil allowed

Filtre LDAP

Validations:

  • Must be a String

auth_source_ldap[location_ids]
optional , nil allowed

SUBSTITUEIX les ubicacions amb els ID donats

Validations:

  • Must be an array of any type

auth_source_ldap[organization_ids]
optional , nil allowed

SUBSTITUEIX les organitzacions amb els ID donats.

Validations:

  • Must be an array of any type


PUT /api/auth_source_ldaps/:id
Actualitza un origen d'autenticació LDAP

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be a String

auth_source_ldap
required

Validations:

  • Must be a Hash

auth_source_ldap[name]
optional

Validations:

  • Must be a String

auth_source_ldap[host]
optional

Validations:

  • Must be a String

auth_source_ldap[port]
optional , nil allowed

per defecte a 389

Validations:

  • Must be a number.

auth_source_ldap[account]
optional , nil allowed

Validations:

  • Must be a String

auth_source_ldap[base_dn]
optional , nil allowed

Validations:

  • Must be a String

auth_source_ldap[account_password]
optional , nil allowed

és obligatori si onthefly_register està establert a true

Validations:

  • Must be a String

auth_source_ldap[attr_login]
optional , nil allowed

és obligatori si onthefly_register està establert a true

Validations:

  • Must be a String

auth_source_ldap[attr_firstname]
optional , nil allowed

és obligatori si onthefly_register està establert a true

Validations:

  • Must be a String

auth_source_ldap[attr_lastname]
optional , nil allowed

és obligatori si onthefly_register està establert a true

Validations:

  • Must be a String

auth_source_ldap[attr_mail]
optional , nil allowed

és obligatori si onthefly_register està establert a true

Validations:

  • Must be a String

auth_source_ldap[attr_photo]
optional , nil allowed

Validations:

  • Must be a String

auth_source_ldap[onthefly_register]
optional , nil allowed

Validations:

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

auth_source_ldap[usergroup_sync]
optional , nil allowed

sincronitza els grups d'usuaris externs a l'iniciar

Validations:

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

auth_source_ldap[tls]
optional , nil allowed

Validations:

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

auth_source_ldap[groups_base]
optional , nil allowed

DN base dels grups

Validations:

  • Must be a String

auth_source_ldap[use_netgroups]
optional , nil allowed

utilitza els grups de xarxa NIS en comptes dels grups posix, només és aplicable quan server_type és posix o free_ipa

Validations:

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

auth_source_ldap[server_type]
optional , nil allowed

tipus de servidor LDAP

Validations:

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

auth_source_ldap[ldap_filter]
optional , nil allowed

Filtre LDAP

Validations:

  • Must be a String

auth_source_ldap[location_ids]
optional , nil allowed

SUBSTITUEIX les ubicacions amb els ID donats

Validations:

  • Must be an array of any type

auth_source_ldap[organization_ids]
optional , nil allowed

SUBSTITUEIX les organitzacions amb els ID donats.

Validations:

  • Must be an array of any type


PUT /api/auth_source_ldaps/:id/test
Prova la connexió LDAP

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be a String


DELETE /api/auth_source_ldaps/:id
Suprimeix un origen d'autenticació LDAP

Params

Param name Description
location_id
optional

Set the current location context for the request

Validations:

  • Must be a Integer

organization_id
optional

Set the current organization context for the request

Validations:

  • Must be a Integer

id
required

Validations:

  • Must be a String