0
0
Cybersecurityknowledge~10 mins

Directory services (Active Directory, LDAP) in Cybersecurity - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to specify the protocol used by LDAP.

Cybersecurity
protocol = "[1]"
Drag options to blanks, or click blank then click option'
ALDAP
BHTTP
CFTP
DSMTP
Attempts:
3 left
πŸ’‘ Hint
Common Mistakes
Confusing LDAP with HTTP or FTP protocols.
Using SMTP which is for email.
2fill in blank
medium

Complete the sentence to identify the Microsoft directory service.

Cybersecurity
The Microsoft directory service is called [1].
Drag options to blanks, or click blank then click option'
AActive Directory
BKerberos
CDNS
DOpenLDAP
Attempts:
3 left
πŸ’‘ Hint
Common Mistakes
Confusing Active Directory with DNS or Kerberos.
Thinking OpenLDAP is Microsoft’s directory service.
3fill in blank
hard

Fix the error in the LDAP query filter to find users with the surname 'Smith'.

Cybersecurity
filter = "(sn=[1])"
Drag options to blanks, or click blank then click option'
Aname
Bsurname
Csn
DSmith
Attempts:
3 left
πŸ’‘ Hint
Common Mistakes
Using attribute names instead of the actual value.
Using 'surname' instead of 'sn' as attribute.
4fill in blank
hard

Fill both blanks to create a dictionary comprehension that maps usernames to their email addresses from a list of user objects.

Cybersecurity
user_emails = { [1]: user.email for user in users if user.[2] is not None }
Drag options to blanks, or click blank then click option'
Auser.username
Buser.name
Cemail
Dusername
Attempts:
3 left
πŸ’‘ Hint
Common Mistakes
Using incorrect attribute names for keys or conditions.
Confusing the key and value positions.
5fill in blank
hard

Fill all three blanks to create a dictionary comprehension that maps uppercase usernames to their email addresses only if the email contains '@company.com'.

Cybersecurity
user_dict = { [1]: [2] for user in users if [3] }
Drag options to blanks, or click blank then click option'
Auser.username.upper()
Buser.email
C"@company.com" in user.email
Duser.name
Attempts:
3 left
πŸ’‘ Hint
Common Mistakes
Not converting usernames to uppercase.
Incorrectly checking the email domain.
Using wrong attributes for keys or values.