LFCS · 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. This question asks for the correct smb.conf directive to configure Samba's ID mapping to use an LDAP backend, which is essential for maintaining consistent UID and GID assignments across systems.
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
(29 responses)- A14% (4)
- B3% (1)
- C7% (2)
- D76% (22)
Why each option
This question asks for the correct `smb.conf` directive to configure Samba's ID mapping to use an LDAP backend, which is essential for maintaining consistent UID and GID assignments across systems.
`ldap dn` is not a standard `smb.conf` parameter for specifying the LDAP server itself; it's typically used to specify the bind distinguished name for authentication.
`ldap server` is used to specify the LDAP server, but it doesn't configure the `idmap` backend to use LDAP for UID/GID mapping, which is crucial for consistency.
`idmap_rid:BUILTIN=ldapserver.com` is a syntax typically used for `idmap_rid` with a specific domain, which is a different ID mapping backend than the general `idmap_ldap` backend for consistent UIDs/GIDs.
The `idmap backend = ldap:ldap://ldapserver.com` directive configures Samba to use the `idmap_ldap` backend, specifying the LDAP server responsible for centralizing and providing UID/GID mappings. This ensures that user and group IDs are consistently resolved across all Samba servers integrated with the specified LDAP directory, preventing inconsistencies when sharing resources.
`ldap passwd sync` is for enabling password synchronization with LDAP, not for configuring the ID mapping backend for UID/GID consistency.
Concept tested: Samba ID mapping with LDAP backend
Source: https://www.samba.org/samba/docs/current/manpages/smb.conf.5.html
Topics
Community Discussion
No community discussion yet for this question.