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…
Question
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)- A7% (4)
- B77% (43)
- D16% (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.
The password for an LDAP administrative account does not need to match the UNIX root password; LDAP authentication is separate from local UNIX authentication.
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.
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.
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.
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
Community Discussion
No community discussion yet for this question.