Complete the code to specify the protocol used by LDAP.
protocol = "[1]"
The Lightweight Directory Access Protocol (LDAP) is the standard protocol used to access and manage directory services.
Complete the sentence to identify the Microsoft directory service.
The Microsoft directory service is called [1].Active Directory is Microsoft's directory service used for managing users, computers, and other resources in a network.
Fix the error in the LDAP query filter to find users with the surname 'Smith'.
filter = "(sn=[1])"
The LDAP attribute for surname is 'sn'. To find users with surname 'Smith', the filter should be '(sn=Smith)'.
Fill both blanks to create a dictionary comprehension that maps usernames to their email addresses from a list of user objects.
user_emails = { [1]: user.email for user in users if user.[2] is not None }The dictionary comprehension uses the username as the key and the email as the value. The condition checks if the email exists.
Fill all three blanks to create a dictionary comprehension that maps uppercase usernames to their email addresses only if the email contains '@company.com'.
user_dict = { [1]: [2] for user in users if [3] }The comprehension maps uppercase usernames to emails, filtering only those emails containing '@company.com'.