LX0-104 · Question #634
Which line should be added to smb.conf to avoid UID and GID inconsistencies across servers over SMB?
The correct answer is D. idmap backend = ldap:ldap://ldapserver.com. To prevent UID and GID inconsistencies across Samba servers, the smb.conf should include idmap backend = ldap:ldap://ldapserver.com to use a centralized LDAP ID mapping.
Question
Options
- Aldap dn = ldap://ldapserver.com
- Bldap server = ldap://ldapserver.com
- Cidmap backend = idmap_rid:BUILTIN=ldapserver.com
- Didmap backend = ldap:ldap://ldapserver.com
- Eldap passwd sync = ldapserver.com
How the community answered
(26 responses)- A12% (3)
- C4% (1)
- D81% (21)
- E4% (1)
Why each option
To prevent UID and GID inconsistencies across Samba servers, the `smb.conf` should include `idmap backend = ldap:ldap://ldapserver.com` to use a centralized LDAP ID mapping.
`ldap dn` is not a valid `smb.conf` parameter for configuring the ID mapping backend; it's typically used for specifying a Distinguished Name.
`ldap server = ldap://ldapserver.com` configures the LDAP server for general use but does not specifically define the `idmap` backend for UID/GID consistency.
`idmap backend = idmap_rid:BUILTIN=ldapserver.com` uses the `idmap_rid` backend, but the format provided is incorrect for centralizing via LDAP, as `idmap_rid` relies on a domain SID for mapping, not a direct LDAP server URL in this manner.
Setting `idmap backend = ldap:ldap://ldapserver.com` configures Samba to use a centralized LDAP directory as the authoritative source for mapping SIDs to UIDs and GIDs. This ensures that all Samba servers referencing the same LDAP server will assign consistent UIDs and GIDs, thus avoiding inconsistencies across servers.
`ldap passwd sync` is a parameter for synchronizing passwords between Samba and LDAP, not for ensuring consistent UID/GID mapping across multiple servers.
Concept tested: Samba centralized ID mapping with LDAP
Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.