This manual page describes the configuration of LDAP domains for sssd(8). Refer to the "FILE FORMAT" section of the sssd.conf(5) manual page for detailed syntax information.
You can configure SSSD to use more than one LDAP domain.
If you want to authenticate against an LDAP server then TLS/SSL is required. sssd does not support authentication over an unencrypted channel. If the LDAP server is used only as an identify provider, an encrypted channel is not needed.
All of the common configuration options that apply to SSSD domains also apply to LDAP domains. Refer to the "DOMAIN SECTIONS" section of the sssd.conf(5) manual page for full details.
ldap_uri (string)
ldap_search_base (string)
ldap_schema (string)
Default: rfc2307
ldap_default_bind_dn (string)
ldap_default_authtok_type (string)
ldap_default_authtok (string)
ldap_user_search_base (string)
Default: the value of ldap_search_base
ldap_user_object_class (string)
Default: posixAccount
ldap_user_name (string)
Default: uid
ldap_user_uid_number (string)
Default: uidNumber
ldap_user_gid_number (string)
Default: gidNumber
ldap_user_gecos (string)
Default: gecos
ldap_user_home_directory (string)
Default: homeDirectory
ldap_user_shell (string)
Default: loginShell
ldap_user_uuid (string)
Default: nsUniqueId
ldap_user_principal (string)
Default: krbPrincipalName
ldap_force_upper_case_realm (boolean)
Default: false
ldap_user_fullname (string)
Default: cn
ldap_user_member_of (string)
Default: memberOf
ldap_group_search_base (string)
Default: the value of ldap_search_base
ldap_group_object_class (string)
Default: posixGroup
ldap_group_name (string)
Default: cn
ldap_group_gid_number (string)
Default: gidNumber
ldap_group_member (string)
Default: memberuid (rfc2307) / member (rfc2307bis)
ldap_group_uuid (string)
Default: nsUniqueId
ldap_search_timeout (integer)
Default: 5 (When enumerate = False)
Default: 30 (When enumerate = True - this option will be forced to a minumum of 30s in this case)
Note: this option is subject to change in future versions of the SSSD. It will likely be replaced at some point by a series of timeouts for specific lookup types.
ldap_network_timeout (integer)
Default: 5
ldap_opt_timeout (integer)
Default: 5
ldap_tls_reqcert (string)
never = The client will not request or check any server certificate.
allow = The server certificate is requested. If no certificate is provided, the session proceeds normally. If a bad certificate is provided, it will be ignored and the session proceeds normally.
try = The server certificate is requested. If no certificate is provided, the session proceeds normally. If a bad certificate is provided, the session is immediately terminated.
demand = The server certificate is requested. If no certificate is provided, or a bad certificate is provided, the session is immediately terminated.
hard = Same as "demand"
Default: hard
ldap_tls_cacert (string)
Default: use OpenLDAP defaults, typically in /etc/openldap/ldap.conf
ldap_tls_cacertdir (string)
Default: use OpenLDAP defaults, typically in /etc/openldap/ldap.conf
ldap_id_use_start_tls (boolean)
Default: false
ldap_sasl_mech (string)
Default: none
ldap_sasl_authid (string)
Default: host/machine.fqdn@REALM
ldap_krb5_keytab (string)
Default: System keytab, normally /etc/krb5.keytab
ldap_krb5_init_creds (boolean)
Default: true
ldap_krb5_ticket_lifetime (integer)
Default: 86400 (24 hours)
krb5_realm (string)
Default: System defaults, see /etc/krb5.conf
ldap_pwd_policy (string)
none - No evaluation on the client side. This option cannot disable server-side password policies.
shadow - Use shadow(5) style attributes to evaluate if the password has expired. Note that the current version of sssd cannot update this attribute during a password change.
mit_kerberos - Use the attributes used by MIT Kerberos to determine if the password has expired. Use chpass_provider=krb5 to update these attributes when the password is changed.
Default: none
ldap_referrals (boolean)
Please note that sssd only supports referral chasing when it is compiled with OpenLDAP version 2.4.13 or higher.
Default: true
ldap_dns_service_name (string)
Default: ldap
ldap_access_filter (string)
Example:
access_provider = ldap
ldap_access_filter = memberOf=cn=allowedusers,ou=Groups,dc=example,dc=com
This example means that access to this host is restricted to members of the "allowedusers" group in ldap.
Offline caching for this feature is limited to determining whether the user's last online login was granted access permission. If they were granted access during their last login, they will continue to be granted access while offline and vice-versa.
Default: Empty
The failover feature allows back ends to automatically switch to a different server if the primary server fails.
The list of servers is given as a comma-separated list; any number of spaces is allowed around the comma. The servers are listed in order of preference. The list can contain any number of servers.
The failover mechanism distinguishes between a machine and a service. The back end first tries to resolve the hostname of a given machine; if this resolution attempt fails, the machine is considered offline. No further attempts are made to connect to this machine for any other service. If the resolution attempt succeeds, the back end tries to connect to a service on this machine. If the service connection attempt fails, then only this particular service is considered offline and the back end automatically switches over to the next service. The machine is still considered online and might still be tried for another service.
Further connection attempts are made to machines or services marked as offline after a specified period of time; this is currently hard coded to 30 seconds.
If there are no more machines to try, the back end as a whole switches to offline mode, and then attempts to reconnect every 30 seconds.
The service discovery feature allows back ends to automatically find the appropriate servers to connect to using a special DNS query.
If no servers are specified, the back end automatically uses service discovery to try to find a server. Optionally, the user may choose to use both fixed server addresses and service discovery by inserting a special keyword, "_srv_", in the list of servers. The order of preference is maintained. This feature is useful if, for example, the user prefers to use service discovery whenever possible, and fall back to a specific server when no servers can be discovered using DNS.
The name of the SSSD domain is used as the domain part of the service discovery DNS query.
For more information on the service discovery mechanism, refer to RFC 2782.
The following example assumes that SSSD is correctly configured and LDAP is set to one of the domains in the [domains] section.
[domain/LDAP]
id_provider = ldap
auth_provider = ldap
ldap_uri = ldap://ldap.mydomain.org
ldap_search_base = dc=mydomain,dc=org
ldap_tls_reqcert = demand
cache_credentials = true
enumerate = true
The descriptions of some of the configuration options in this manual page are based on the ldap.conf(5) manual page from the OpenLDAP 2.4 distribution.
sssd.conf(5), sssd-krb5(5), sssd(8)
The SSSD upstream - http://fedorahosted.org/sssd