Docsity

macOS Security Practice Exam: Directory Services and Kerberos, Exams of Cybersecurity

Toggle sidebar
bg1
920 449 NCSE Contivity Security Practice Exam
**Question 1.** Which daemon provides the core Directory Services functionality in macOS 10.6?
A) launchd B) DirectoryService C) opendirectoryd D) configd
Answer: B
Explanation: The `DirectoryService` daemon implements the Directory Services framework and handles
lookups, authentication, and directory queries.
**Question 2.** In the Directory Services search path, which policy is consulted first when a user logs
in?
A) Local B) Authentication C) Contacts D) Custom
Answer: B
Explanation: The Authentication Search Policy determines the order of directories used for
authenticating a user and is evaluated before the Contacts policy.
**Question 3.** What type of directory domain stores user records in `/var/db/dslocal/nodes/Default`?
A) LDAP B) Active Directory C) Open Directory D) Local
Answer: D
Explanation: The Local domain uses flat‑file records located in the `Default` node on the local machine.
**Question 4.** Which command-line tool is used to create, read, and modify directory records on
macOS?
A) dscl B) ldapsearch C) klist D) dsconfigad
Answer: A
Explanation: `dscl` (Directory Service command line) interacts directly with the Directory Services
database.
**Question 5.** Which of the following is NOT a component of a Kerberos ticket?
A) Principal name B) Encryption type C) Session key D) Group ID
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17
pf18
pf19
pf1a
pf1b
pf1c
pf1d
pf1e
pf1f
pf20
pf21
pf22
pf23
pf24
pf25
pf26
pf27
pf28
pf29
pf2a
pf2b
pf2c
pf2d
pf2e
pf2f
pf30
pf31
pf32
pf33
pf34
pf35
pf36
pf37
pf38
pf39
pf3a
pf3b

Partial preview of the text

Download macOS Security Practice Exam: Directory Services and Kerberos and more Exams Cybersecurity in PDF only on Docsity!

Question 1. Which daemon provides the core Directory Services functionality in macOS 10.6? A) launchd B) DirectoryService C) opendirectoryd D) configd Answer: B Explanation: The DirectoryService daemon implements the Directory Services framework and handles lookups, authentication, and directory queries. Question 2. In the Directory Services search path, which policy is consulted first when a user logs in? A) Local B) Authentication C) Contacts D) Custom Answer: B Explanation: The Authentication Search Policy determines the order of directories used for authenticating a user and is evaluated before the Contacts policy. Question 3. What type of directory domain stores user records in /var/db/dslocal/nodes/Default? A) LDAP B) Active Directory C) Open Directory D) Local Answer: D Explanation: The Local domain uses flat‑file records located in the Default node on the local machine. Question 4. Which command-line tool is used to create, read, and modify directory records on macOS? A) dscl B) ldapsearch C) klist D) dsconfigad Answer: A Explanation: dscl (Directory Service command line) interacts directly with the Directory Services database. Question 5. Which of the following is NOT a component of a Kerberos ticket? A) Principal name B) Encryption type C) Session key D) Group ID

Answer: D Explanation: Kerberos tickets contain principal, encryption, and session key information but no group identifier. Question 6. What must be synchronized across all machines to avoid Kerberos authentication failures? A) DNS records B) NTP time C) MAC addresses D) Hostnames Answer: B Explanation: Kerberos requires accurate time (within 5 minutes) so NTP synchronization is essential. Question 7. Which option in Directory Utility enables the root user? A) Open Directory B) Services → LDAP C) Advanced → Enable Root D) Users & Groups → Login Options Answer: C Explanation: The “Enable Root User” checkbox is found under the Advanced tab of Directory Utility. Question 8. When binding a Mac client to an Open Directory master, which protocol secures the traffic by default? A) FTP B) SSL/TLS C) Telnet D) HTTP Answer: B Explanation: The binding process uses LDAP over SSL (LDAPS) to encrypt credentials and directory data. Question 9. In Workgroup Manager, which record type stores user‑specific preferences such as login items? A) Managed Preference B) Policy C) Group D) Computer Answer: A Explanation: Managed Preference records allow administrators to push user‑level settings.

A) NFSHomeDirectory B) SMBHomeDirectory C) HomeDirectory D) NetworkHomeDirectory Answer: D Explanation: The NetworkHomeDirectory attribute tells the connector the UNC path for the user’s Windows home share. Question 15. Which command displays the current Kerberos tickets for the logged‑in user? A) kinit B) klist C) kdestroy D) kadmin Answer: B Explanation: klist lists all Kerberos tickets held in the credential cache. Question 16. In Open Directory, what is the purpose of the “Replication” service? A) Sync time B) Distribute user records to replicas C) Manage DNS zones D) Provide file sharing Answer: B Explanation: Replication copies directory data from the master to replica servers for redundancy. Question 17. Which schema class does Open Directory add to standard LDAP for macOS‑specific data? A) posixAccount B) inetOrgPerson C) dsAuthRecordType D) appleUser Answer: D Explanation: The appleUser class holds macOS‑specific attributes like uidNumber and gidNumber. Question 18. Which Directory Service error code indicates “User not found”? A) - 128 B) - 1999 C) - 1000 D) - 2500 Answer: C Explanation: Error -1000 corresponds to “No such entry” in Directory Services.

Question 19. What is the effect of enabling “Force local home directory on network accounts” in the login options? A) Home folders are created on the local disk B) Home folders are stored on the server C) Users cannot log in remotely D) Network accounts are ignored Answer: A Explanation: This setting forces macOS to create a local home directory even for network users. Question 20. Which authentication mechanism does macOS use when connecting to an LDAP server that does not support SASL? A) Simple bind with clear‑text password B) GSSAPI C) Kerberos D) NTLM Answer: A Explanation: If SASL is unavailable, the client falls back to a simple bind using the provided password. Question 21. Which attribute in an AD record stores the Kerberos principal name for a Mac client? A) userPrincipalName B) sAMAccountName C) msSFU30KerberosPrincipal D) servicePrincipalName Answer: C Explanation: msSFU30KerberosPrincipal contains the Kerberos principal used by macOS when authenticating to AD. Question 22. What does the “Mobile Account” option do for AD‑bound Macs? A) Enables roaming profiles B) Caches credentials locally for offline login C) Forces network home directories D) Disables Kerberos Answer: B Explanation: Mobile accounts store a local copy of the user’s credentials, allowing logins when the AD server is unreachable. Question 23. Which tool is used to verify LDAP queries against an Open Directory server?

Explanation: Augmented records allow macOS to store additional attributes locally while leaving the original directory unchanged. Question 28. When a Mac is bound to an AD domain, which service provides the Kerberos KDC information? A) DNS SRV record B) LDAP attribute C) /etc/krb5.conf D) /etc/hosts Answer: A Explanation: AD publishes KDC locations via DNS SRV records (_kerberos._tcp). Question 29. Which of the following tools can be used to enable detailed logging for DirectoryService? A) Console B) syslog.conf C) dscl – log D) defaults write /Library/Preferences/com.apple.DirectoryService.plist DebugLogLevel Answer: D Explanation: Setting the DebugLogLevel key in the DirectoryService preferences file enables verbose logging. Question 30. Which Open Directory record type is used to store computer‑specific information? A) dsComputer B) dsDevice C) dsHost D) dsNode Answer: A Explanation: dsComputer records contain attributes such as the computer’s name, IP, and service bindings. Question 31. What does the “Authentication Search Policy” option “Automatic” do? A) Uses only the Local domain B) Queries all configured directories in a predefined order C) Prompts the user for a directory D) Disables network authentication Answer: B

Explanation: “Automatic” lets the system decide the optimal order, typically Local → Open Directory → AD. Question 32. Which macOS command clears the Kerberos credential cache? A) kinit – R B) kdestroy C) klist – c D) kpasswd Answer: B Explanation: kdestroy removes all tickets from the cache. Question 33. In a directory replication scenario, what does the “Push” mode indicate? A) Replica pulls changes from master B) Master sends changes to replica C) Changes are bidirectional D) No replication occurs Answer: B Explanation: “Push” means the master initiates the transfer of updates to the replica. Question 34. Which attribute in an LDAP entry holds the encrypted password for BSD flat‑file authentication? A) userPassword B) shadowHash C) passwordHash D) authCredential Answer: A Explanation: userPassword stores the password (often hashed) used for LDAP bind operations. Question 35. When configuring an LDAP server in Directory Utility, which option specifies the security protocol to use? A) Bind DN B) Search Base C) Connection Security D) Mapping Answer: C Explanation: “Connection Security” lets you select None, SSL, or StartTLS for encrypting LDAP traffic.

