117-301 - LPI 301 Core Exam
Go back to
LPI
Example Questions
Which of the following statements about the ldapsearch command are true? (Select THREE correct answers.)
With the -x option, the simple bind authentication method will be used.
It is possible to configure a specific LDAP server for the search with the -h option.
The -L option is useful when for viewing details of LDIF files.
Which option should be used to disable anonymous binds to your LDAP directory?
disallow bind_anon
When investigating memory usage, what is the most important measurement for capacity planning purposes?
resident set size (RSS)
When assigned to the ref attribute for ou=people,dc=example,dc=com, which of the following values will create a subordinate knowledge link to slave.example.com?
ldap://slave.example.com/ou=people,dc=example,dc=com
Which of the following are valid choices for the LDAP database backend? (Choose THREE correct answers.)
config
passwd
shell
What operating system tools can be used to collect capacity planning data? (Select TWO correct answers.)
ps
top
What does the slapindex tool do?
Regenerates indexes defined in slapd.conf
A private OID should be obtained for a company when:
the company plans to create custom schema files for their directory.
Which of the following is the correct syntax for including a schema file in slapd.conf?
include /usr/local/etc/openldap/schema/core.schema
In capacity planning exercises, what tools assist in identifying processes of interest from other processes? (Select TWO correct answers.)
lsof
pstree
A user is unable to login on a workstation where NSCD was configured BEFORE the pam_ldap and nss_ldap modules. What should be done to fix this problem?
Restart the nscd daemon.
What strategy is used to initialize NIS maps?
Execute the make command from the /var/yp directory.
Which of the following are valid LDAP client commands? (Choose TWO correct answers.)
ldappasswd
ldapwhoami
Select the INCORRECT statement regarding the LDIF file format:
The LDIF file accepts any type of file encoding.
The administrator wants to add the content from an LDIF file named example.ldif to the LDAP directory. Which of the following commands will perform this task?
slapadd < example.ldif
What is the goal of capacity planning? (Select THREE correct answers.)
Ensuring sufficient resources for growth.
Sizing computers for a specific load.
Diagnosing capacity problems.
Which of the following resources would be measured for capacity planning? (Select TWO correct answers.)
CPU usage
memory usage
Which of the following is correct about this excerpt from an LDIF file? dn: cn=PrintOperators,ou=Groups,ou=IT,o=BR
cn is the common name.
LDAP is considered "lightweight" in comparison to X.500 because (Choose TWO correct answers.)
It has a smaller set of operations.
The client and server communicate using the TCP/IP protocol stack.
When performing a capacity planning exercise, when would taking measurements be most appropriate?
During successful operation.
Which command will perform a one-level search from the DN c=INC, for all entries whose organization's name begins with RioDeJaneiro?
ldapsearch -LLL -s one -b "c=INC" "(o=RioDeJaneiro*)"
After configuring PAM and NSS to integrate with OpenLDAP, the SSH server refuses to authenticate users who are only in LDAP. What is the first step you should follow to debug this problem?
Restart the sshd service.
Which statements are true of object classes in an LDAP directory? (Choose TWO correct answers)
An entry cannot have more than one structural object class.
Once an entry has been created, its structural object class cannot be changed without re-creating the entry.
In the following output, what resource is the program being observed using the most? --
disk I/O
Which of the following steps should be followed when configuring a slave slapd server? (Choose THREE correct answers.)
Do not add a replogfile directive to slapd.conf.
Add an updatedn directive to slapd.conf.
Do not add a replica directive to slapd.conf.
Which ONE of the following is a correct example of an RDN?
cn=John Doe
Which ONE of the following parameters is used in the database on a slave server to direct clients that want to make changes to the LDAP database to the master server?
updateref
An administrator is adding several LDIF files to the directory with slapadd, and the new entries are not displayed when ldapsearch is used. Assuming that there is no database corruption, what is the most appropriate solution to the problem?
Stop the slapd process and add the files again with slapadd.
Which of the following arguments complete the command which will search for cn=ldapadmin OR ou=BR recursively in the directory?
( |(cn=ldapamin) (ou=BR) )
When using the auth_ldap module with Apache 1.3, the log displays several messages containing "protocol error". Which of the following steps should be followed to fix the problem?
AuthLDAPStartTLS must be set to on.
When configuring LDAP to use certificates, which option should be used with the TLSVerifyClient directive to ask the client for a valid certificate in order to proceed normally?
demand
What does the LDIF acronym stand for?
LDAP Data Interchange Format
An administrator notices that searches are being processed sequentially and taking a long time to complete. What should be done to speed up the searches?
Add the correct indexes in slapd.conf, stop the server and run slapindex.
After finishing configuring of a Unix client to authenticate with a Microsoft Active Directory server, login attempts are unsuccessful. Which of the following is most likely the cause?
The PAM library is searching the directory with the default search filter.
What is true of any created custom attribute or object class?
It must have a unique OID.
In capacity planning exercises, what tools assist in identifying processes of interest from other processes? (Select TWO correct answers.)
lsof
pstree
Which of the following procedures will test the TLS configuration of your LDAP server?
Run the ldapsearch command with the -ZZ option, while watching network traffic with a packet analyzer.
Which of the following resources would be measured for capacity planning? (Select TWO correct answers.)
disk I/O
network I/O
You're writing a simple Perl script to query an LDAP directory using the Net::LDAP module. Which method would you use to determine if the start_tls() operation was successful?
code()
Which command will instruct slurpd to process the replication error log in one-shot mode for the server 192.168.0.3?
slurpd -r /path/to/replication/error/log -o
What is true of any created custom attribute or object class?
It must have a unique OID.
In capacity planning exercises, what tools assist in identifying processes of interest from other processes? (Select TWO correct answers.)
ps
top
If no ACL lines are included in slapd.conf, what is the default behavior of slapd?
Allow anyone to read any entry.
Which of the following tools are used to measure memory usage? (Select THREE correct answers.)
sar
top
vmstat
Which of the following switches for the ldapsearch command makes sure that search referrals are followed?
-C
Which of the following correctly describes the method to add Samba users to the LDAP directory?
First make sure that a posixAccount entry exists in the Directory for the user you want to add, then use smbpasswd -a to add the Samba user from the command line.
What schema files are required to make LDAP compatible to NIS? (Choose TWO correct answers.)
cosine.schema
nis.schema
What operating system tools can be used to collect capacity planning data? (Select TWO correct answers.)
netstat
sar
What is the goal of capacity planning? (Select THREE correct answers.)
Ensuring sufficient resources for growth.
Sizing computers for a specific load.
Diagnosing capacity problems.
When importing the contents of one directory into another, the administrator is adding entries with the slapadd command. Which of the following statements are true? (Choose THREE correct answers.)
slapindex must be run after slapadd, because the slapadd operation will not write to index files.
The slapd process must be stopped before running slapadd.
The changes in the LDIF file will not be replicated with slurpd.