SSSD-LDAP-ATTRIBUT(5)
β¨ NAME β¨
okay so bestie, this is the manual for sssd-ldap-attributes(5) β literally "SSSD LDAP Provider: Mapping Attributes". π
πΈ DESCRIPTION πΈ
This page spills the tea on the mapping attributes for the SSSD LDAP provider, aka sssd-ldap(5). If you want the full details about SSSD LDAP provider configuration options, go read sssd-ldap(5) β it's the main character. β¨
π USER ATTRIBUTES π
Now let's get into it. Each one is a (string) config attribute, and I'll give you the deets and the default. No cap. π
ldap_user_object_class(string) β the object class of a user entry in LDAP. Default:posixAccountπldap_user_name(string) β the LDAP attribute that maps to the user's login name. Default:uid(for rfc2307, rfc2307bis and IPA),sAMAccountName(for AD) πldap_user_uid_number(string) β the LDAP attribute that matches the user's id. Default:uidNumberπ’ldap_user_gid_number(string) β the LDAP attribute that matches the user's primary group id. Default:gidNumberπ«Άldap_user_primary_group(string) β Active Directory primary group attribute for ID-mapping. Note: only set this manually if you're running theldapprovider with ID mapping. Default: unset (LDAP),primaryGroupID(AD) πldap_user_gecos(string) β the LDAP attribute that matches the user's gecos field. Default:gecosπΈldap_user_home_directory(string) β the LDAP attribute that has the name of the user's home directory. Default:homeDirectory(LDAP and IPA),unixHomeDirectory(AD) πldap_user_shell(string) β the LDAP attribute that has the path to the user's default shell. Default:loginShellπldap_user_uuid(string) β the LDAP attribute that has the UUID/GUID of an LDAP user object. Default: not set in the general case,objectGUIDfor AD andipaUniqueIDfor IPA πldap_user_objectsid(string) β the LDAP attribute that has theobjectSIDof an LDAP user object. Usually only needed for ActiveDirectory servers. Default:objectSidfor ActiveDirectory, not set for other servers. π₯ldap_user_modify_timestamp(string) β the LDAP attribute that has the timestamp of the last modification of the parent object. Default:modifyTimestampβ°ldap_user_shadow_last_change(string) β when usingldap_pwd_policy=shadow, this is the name of the LDAP attribute that matches itsshadow(5)counterpart (date of the last password change). Default:shadowLastChangeπldap_user_shadow_min(string) β when usingldap_pwd_policy=shadow, this is the name of the LDAP attribute that matches itsshadow(5)counterpart (minimum password age). Default:shadowMinβ³ldap_user_shadow_max(string) β when usingldap_pwd_policy=shadow, this is the name of the LDAP attribute that matches itsshadow(5)counterpart (maximum password age). Default:shadowMaxβldap_user_shadow_warning(string) β when usingldap_pwd_policy=shadow, this is the name of the LDAP attribute that matches itsshadow(5)counterpart (password warning period). Default:shadowWarningβ οΈldap_user_shadow_inactive(string) β when usingldap_pwd_policy=shadow, this is the name of the LDAP attribute that matches itsshadow(5)counterpart (password inactivity period). Default:shadowInactiveπ€ldap_user_shadow_expire(string) β when usingldap_pwd_policy=shadoworldap_account_expire_policy=shadow, this is the name of the LDAP attribute that matches itsshadow(5)counterpart (account expiration date). Default:shadowExpireπldap_user_krb_last_pwd_change(string) β when usingldap_pwd_policy=mit_kerberos, this is the name of the LDAP attribute storing the date and time of last password change in kerberos. Default:krbLastPwdChangeπldap_user_krb_password_expiration(string) β when usingldap_pwd_policy=mit_kerberos, this is the name of the LDAP attribute storing the date and time when the current password expires. Default:krbPasswordExpirationβ²οΈldap_user_ad_account_expires(string) β when usingldap_account_expire_policy=ad, this is the name of the LDAP attribute storing the expiration time of the account. Default:accountExpiresπldap_user_ad_user_account_control(string) β when usingldap_account_expire_policy=ad, this is the name of the LDAP attribute storing the user account control bit field. Default:userAccountControlποΈldap_ns_account_lock(string) β when usingldap_account_expire_policy=rhdsor equivalent, this determines if access is allowed or not. Default:nsAccountLockπldap_user_nds_login_disabled(string) β when usingldap_account_expire_policy=nds, this attribute determines if access is allowed or not. Default:loginDisabledπ«ldap_user_nds_login_expiration_time(string) β when usingldap_account_expire_policy=nds, this attribute determines until which date access is granted. Default:loginDisabledπ (yes, the default isloginDisabled, fr fr)ldap_user_nds_login_allowed_time_map(string) β when usingldap_account_expire_policy=nds, this attribute determines the hours of a day in a week when access is granted. Default:loginAllowedTimeMapποΈldap_user_principal(string) β the LDAP attribute that has the user's Kerberos User Principal Name (UPN). Default:krbPrincipalNameπ«ldap_user_extra_attrs(string) β a comma-separated list of LDAP attributes that SSSD would fetch along with the usual set of user attributes. π
The list can either have LDAP attribute names only, or colon-separated tuples of SSSD cache attribute name and LDAP attribute name. If only the LDAP attribute name is specified, the attribute is saved to the cache verbatim. Using a custom SSSD attribute name might be required by environments that configure several SSSD domains with different LDAP schemas.
Please note that several attribute names are reserved by SSSD, notably the βnameβ attribute. SSSD would report an error if any of the reserved attribute names is used as an extra attribute name.
Examples:
ldap_user_extra_attrs = telephoneNumber
Save the βtelephoneNumberβ attribute from LDAP as βtelephoneNumberβ to the cache.
ldap_user_extra_attrs = phone:telephoneNumber
Save the βtelephoneNumberβ attribute from LDAP as βphoneβ to the cache.
Default: not set π
ldap_user_ssh_public_key(string) β the LDAP attribute that has the user's SSH public keys. Default:sshPublicKeyπldap_user_fullname(string) β the LDAP attribute that matches the user's full name. Default:cnπldap_user_member_of(string) β the LDAP attribute that lists the user's group memberships. Default:memberOfπ―ldap_user_authorized_service(string) β ifaccess_provider=ldapandldap_access_order=authorized_service, SSSD will use the presence of theauthorizedServiceattribute in the user's LDAP entry to determine access privilege. π‘οΈ
An explicit deny (!svc) is resolved first. Second, SSSD searches for explicit allow (svc) and finally for allow_all (*).
Please note that the ldap_access_order configuration option must include βauthorized_serviceβ in order for the ldap_user_authorized_service option to work.
Some distributions (such as Fedora-29+ or RHEL-8) always include the βsystemd-userβ PAM service as part of the login process. Therefore when using service-based access control, the βsystemd-userβ service might need to be added to the list of allowed services.
Default: authorizedService β¨
ldap_user_authorized_host(string) β ifaccess_provider=ldapandldap_access_order=host, SSSD will use the presence of thehostattribute in the user's LDAP entry to determine access privilege. π
An explicit deny (!host) is resolved first. Second, SSSD searches for explicit allow (host) and finally for allow_all (*).
Please note that the ldap_access_order configuration option must include βhostβ in order for the ldap_user_authorized_host option to work.
Default: host π»
ldap_user_authorized_rhost(string) β ifaccess_provider=ldapandldap_access_order=rhost, SSSD will use the presence of therhostattribute in the user's LDAP entry to determine access privilege. Similarly to the host verification process. π
An explicit deny (!rhost) is resolved first. Second, SSSD searches for explicit allow (rhost) and finally for allow_all (*).
Please note that the ldap_access_order configuration option must include βrhostβ in order for the ldap_user_authorized_rhost option to work.
Default: rhost π‘
ldap_user_certificate(string) β name of the LDAP attribute containing the X509 certificate of the user. Default:userCertificate;binaryπldap_user_email(string) β name of the LDAP attribute containing the email address of the user. π§
Note: If an email address of a user conflicts with an email address or fully qualified name of another user, then SSSD will not be able to serve those users properly. This option allows users to login by (1) username, and (2) e-mail address. If for some reason several users need to share the same email address then set this option to a nonexistent attribute name in order to disable user lookup/login by email.
Default: mail π
ldap_user_passkey(string) β name of the LDAP attribute containing the passkey mapping data of the user. Default:passkey(LDAP),ipaPassKey(IPA),altSecurityIdentities(AD) π
πΈ GROUP ATTRIBUTES πΈ
okay bestie, this is the group part and it's giving very much "yes we have options for everything" energy. every single one, no skips π
ldap_group_object_class(string) β the object class of a group entry in LDAP, fr. Default:posixGroupldap_group_name(string) β the LDAP attribute that corresponds to the group name. π Heads up though: if you're in an environment with nested groups, this value must be an LDAP attribute which has a unique name for every single group. and yes, that requirement includes the non-POSIX groups chilling in the tree of nested groups. iykyk. Default:cn(rfc2307, rfc2307bis and IPA),sAMAccountName(AD)ldap_group_gid_number(string) β the LDAP attribute that corresponds to the group's id. Default:gidNumberldap_group_member(string) β the LDAP attribute that contains the names of the group's members. Default:memberuid(rfc2307) /member(rfc2307bis)ldap_group_uuid(string) β the LDAP attribute that contains the UUID/GUID of an LDAP group object. β¨ Default: not set in the general case,objectGUIDfor AD andipaUniqueIDfor IPAldap_group_objectsid(string) β the LDAP attribute that contains theobjectSIDof an LDAP group object. this one is usually only necessary for ActiveDirectory servers, bestie. Default:objectSidfor ActiveDirectory, not set for other servers.ldap_group_modify_timestamp(string) β the LDAP attribute that contains timestamp of the last modification of the parent object. Default:modifyTimestampldap_group_type(string) β the LDAP attribute that contains an integer value indicating the type of the group and maybe other flags. rn this attribute is only used by the AD provider to figure out if a group is a domain local groups and has to be filtered out for trusted domains. π€ Default:groupTypein the AD provider, otherwise not setldap_group_external_member(string) β the LDAP attribute that references group members that are defined in an external domain. at the moment, only IPA's external members are supported, no cap. Default:ipaExternalMemberin the IPA provider, otherwise unset.
π¦ NETGROUP ATTRIBUTES π¦
netgroups, babe. we got them. and some of these have a lil IPA disclaimer so read carefully π
ldap_netgroup_object_class(string) β the object class of a netgroup entry in LDAP. In IPA provider,ipa_netgroup_object_classshould be used instead. Default:nisNetgroupldap_netgroup_name(string) β the LDAP attribute that corresponds to the netgroup name. In IPA provider,ipa_netgroup_nameshould be used instead. Default:cnldap_netgroup_member(string) β the LDAP attribute that contains the names of the netgroup's members. In IPA provider,ipa_netgroup_membershould be used instead. Default:memberNisNetgroupldap_netgroup_triple(string) β the LDAP attribute that contains the(host, user, domain)netgroup triples. π This option is not available in IPA provider. Default:nisNetgroupTripleldap_netgroup_modify_timestamp(string) β the LDAP attribute that contains timestamp of the last modification of the parent object. This option is not available in IPA provider. Default:modifyTimestamp
π§ HOST ATTRIBUTES π§
host entries in LDAP, let's gooo π
ldap_host_object_class(string) β the object class of a host entry in LDAP. Default:ipServiceldap_host_name(string) β the LDAP attribute that corresponds to the host's name. Default:cnldap_host_fqdn(string) β the LDAP attribute that corresponds to the host's fully-qualified domain name. Default:fqdnldap_host_serverhostname(string) β the LDAP attribute that corresponds to the host's name. Default:serverHostnameldap_host_member_of(string) β the LDAP attribute that lists the host's group memberships. Default:memberOfldap_host_ssh_public_key(string) β the LDAP attribute that contains the host's SSH public keys. π Default:sshPublicKeyldap_host_uuid(string) β the LDAP attribute that contains the UUID/GUID of an LDAP host object. Default: not set
π SERVICE ATTRIBUTES π
service entries. iconic. periodt.
ldap_service_object_class(string) β the object class of a service entry in LDAP. Default:ipServiceldap_service_name(string) β the LDAP attribute that contains the name of service attributes and their aliases. Default:cnldap_service_port(string) β the LDAP attribute that contains the port managed by this service. Default:ipServicePortldap_service_proto(string) β the LDAP attribute that contains the protocols understood by this service. Default:ipServiceProtocol
π SUDO ATTRIBUTES π
sudo rules but make it LDAP. we have SO many of these and every one is staying, bestie, don't even worry π
ldap_sudorule_object_class(string) β the object class of a sudo rule entry in LDAP. Default:sudoRoleldap_sudorule_name(string) β the LDAP attribute that corresponds to the sudo rule name. Default:cnldap_sudorule_command(string) β the LDAP attribute that corresponds to the command name. Default:sudoCommandldap_sudorule_host(string) β the LDAP attribute that corresponds to the host name (or host IP address, host IP network, or host netgroup) Default:sudoHostldap_sudorule_user(string) β the LDAP attribute that corresponds to the user name (or UID, group name or user's netgroup) Default:sudoUserldap_sudorule_option(string) β the LDAP attribute that corresponds to the sudo options. Default:sudoOptionldap_sudorule_runasuser(string) β the LDAP attribute that corresponds to the user name that commands may be run as. Default:sudoRunAsUserldap_sudorule_runasgroup(string) β the LDAP attribute that corresponds to the group name or group GID that commands may be run as. Default:sudoRunAsGroupldap_sudorule_notbefore(string) β the LDAP attribute that corresponds to the start date/time for when the sudo rule is valid. β° Default:sudoNotBeforeldap_sudorule_notafter(string) β the LDAP attribute that corresponds to the expiration date/time, after which the sudo rule will no longer be valid. the way it just stops being validβ¦ π Default:sudoNotAfterldap_sudorule_order(string) β the LDAP attribute that corresponds to the ordering index of the rule. Default:sudoOrder
π AUTOFS ATTRIBUTES π
automount stuff! and notice how a bunch of the defaults have a whole conditional situation going on depending on rfc2307 / autofs_provider=ad β read the defaults carefully babe, they're not all the same π
ldap_autofs_map_object_class(string) β the object class of an automount map entry in LDAP. Default:nisMap(rfc2307, autofs_provider=ad), otherwiseautomountMapldap_autofs_map_name(string) β the name of an automount map entry in LDAP. Default:nisMapName(rfc2307, autofs_provider=ad), otherwiseautomountMapNameldap_autofs_entry_object_class(string) β the object class of an automount entry in LDAP. the entry usually corresponds to a mount point. Default:nisObject(rfc2307, autofs_provider=ad), otherwiseautomountldap_autofs_entry_key(string) β the key of an automount entry in LDAP. the entry usually corresponds to a mount point. Default:cn(rfc2307, autofs_provider=ad), otherwiseautomountKeyldap_autofs_entry_value(string) β the key of an automount entry in LDAP. the entry usually corresponds to a mount point. Default:nisMapEntry(rfc2307, autofs_provider=ad), otherwiseautomountInformation
β¨ IP HOST ATTRIBUTES β¨
ldap_iphost_object_class(string) β the object class of an iphost entry in LDAP. Default:ipHostldap_iphost_name(string) β the LDAP attribute that contains the name of the IP host attributes and their aliases. Default:cnldap_iphost_number(string) β the LDAP attribute that contains the IP host address. Default:ipHostNumber
π IP NETWORK ATTRIBUTES π
ldap_ipnetwork_object_class(string) β the object class of an ipnetwork entry in LDAP. Default:ipNetworkldap_ipnetwork_name(string) β the LDAP attribute that contains the name of the IP network attributes and their aliases. Default:cnldap_ipnetwork_number(string) β the LDAP attribute that contains the IP network address. Default:ipNetworkNumber
π«Ά SUBID ATTRIBUTES π«Ά
subordinate ID ranges, bestie! keep an eye on the exact casing of these defaults, they're not all matching the option name π
ldap_subuid_object_class(string) β the object class of an subid entry in LDAP. Default:subordinateIdEntryldap_subuid_count(string) β Subordinate user ID count (range size) Default:subUidCountldap_subgid_count(string) β Subordinate group ID count (range size) Default:subGidCountldap_subuid_number(string) β Numerical subordinate user ID (range start value) Default:subUidNumberldap_subgid_number(string) β Numerical subordinate group ID (range start value) Default:subGidNumberldap_subid_range_owner(string) β Owner of an entry Default:subidRangeOwner
π₯ SEE ALSO π₯
go read these too, they're all iconic in their own way, fr fr:
sssd(8),sssd.conf(5),sssd-ldap(5),sssd-ldap-attributes(5),sssd-krb5(5),sssd-simple(5),sssd-ipa(5),sssd-ad(5),sssd-idp(5),sssd-sudo(5),sssd-session-recording(5),sss_cache(8),sss_debuglevel(8),sss_obfuscate(8),sss_seed(8),sssd_krb5_locator_plugin(8),sss_ssh_authorizedkeys(1),sss_ssh_knownhosts(1),sssd-ifp(5),pam_sss(8),sss_rpcidmapd(5),sssd-systemtap(5)
π AUTHORS π
The SSSD upstream β https://github.com/SSSD/sssd/
and that's the whole page, bestie!! π you ate that. this one's from the SSSD project, version stamp 07/08/2026, filed under SSSD-LDAP-ATTRIBUT(5) β go forth and map those attributes, main character ππ
π¦ where this page comes from
- fedora 43: sssd-ldap 2.12.0-3.fc43 Β· GPL-3.0-or-later
- fedora 44: sssd-ldap 2.13.1-2.fc44 Β· GPL-3.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms