A BIND server should be upgraded to use TSIG. Which configuration parameters should be added if the server should use the algorithm hmac-md5 and the key skrKc4DoTzi/takIlPi7JZA==?
Correct Answer: E
Explanation TSIG stands for Transaction SIGnature, which is a mechanism for authenticating DNS messages using a shared secret key and a cryptographic hash algorithm. TSIG can be used to secure DNS updates, zone transfers, and queries between DNS servers and clients. To configure a BIND server to use TSIG, the following parameters should be added to the named.conf file: A key statement that defines the name, algorithm, and secret of the TSIG key. The name can be any arbitrary string, the algorithm can be one of the supported algorithms such as hmac-md5, hmac-sha1, hmac-sha256, etc., and the secret can be a base64-encoded string that represents the shared secret key. For example: key "server.example.com" { algorithm hmac-md5; secret "skrKc4DoTzi/takIlPi7JZA=="; }; A server statement that specifies the IP address or hostname of the remote server that will use the TSIG key, and the name of the key that should be used for communication. For example: server 192.168.1.10 { keys { "server.example.com"; }; }; A zone statement that indicates the zone name, type, and file of the zone that will use TSIG, and the name of the key that should be used for updates or transfers. For example: zone "example.com" { type master; file "example.com.zone"; allow-update { key "server.example.com"; }; allow-transfer { key "server.example.com"; }; }; Option E shows the correct configuration parameters that should be added if the server should use the algorithm hmac-md5 and the key skrKc4DoTzi/takIlPi7JZA==. The other options are incorrect because they either use the wrong syntax, the wrong algorithm, the wrong key name, or the wrong secret. References: LPIC-2 exam 202 objectives, topic 208.2, "Securing a DNS server" BIND 9 Administrator Reference Manual, chapter 6, "Access Control Lists and TSIG" How to Configure DNS Server with TSIG on CentOS 8
Question 84
Which OpenLDAP client command can be used to change the password for an LDAP entry? (Specify ONLY the command without any path or parameters.)
Correct Answer:
ldappasswd Explanation: The ldappasswd command is an OpenLDAP client tool that can be used to change the password for an LDAP entry. It can be used to change the password of the user who is binding to the LDAP server, or the password of another user if the bind user has sufficient privileges. The ldappasswd command requires the user to specify the LDAP server location, the bind DN and password, the old password, and the new password. The old and new passwords can be given on the command line, through prompts, or from files. The ldappasswd command can also use SASL authentication mechanisms instead of simple authentication. The ldappasswd command follows the general syntax of: ldappasswd [options] [user] where user is the DN of the entry whose password is to be changed. If omitted, the bind DN is used. References: LPIC-2 Exam 202 Objectives, Objective 207.3: LDAP Operations How To Change Account Passwords on an OpenLDAP Server, DigitalOcean ldappasswd: change the password of an LDAP entry, openldap-clients Manual Page How To Change an OpenLDAP Password, Tyler's Guides
Question 85
Which Apache HTTPD configuration directive is used to specify the method of authentication, e.g. None or Basic?