LDAP sync configuration specification
Review the LDAP group sync configuration specification so you can identify required fields and schema-specific options for your sync configuration file.
The following sections describe the object specification for the configuration file. Note that the different schema types define different fields. For example, the v1.ActiveDirectoryConfig schema type has no groupsQuery field, but the v1.RFC2307Config and v1.AugmentedActiveDirectoryConfig schema types include a groupsQuery field.
|
|
There is no support for binary attributes. All attribute data coming from the LDAP server must be in the UTF-8 encoded string format. For example, never use a binary attribute, such as |
v1.LDAPSyncConfig
LDAPSyncConfig holds the necessary configuration options to define an LDAP group sync.
| Name | Description | Schema |
|---|---|---|
|
A camel case string value that represents the REST resource this object represents. Servers may infer this value from the endpoint that receives client requests. Clients cannot update this value. |
string |
|
Defines the versioned schema for this object representation. Servers should convert recognized schemas to the latest internal value and may reject unrecognized values. |
string |
|
Specifies the scheme, host, and port of the LDAP server to connect to, in the form |
string |
|
Optional DN to bind to the LDAP server with. |
string |
|
Optional password to bind with during the search phase. |
v1.StringSource |
|
If |
boolean |
|
Optional trusted certificate authority bundle to use when making requests to the server. If empty, the default system roots are used. |
string |
|
Optional direct mapping of LDAP group UIDs to Red Hat OpenShift Container Platform group names. |
object |
|
Holds the configuration for extracting data from an LDAP server set up in a fashion similar to RFC 2307: first-class group and user entries, with group membership determined by a multi-valued attribute on the group entry that lists the members of the group. |
v1.RFC2307Config |
|
Holds the configuration for extracting data from an LDAP server set up in a fashion similar to that used in Active Directory: first-class user entries, with group membership determined by a multi-valued attribute on member entries that lists the groups to which each member belongs. |
v1.ActiveDirectoryConfig |
|
Holds the configuration for extracting data from an LDAP server set up in a fashion similar to that used in Active Directory as described above, with one addition: first-class group entries exist and are used to hold metadata but not group membership. |
v1.AugmentedActiveDirectoryConfig |
v1.StringSource
StringSource allows specifying a string inline, or externally via environment
variable or file. When it contains only a string value, it marshals to a simple
JSON string.
| Name | Description | Schema |
|---|---|---|
|
Specifies the plain text value, or an encrypted value if |
string |
|
Specifies an environment variable containing the plain text value, or an
encrypted value if the |
string |
|
References a file containing the plain text value, or an encrypted value if a |
string |
|
References a file containing the key to use to decrypt the value. |
string |
v1.LDAPQuery
LDAPQuery holds the options necessary to build an LDAP query.
| Name | Description | Schema |
|---|---|---|
|
DN of the branch of the directory where all searches should start from. |
string |
|
The optional scope of the search. Can be |
string |
|
The optional behavior of the search with regards to aliases. Can be |
string |
|
Holds the limit of time in seconds that any request to the server can remain outstanding before the wait for a response is given up. If this is |
integer |
|
A valid LDAP search filter that retrieves all relevant entries from the LDAP server with the base DN. |
string |
|
Maximum preferred page size, measured in LDAP entries. A page size of |
integer |
v1.RFC2307Config
RFC2307Config holds the necessary configuration options to define how an LDAP group sync interacts with an LDAP server using the RFC 2307 schema.
| Name | Description | Schema |
|---|---|---|
|
Holds the template for an LDAP query that returns group entries. |
v1.LDAPQuery |
|
Defines which attribute on an LDAP group entry is interpreted as the unique identifier of the group. The default value is |
string |
|
Defines which attributes on an LDAP group entry are interpreted as the name of the group to use for an Red Hat OpenShift Container Platform group. |
string array |
|
Defines which attributes on an LDAP group entry are interpreted as the members of the group. The values contained in those attributes must be queryable by your |
string array |
|
Holds the template for an LDAP query that returns user entries. |
v1.LDAPQuery |
|
Defines which attribute on an LDAP user entry is interpreted as the unique identifier of the user. It must correspond to values that are found from the |
string |
|
Defines which attributes on an LDAP user entry are used, in order, as the Red Hat OpenShift Container Platform user name of the user. The first attribute with a non-empty value is used. This should match your |
string array |
|
Determines the behavior of the LDAP sync job when missing user entries are encountered. If |
boolean |
|
Determines the behavior of the LDAP sync job when out-of-scope user entries are encountered. If |
boolean |
v1.ActiveDirectoryConfig
ActiveDirectoryConfig holds the necessary configuration options to define how
an LDAP group sync interacts with an LDAP server using the Active Directory
schema.
| Name | Description | Schema |
|---|---|---|
|
Holds the template for an LDAP query that returns user entries. |
v1.LDAPQuery |
|
Defines which attributes on an LDAP user entry are interpreted as the Red Hat OpenShift Container Platform user name of the user. The attribute to use as the name of the user in the Red Hat OpenShift Container Platform group record. |
string array |
|
Defines which attributes on an LDAP user entry are interpreted as the LDAP groups that include the user as a member. |
string array |
v1.AugmentedActiveDirectoryConfig
The AugmentedActiveDirectoryConfig field holds the necessary configuration options to
define how an LDAP group sync interacts with an LDAP server using the augmented Active Directory schema.
| Name | Description | Schema |
|---|---|---|
|
Holds the template for an LDAP query that returns user entries. |
v1.LDAPQuery |
|
Defines which attributes on an LDAP user entry are interpreted as the Red Hat OpenShift Container Platform user name of the user. The attribute to use as the name of the user in the Red Hat OpenShift Container Platform group record. |
string array |
|
Defines which attributes on an LDAP user entry are interpreted as the LDAP groups that include the user as a member. |
string array |
|
Holds the template for an LDAP query that returns group entries. |
v1.LDAPQuery |
|
Defines which attribute on an LDAP group entry is interpreted as the unique identifier of the group. The default value is |
string |
|
Defines which attributes on an LDAP group entry are interpreted as the name of the group to use for an Red Hat OpenShift Container Platform group. |
string array |