nerdexam
Linux_Foundation

LFCS · Question #649

A Samba server is configured to use the LDAP password backend. The root DN for the LDAP directory is defined in slapd.conf. In order to define an alternative account used by the Samba administrator…

The correct answer is B. Add a new Samba administrative account to the LDAP directory. C. Make certain that the 'ldap admin' option in smb.conf does not point to the LDAP root DN. E. Change the 'access' attributes in slapd.conf. To define an alternative Samba administrator account when using an LDAP backend, a new account must be added to the LDAP directory, the ldap admin option in smb.conf must point to this new account (not the root DN), and the LDAP slapd.conf ACLs must be adjusted to grant it…

Submitted by thandi_sa· Apr 18, 2026Service Configuration

Question

A Samba server is configured to use the LDAP password backend. The root DN for the LDAP directory is defined in slapd.conf. In order to define an alternative account used by the Samba administrator, which steps are necessary? (Select THREE correct answers.)

Options

  • AMake sure the password for the new administrative account matches the UNIX root password.
  • BAdd a new Samba administrative account to the LDAP directory.
  • CMake certain that the 'ldap admin' option in smb.conf does not point to the LDAP root DN.
  • DMap the administrative account to the domain administrator.
  • EChange the 'access' attributes in slapd.conf.

How the community answered

(56 responses)
  • A
    7% (4)
  • B
    77% (43)
  • D
    16% (9)

Why each option

To define an alternative Samba administrator account when using an LDAP backend, a new account must be added to the LDAP directory, the `ldap admin` option in `smb.conf` must point to this new account (not the root DN), and the LDAP `slapd.conf` ACLs must be adjusted to grant it appropriate access.

AMake sure the password for the new administrative account matches the UNIX root password.

The password for an LDAP administrative account does not need to match the UNIX root password; LDAP authentication is separate from local UNIX authentication.

BAdd a new Samba administrative account to the LDAP directory.Correct

A new Samba administrative account must be created as an entry in the LDAP directory itself, as Samba relies on LDAP for user and group management when configured to use the LDAP password backend.

CMake certain that the 'ldap admin' option in smb.conf does not point to the LDAP root DN.Correct

To use an alternative administrator account, the `ldap admin` option in `smb.conf` should specify the distinguished name (DN) of this new account, rather than the LDAP root DN, which provides broader and potentially insecure privileges.

DMap the administrative account to the domain administrator.

Mapping the administrative account to a domain administrator might be part of a larger domain setup, but it is not a direct or necessary step solely for defining an alternative Samba administrator account for an LDAP backend.

EChange the 'access' attributes in slapd.conf.Correct

The `access` attributes in `slapd.conf` (OpenLDAP's configuration) need to be modified to grant the newly created alternative administrative account the necessary permissions to manage Samba-related entries within the LDAP directory.

Concept tested: Samba LDAP backend administration

Source: https://www.samba.org/samba/docs/man/manpages/smb.conf.5.html

Topics

#Samba#LDAP#Authentication#Access Control

Community Discussion

No community discussion yet for this question.

Full LFCS Practice