Answer: A Explanation: The loginShell attribute stores the path to the user’s default shell. Question 41. What does the “Directory Services” preference pane allow you to configure on macOS 10.6? A) Network proxies B) Directory bindings and search paths C) Energy saver settings D) Display resolution Answer: B Explanation: The pane lets administrators add, remove, and reorder directory services. Question 42. Which attribute is used by macOS to map a user’s UID to a UNIX user ID in LDAP? A) uidNumber B) uid C) gidNumber D) uidMapping Answer: A Explanation: uidNumber holds the numeric UNIX user ID for LDAP‑based accounts. Question 43. When a Mac client fails to bind to an Open Directory master, which log file typically contains the error? A) /var/log/system.log B) /var/log/DirectoryService/DirectoryService.log C) /var/log/authd.log D) /var/log/secure.log Answer: B Explanation: The DirectoryService log records binding attempts and related errors. Question 44. Which of the following protocols does the AD Connector NOT use? A) LDAP B) Kerberos C) SMB D) NFS Answer: D Explanation: The AD Connector relies on LDAP for directory queries and Kerberos for authentication; SMB is used for file shares, but NFS is unrelated.

Question 45. What is the purpose of the “Search Base” field when adding an LDAP server in Directory Utility? A) Define the root of the directory tree to search B) Set the DNS server address C) Choose the authentication method D) Specify the SSL certificate path Answer: A Explanation: The Search Base limits LDAP queries to a specific subtree. Question 46. Which command can be used to verify that a Mac’s NTP service is synchronized? A) ntpdate - q pool.ntp.org B) ntpstat C) systemsetup - getnetworktimeserver D) sntp - s pool.ntp.org Answer: B Explanation: ntpstat reports the synchronization status of the local NTP daemon. Question 47. In macOS, which file contains the Kerberos realm configuration? A) /etc/krb5.conf B) /etc/hosts C) /etc/resolv.conf D) /Library/Preferences/DirectoryService/DSLConfig.plist Answer: A Explanation: The Kerberos configuration, including realms and KDCs, is stored in /etc/krb5.conf. Question 48. Which attribute in an Open Directory user record indicates whether the account is disabled? A) dsAttrTypeNative:UserAccountControl B) dsAttrTypeNative:AuthenticationDisabled C) dsAttrTypeNative:AccountIsDisabled D) dsAttrTypeNative:PasswordPolicyDisabled Answer: B Explanation: The AuthenticationDisabled flag disables login for the user. Question 49. What does the “Mobile Account” option do when binding a Mac to an AD domain?

Explanation: NFSHomeDirectory holds the POSIX home directory path for LDAP accounts. Question 54. Which of the following is a valid reason to use a “Custom” search path in macOS? A) To force authentication against only the Local domain B) To disable all network directories C) To prioritize a specific LDAP server over others D) To enable automatic time synchronization Answer: C Explanation: A Custom search path lets administrators order directories manually, e.g., placing a particular LDAP server first. Question 55. In an AD environment, which attribute maps a Mac’s computer account to its DNS name? A) dNSHostName B) computerName C) netBIOSName D) servicePrincipalName Answer: A Explanation: dNSHostName stores the fully qualified DNS name of the computer object. Question 56. Which command can be used to test Kerberos ticket renewal for a user? A) kinit - R B) klist - R C) krenew D) kpasswd - R Answer: A Explanation: kinit - R attempts to renew the existing Ticket Granting Ticket. Question 57. Which file contains the mapping of UNIX UID/GID ranges for AD users on macOS? A) /etc/idmap.conf B) /etc/default/ldap C) /etc/openldap/ldap.conf D) /etc/kerberos.conf Answer: A Explanation: idmap.conf defines how AD SIDs are translated to UNIX UID/GID numbers.

Question 58. What does the “dscl. - append /Groups/admin GroupMembership username” command do? A) Creates a new admin group B) Adds a user to the admin group C) Removes a user from the admin group D) Changes the group’s GID Answer: B Explanation: The command appends the specified username to the GroupMembership attribute of the admin group. Question 59. Which of the following is NOT a built‑in directory domain type on macOS? A) Local B) Open Directory C) Active Directory D) NIS Answer: D Explanation: NIS is not a native domain type in macOS 10.6 directory services. Question 60. When configuring an Open Directory replica, which port must be open for replication traffic? A) 389 B) 636 C) 6889 D) 7000 Answer: C Explanation: Port 6889 is used by the Open Directory replication daemon. Question 61. Which attribute in an Open Directory record indicates the user’s preferred language? A) dsAttrTypeNative:PreferredLanguage B) language C) locale D) i18nLocale Answer: A Explanation: The PreferredLanguage attribute stores the language code for the user. Question 62. Which macOS command shows the current directory search policies? A) dscl. - list /Search B) dscl. - read /Search/CSCFSearchPolicy C) dscl. - read /Search D) dscl. - list /Search/CSCFSearchPolicy

