Explore topic-wise InterviewSolutions in .

This section includes InterviewSolutions, each offering curated multiple-choice questions to sharpen your knowledge and support exam preparation. Choose a topic below to get started.

1.

Define Schemas?

Answer»

Schemas provide DEFINITIONS of the different OBJECT classes and attribute TYPES that OpenLDAP should support. Using these, OpenLDAP can determine what entries it is allowed to STORE, whether any given entry is valid, and how entries should OPTIMALLY be stored.

Schemas provide definitions of the different object classes and attribute types that OpenLDAP should support. Using these, OpenLDAP can determine what entries it is allowed to store, whether any given entry is valid, and how entries should optimally be stored.

2.

Explain Modulepath Directive?

Answer»

The modulepath directive PROVIDES the full PATH to the directory where the MODULES (the compiled LIBRARIES) are STORED

The modulepath directive provides the full path to the directory where the modules (the compiled libraries) are stored

3.

Explain Module Load Directive?

Answer»

The moduleload DIRECTIVE INSTRUCTS OpenLDAP to LOAD a PARTICULAR MODULE.

The moduleload directive instructs OpenLDAP to load a particular module.

4.

What Is Hdb?

Answer»

HDB is the NEW generation STORAGE mechanism for OpenLDAP. Like its predecessor, the BDB backend, HDB uses the Oracle BerkeleyDB database for storage, but HDB stores entries hierarchically, a perfect FIT for LDAP’s tree structure. The old BDB backend is still supported, and you can USE it by specifying bdb instead of hdb in the database DIRECTIVE.

HDB is the new generation storage mechanism for OpenLDAP. Like its predecessor, the BDB backend, HDB uses the Oracle BerkeleyDB database for storage, but HDB stores entries hierarchically, a perfect fit for LDAP’s tree structure. The old BDB backend is still supported, and you can use it by specifying bdb instead of hdb in the database directive.

5.

How You Will Verify Ldap Configuration File?

Answer»

USE “slaptest” UTILITY.

Use “slaptest” utility.

6.

Which Web Based Tool You Have Used For Ldap?

Answer»

phpLDAPadmin

phpLDAPadmin

7.

What Is The Relationship Between Ldap And Jndi?

Answer»

JNDI has CLASSES provided by SUN that will help UR appln interact with and LDAP server. JNDI appln work similarly to JDBC applns once and be free to use ‘drivers’ from DIFFERENT VENDORS. SUN provides the “driver” that will help interact with the LDAP server. Sun also provides “drivers” for other naming services (like CORBA).

JNDI has classes provided by SUN that will help ur appln interact with and LDAP server. JNDI appln work similarly to JDBC applns once and be free to use ‘drivers’ from different vendors. SUN provides the “driver” that will help interact with the LDAP server. Sun also provides “drivers” for other naming services (like CORBA).

8.

What Is The Name Of Main Configuration File Name For Ldap Server ?

Answer»

slapd.conf

slapd.conf

9.

Name The Object Class Types ?

Answer»

10.

What Is “ldif” ?

Answer»

The LDAP Interchange Format (LDIF) is a standard text FILE format for storing LDAP configuration INFORMATION and directory contents. LDIF files are OFTEN used to IMPORT new data into your directory or make changes to existing data.

The LDAP Interchange Format (LDIF) is a standard text file format for storing LDAP configuration information and directory contents. LDIF files are often used to import new data into your directory or make changes to existing data.

11.

How Can I Join Information Contained In Different Directories ?

Answer»

DISTRIBUTED, Multivendor directories GLUED TOGETHER by referrals and REFERENCES.

Distributed, Multivendor directories glued together by referrals and references.

12.

What Can I Do If My Application Doesn’t Speak To Ldap ?

Answer»

GATEWAY that TRANSLATE one directory ACCESS protocol into ANOTHER.

Gateway that translate one directory access protocol into another.

13.

Is There Graphical Editors For Ldap ?

Answer»

Yes, Following are some GUI BASED tools for LDAP

  • GQ
  • Java LDAP Browser/Editor
  • Softerra LDAP Browser

Yes, Following are some GUI based tools for LDAP

14.

How Can We Access Home Directory To Ldap Client From Ldap Server?

Answer»

FIRST, go to LDAP SERVER and share home directory VIA NFS server. After this perform auto-mounting via LDAP client.

First, go to LDAP server and share home directory via NFS server. After this perform auto-mounting via LDAP client.

15.

How To Access Ldap From Client Side?

Answer»

# system-config-authentication OR # authconfig -GTK

# system-config-authentication OR # authconfig -gtk

16.

How Can We Migrate Users In Ldap?

Answer»

Following:

  • Make changes according to your domain in /usr/share/migrationtools/migrate_common.ph
  • # ./migrate_base.pl > /root/base.ldif
  • # getent passwd | tail -N 5 > /root/users <<For 5 users>>
  • # getent shadow | tail -n 5 > /root/passwords <<For 5 users>>
  • # getent group | tail -n 5 > /root/groups <<For 5 groups>>
  • # ./migrate_passwd.pl /root/users
  • # ./migrate_passwd.pl /root/users > /root/users.ldif
  • # ./migrate_group.pl /root/groups
  • # ./migrate_group.pl /root/users > /root/groups.ldif
  • Update these files to LDAP server
    • # ldapadd -x -W -D “cn=Manager,dc=example,dc=com” -f /root/base.ldif
    • # ldapadd -x -W -D ‘cn=Manager,dc=example,dc=com” -f /root/users.ldif
    • # ldapadd -x -W -D “cn=Manager,dc=example,dc=com” -f /root/groups.ldif
  • VERIFY: # ldapsearch -x -B “dc=example,dc=com”

Following:

17.

What Is Default Tls Certificate Location?

Answer»

For Debian/Ubuntu:

/etc/ssl/certs/

For RHEL/Fedora/CentOS:

/etc/pki/tls/certs/

For Debian/Ubuntu:

/etc/ssl/certs/

For RHEL/Fedora/CentOS:

/etc/pki/tls/certs/

18.

How Can We Create A Tls Certificate?

Answer»

Use command;

# openssl req -new -x509 -nodes -out /etc/pki/tls/certs/example.pem -keyout /etc/pki/tls/certs/examplekey.pem -DAYS 365

  • openssl: crytographic toolkit for SSL & TLS n/w PROTOCOLS
  • req: activates the parts of openssl that deals with certificate requests
  • -new: generate new request
  • -x509: certificate display and signing utility
  • -nodes: STORES private key without protecting it with a passphrase
  • -out *.pem: stores certificate request in a FILE *.pem
  • -keyout *key.pem: stores private key in a file *key.pem
  • days: certificate activation days

Use command;

# openssl req -new -x509 -nodes -out /etc/pki/tls/certs/example.pem -keyout /etc/pki/tls/certs/examplekey.pem -days 365

19.

How To Configure Ldap Protocol?

Answer»

FOLLOW:

  1. INSTALL openldap-servers package
  2. Modify olcDatabasev bdb.ldif file and olcDatabasev monitor.ldif file
  3. CREATE Database Cache and update Database
  4. Create CERTIFICATE for TLS and provide ownership of ldap group to your certificate
  5. RESTART slapd service

Follow:

20.

Logical Operators For Ldap Filter?

Answer»

AND (&AMP;), OR (|), and NOT (!)

AND (&), OR (|), and NOT (!)

21.

List Any Graphical Editors For Ldap?

Answer»

(1) GQ, (2) JAVA LDAP Browser/Editor and (3) Softerra LDAP Browser

(1) GQ, (2) Java LDAP Browser/Editor and (3) Softerra LDAP Browser

22.

How Will You Verify Ldap Configuration File?

Answer»

slaptest -U

slaptest -u

23.

How To Encrypt The Password?

Answer»

ldappasswd

ldappasswd

24.

List Three Ldap Client Utilities Or Applications?

Answer»
  1. ldapsearch
  2. ldapadd and
  3. ldapmodify

25.

Which Configuration File Is Required For Ldap Clients?

Answer»

ldap.conf

ldap.conf

26.

What Is The Name Of Main Configuration File Name For Ldap Server?

Answer»

slapd.conf

slapd.conf

27.

What Is Ssl And Tls?

Answer»

SSL (Secure Sockets LAYER) certificates are an integral part of website SECURITY. When you VISIT a website with SSL the site’s SSL certificate ENABLES you to encrypt the data you send, such as credit card information, names or addresses so it can’t be accessed by hackers.

SSL (Secure Sockets Layer) certificates are an integral part of website security. When you visit a website with SSL the site’s SSL certificate enables you to encrypt the data you send, such as credit card information, names or addresses so it can’t be accessed by hackers.

28.

What Is Ldif?

Answer»

The LDAP Interchange FORMAT (LDIF) is a STANDARD text file format for storing LDAP configuration INFORMATION and directory CONTENTS.

The LDAP Interchange Format (LDIF) is a standard text file format for storing LDAP configuration information and directory contents.

29.

What Is Slapd?

Answer»

SLAPD stands for ‘Stand-Alone LDAP’, DEVELOPED for LONG RUNNING projects.

SLAPD stands for ‘Stand-Alone LDAP’, developed for long running projects.

30.

Why Ldap Is Called Light Weight?

Answer»

Because it is a smaller and easier protocol which was derived from the X.500 DAP (Directory ACCESS Protocol) defined in the OSI network protocol STACK.

Because it is a smaller and easier protocol which was derived from the X.500 DAP (Directory Access Protocol) defined in the OSI network protocol stack.

31.

What Is Port Number For Ldap?

Answer»

LDAP389 and LDAPS – 636

LDAP – 389 and LDAPS – 636