nerdexam
Linux_Foundation

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.

Submitted by khalil_dz· Apr 18, 2026Service Configuration

Question

Which line should be added to smb.conf to avoid UID and GID inconsistencies across servers over SMB?

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)
  • A
    14% (4)
  • B
    3% (1)
  • C
    7% (2)
  • D
    76% (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.

Aldap dn = ldap://ldapserver.com

`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.

Bldap server = ldap://ldapserver.com

`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.

Cidmap backend = idmap_rid:BUILTIN=ldapserver.com

`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.

Didmap backend = ldap:ldap://ldapserver.comCorrect

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.

Eldap passwd sync = ldapserver.com

`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

#Samba#LDAP#ID Mapping#smb.conf

Community Discussion

No community discussion yet for this question.

Full LFCS Practice