nerdexam
Linux_Foundation

LFCS · Question #625

Which of the following lines should be added to smb.conf to use authenticate users against the Kerberos domain bc.ep.kerberos.biz?

The correct answer is B. realm = bc.ep.kerberos.biz. To configure Samba for Kerberos authentication, the realm parameter in smb.conf must specify the target Kerberos domain.

Submitted by miguelv· Apr 18, 2026Service Configuration

Question

Which of the following lines should be added to smb.conf to use authenticate users against the Kerberos domain bc.ep.kerberos.biz?

Options

  • Akerberos = bc.ep.kerberos.biz
  • Brealm = bc.ep.kerberos.biz
  • Ckrb5 = /etc/krb5.conf
  • Dkrb5 workgroup = bc.ep.kerberos.biz

How the community answered

(15 responses)
  • A
    7% (1)
  • B
    93% (14)

Why each option

To configure Samba for Kerberos authentication, the `realm` parameter in `smb.conf` must specify the target Kerberos domain.

Akerberos = bc.ep.kerberos.biz

`kerberos` is not a valid `smb.conf` parameter for specifying the Kerberos realm; the correct parameter is `realm`.

Brealm = bc.ep.kerberos.bizCorrect

The `realm = bc.ep.kerberos.biz` parameter in the `smb.conf` file is essential for configuring Samba to use a specific Kerberos realm for user authentication. This tells Samba which Kerberos Key Distribution Center (KDC) to communicate with for ticket granting.

Ckrb5 = /etc/krb5.conf

`krb5 = /etc/krb5.conf` is not an `smb.conf` parameter, but rather the path to the Kerberos client configuration file that the underlying Kerberos library uses.

Dkrb5 workgroup = bc.ep.kerberos.biz

`krb5 workgroup` is not a valid `smb.conf` parameter; the `workgroup` parameter specifies the NetBIOS domain/workgroup, while `realm` specifies the Kerberos realm.

Concept tested: Samba Kerberos realm configuration

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

Topics

#Samba#Kerberos#Authentication#smb.conf

Community Discussion

No community discussion yet for this question.

Full LFCS Practice