Explanation: UID conflicts cause the system to retrieve the wrong record, leading to authentication failures. Question 67. Which command can be used to list all directory nodes known to the system? A) dscl. - list /Nodes B) dscl localhost - list / C) dscl. - list /DirectoryService/Nodes D) dscl. - list /Search/CSCFSearchPolicy Answer: A Explanation: dscl. - list /Nodes outputs the names of all configured directory nodes. Question 68. In an Open Directory environment, which service provides password policy enforcement? A) Kerberos B) Password Server (pwdserver) C) OpenLDAP D) NetInfo Answer: B Explanation: The Password Server daemon enforces password complexity, expiration, and history rules. Question 69. Which attribute in an AD user object is used by macOS to locate the user’s home directory on a Windows file share? A) homeDirectory B) msSFU30HomeDrive C) msSFU30HomeFolder D) profilePath Answer: C Explanation: msSFU30HomeFolder stores the UNC path of the user’s network home folder. Question 70. What does the “dscl. - delete /Users/username” command accomplish? A) Disables the user account B) Removes the user record from the local directory C) Clears the user’s password D) Deletes the user’s home folder only Answer: B Explanation: The command deletes the specified user entry from the local node.

Question 71. Which of the following is required for a Mac to perform Kerberos SSO with an AD domain? A) Correct DNS SRV records for _kerberos._tcp B) A local root password C) An NFS share for home directories D) An LDAP over SSL connection only Answer: A Explanation: Kerberos SSO depends on DNS SRV records to locate the KDC. Question 72. Which macOS preference controls whether a network user’s home directory is mounted automatically at login? A) Login Options → “Use network home folder” B) Energy Saver → “Wake for network access” C) Sharing → “File Sharing” D) Security & Privacy → “FileVault” Answer: A Explanation: The “Use network home folder” option triggers automatic mounting. Question 73. Which attribute does macOS use to store the GUID of an Open Directory user? A) dsAttrTypeNative:GeneratedUID B) dsAttrTypeNative:UserGUID C) uidNumber D) generatedUID Answer: A Explanation: GeneratedUID holds the unique UUID for the user record. Question 74. Which command can be used to test LDAP bind credentials against an Open Directory server? A) dscl - u username - p password - read /Users/username B) ldapsearch - x - D "uid=username,cn=users,cn=default" - W C) kinit username@REALM D) dsconfigad - enable Answer: B Explanation: ldapsearch with -D and -W attempts a simple bind using the supplied credentials.

Question 79. When an AD user logs into a Mac, which attribute determines the default shell? A) loginShell B) unixShell C) userShell D) msSFU30Shell Answer: D Explanation: msSFU30Shell stores the UNIX shell path for AD users. Question 80. Which of the following is the default port for Kerberos authentication (KDC) on a Windows AD server? A) 88 B) 389 C) 636 D) 445 Answer: A Explanation: Kerberos uses TCP/UDP port 88. Question 81. Which macOS command can be used to list all mounted network home directories? A) mount | grep /Volumes B) df - h C) dscl. - list /Users D) ls /Network/Volumes Answer: A Explanation: mount shows all mounted filesystems; filtering for /Volumes reveals network home mounts. Question 82. Which attribute in an Open Directory record holds the user’s telephone number? A) telephoneNumber B) phone C) dsAttrTypeNative:PhoneNumber D) mobileNumber Answer: A Explanation: The standard LDAP attribute telephoneNumber stores the phone number. Question 83. What is the purpose of the “dsconfigad - disable” command? A) Remove the Mac from an AD domain B) Stop the Kerberos daemon C) Disable Open Directory replication D) Clear the local directory cache

Answer: A Explanation: dsconfigad - disable unbinds the computer from the Active Directory domain. Question 84. Which attribute is used by macOS to store the encrypted password for an LDAP user when using SASL? A) userPassword B) saslPassword C) authCredential D) kerberosKey Answer: A Explanation: Even with SASL, the LDAP entry’s userPassword attribute holds the hash used for simple binds. Question 85. Which of the following is true about “Portable Home Directories” in macOS? A) They are stored on an external USB drive B) They are synchronized with iCloud C) They are stored on a network share and mounted at login D) They are only available on laptops Answer: C Explanation: Portable homes reside on a network share and are automatically mounted for the user. Question 86. Which command can be used to view the current DirectoryService debug level? A) defaults read /Library/Preferences/com.apple.DirectoryService.plist DebugLogLevel B) dscl. - read /Search DebugLogLevel C) sysctl - a | grep DirectoryService D) launchctl list | grep DirectoryService Answer: A Explanation: The defaults read command retrieves the debug level from the preferences file. Question 87. Which attribute in an AD user object is used by macOS to map the user’s UNIX UID? A) uidNumber B) msSFU30UidNumber C) uid D) unixUID Answer: B Explanation: msSFU30UidNumber holds the numeric UID for UNIX integration.