nerdexam
CompTIA

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.

Administrative Tasks

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

(26 responses)
  • A
    12% (3)
  • C
    4% (1)
  • D
    81% (21)
  • E
    4% (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.

Aldap dn = ldap://ldapserver.com

`ldap dn` is not a valid `smb.conf` parameter for configuring the ID mapping backend; it's typically used for specifying a Distinguished Name.

Bldap server = ldap://ldapserver.com

`ldap server = ldap://ldapserver.com` configures the LDAP server for general use but does not specifically define the `idmap` backend for UID/GID consistency.

Cidmap backend = idmap_rid:BUILTIN=ldapserver.com

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

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

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.

Eldap passwd sync = ldapserver.com

`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

#Samba configuration#smb.conf#ID mapping#LDAP integration

Community Discussion

No community discussion yet for this question.

Full LX0-104 Practice