introduction to ldap · university of málaga, spain chisin¸au, replublic of moldova˘ may, 15th...

100
Definitions Characteristics Back ends Directory operations Security References Introduction to LDAP Identity Management Workshop Victoriano Giralt Central Computing Facility University of Málaga, Spain Chi¸ sin˘ au, Replublic of Moldova May, 15th 2007 Victoriano Giralt Introduction to LDAP

Upload: others

Post on 09-Aug-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Introduction to LDAPIdentity Management Workshop

Victoriano Giralt

Central Computing FacilityUniversity of Málaga, Spain

Chisinau, Replublic of MoldovaMay, 15th 2007

Victoriano Giralt Introduction to LDAP

Page 2: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Let’s set things straight from the beginig

LDAP is NOT a directory

it is a protocolto access the directory

X.500 IS the directoryDon’t pannic

Let’s make LDAP = LDAP accesable directory system

Victoriano Giralt Introduction to LDAP

Page 3: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Let’s set things straight from the beginig

LDAP is NOT a directory

it is a protocolto access the directory

X.500 IS the directoryDon’t pannic

Let’s make LDAP = LDAP accesable directory system

Victoriano Giralt Introduction to LDAP

Page 4: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Let’s set things straight from the beginig

LDAP is NOT a directory

it is a protocolto access the directory

X.500 IS the directory

Don’t pannic

Let’s make LDAP = LDAP accesable directory system

Victoriano Giralt Introduction to LDAP

Page 5: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Let’s set things straight from the beginig

LDAP is NOT a directory

it is a protocolto access the directory

X.500 IS the directoryDon’t pannic

Let’s make LDAP = LDAP accesable directory system

Victoriano Giralt Introduction to LDAP

Page 6: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Let’s set things straight from the beginig

LDAP is NOT a directory

it is a protocolto access the directory

X.500 IS the directoryDon’t pannic, I’m not going to resurrect the OSI stack

Let’s make LDAP = LDAP accesable directory system

Victoriano Giralt Introduction to LDAP

Page 7: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Let’s set things straight from the beginig

LDAP is NOT a directory

it is a protocolto access the directory

X.500 IS the directoryDon’t pannic, I’m not going to resurrect the OSI stack

Let’s make LDAP = LDAP accesable directory system

Victoriano Giralt Introduction to LDAP

Page 8: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Overview

1 Definitions

2 Characteristics

3 Back ends

4 Directory operations

5 Security

Victoriano Giralt Introduction to LDAP

Page 9: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Overview

1 Definitions

2 Characteristics

3 Back ends

4 Directory operations

5 Security

Victoriano Giralt Introduction to LDAP

Page 10: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Overview

1 Definitions

2 Characteristics

3 Back ends

4 Directory operations

5 Security

Victoriano Giralt Introduction to LDAP

Page 11: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Overview

1 Definitions

2 Characteristics

3 Back ends

4 Directory operations

5 Security

Victoriano Giralt Introduction to LDAP

Page 12: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Overview

1 Definitions

2 Characteristics

3 Back ends

4 Directory operations

5 Security

Victoriano Giralt Introduction to LDAP

Page 13: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is a directory?from different points of view

Linguistics

According to D.R.A.E.

Directory

5. m. Roster of people belonging to a group,with indication of diverse information about them,such as role, location data, phone numbers, etc.

Victoriano Giralt Introduction to LDAP

Page 14: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is a directory?from different points of view

Computer Science

Directory

Information objects organized hierarchycally.Like:

Storage file systems

Domain Name System (DNS)

X.500, the Directory

Victoriano Giralt Introduction to LDAP

Page 15: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an Entry

An entry is simply an individual object stored in the directory

Examples of entries are

A person

An organization

A department

A network node

The description of a classification code

Victoriano Giralt Introduction to LDAP

Page 16: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an Entry

An entry is simply an individual object stored in the directoryExamples of entries are

A person

An organization

A department

A network node

The description of a classification code

Victoriano Giralt Introduction to LDAP

Page 17: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an Entry

An entry is simply an individual object stored in the directoryExamples of entries are

A person

An organization

A department

A network node

The description of a classification code

Victoriano Giralt Introduction to LDAP

Page 18: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an Entry

An entry is simply an individual object stored in the directoryExamples of entries are

A person

An organization

A department

A network node

The description of a classification code

Victoriano Giralt Introduction to LDAP

Page 19: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an Entry

An entry is simply an individual object stored in the directoryExamples of entries are

A person

An organization

A department

A network node

The description of a classification code

Victoriano Giralt Introduction to LDAP

Page 20: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an Entry

An entry is simply an individual object stored in the directoryExamples of entries are

A person

An organization

A department

A network node

The description of a classification code

Victoriano Giralt Introduction to LDAP

Page 21: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an Entry

An entry is simply an individual object stored in the directoryExamples of entries are

A person

An organization

A department

A network node

The description of a classification code

Victoriano Giralt Introduction to LDAP

Page 22: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an Attribute

An attribute is a name value pair of a characteristic of an objectstored in a directory entry.

Attributes can be

Univalued. Only one same name value pair per entry.

Multivalued. Any number of same name value pairs.

Operational. Managed by the server.

A person’s Surname (family name)

A system’s IP address

A telephone number

createTimestamp

Victoriano Giralt Introduction to LDAP

Page 23: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an Attribute

An attribute is a name value pair of a characteristic of an objectstored in a directory entry.Attributes can be

Univalued. Only one same name value pair per entry.

Multivalued. Any number of same name value pairs.

Operational. Managed by the server.

A person’s Surname (family name)

A system’s IP address

A telephone number

createTimestamp

Victoriano Giralt Introduction to LDAP

Page 24: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an Attribute

An attribute is a name value pair of a characteristic of an objectstored in a directory entry.Attributes can be

Univalued. Only one same name value pair per entry.

Multivalued. Any number of same name value pairs.

Operational. Managed by the server.

A person’s Surname (family name)

A system’s IP address

A telephone number

createTimestamp

Victoriano Giralt Introduction to LDAP

Page 25: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an Attribute

An attribute is a name value pair of a characteristic of an objectstored in a directory entry.Attributes can be

Univalued. Only one same name value pair per entry.

Multivalued. Any number of same name value pairs.

Operational. Managed by the server.

A person’s Surname (family name)

A system’s IP address

A telephone number

createTimestamp

Victoriano Giralt Introduction to LDAP

Page 26: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an Attribute

An attribute is a name value pair of a characteristic of an objectstored in a directory entry.Attributes can be

Univalued. Only one same name value pair per entry.

Multivalued. Any number of same name value pairs.

Operational. Managed by the server.

A person’s Surname (family name)

A system’s IP address

A telephone number

createTimestamp

Victoriano Giralt Introduction to LDAP

Page 27: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an Attribute

An attribute is a name value pair of a characteristic of an objectstored in a directory entry.Attributes can be

Univalued. Only one same name value pair per entry.

Multivalued. Any number of same name value pairs.

Operational. Managed by the server.

Examples of attributes are

A person’s Surname (family name)

A system’s IP address

A telephone number

createTimestamp

Victoriano Giralt Introduction to LDAP

Page 28: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an Attribute

An attribute is a name value pair of a characteristic of an objectstored in a directory entry.Attributes can be

Univalued. Only one same name value pair per entry.

Multivalued. Any number of same name value pairs.

Operational. Managed by the server.

Examples of attributes are

A person’s Surname (family name)

A system’s IP address

A telephone number

createTimestamp

Victoriano Giralt Introduction to LDAP

Page 29: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an ObjectClass

An objectClass is a logical grouping of attributes thatentries may have

According to objectClass definition, attributes are

Required. The atribute must exist in an entry of that kind.

Optional. The atribute may (or may not) exist.

Person

innetNode

schacLinkageIdentifiers

Victoriano Giralt Introduction to LDAP

Page 30: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an ObjectClass

An objectClass is a logical grouping of attributes thatentries may haveAccording to objectClass definition, attributes are

Required. The atribute must exist in an entry of that kind.

Optional. The atribute may (or may not) exist.

Person

innetNode

schacLinkageIdentifiers

Victoriano Giralt Introduction to LDAP

Page 31: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an ObjectClass

An objectClass is a logical grouping of attributes thatentries may haveAccording to objectClass definition, attributes are

Required. The atribute must exist in an entry of that kind.

Optional. The atribute may (or may not) exist.

Person

innetNode

schacLinkageIdentifiers

Victoriano Giralt Introduction to LDAP

Page 32: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an ObjectClass

An objectClass is a logical grouping of attributes thatentries may haveAccording to objectClass definition, attributes are

Required. The atribute must exist in an entry of that kind.

Optional. The atribute may (or may not) exist.

Person

innetNode

schacLinkageIdentifiers

Victoriano Giralt Introduction to LDAP

Page 33: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an ObjectClass

An objectClass is a logical grouping of attributes thatentries may haveAccording to objectClass definition, attributes are

Required. The atribute must exist in an entry of that kind.

Optional. The atribute may (or may not) exist.

Examples of objectClasses are

Person

innetNode

schacLinkageIdentifiers

Victoriano Giralt Introduction to LDAP

Page 34: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is an ObjectClass

An objectClass is a logical grouping of attributes thatentries may haveAccording to objectClass definition, attributes are

Required. The atribute must exist in an entry of that kind.

Optional. The atribute may (or may not) exist.

Examples of objectClasses are

Person

innetNode

schacLinkageIdentifiers

Victoriano Giralt Introduction to LDAP

Page 35: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

The Directory Information Treea.k.a. DIT

The tree that organises a hyerarchy of directory objects

Victoriano Giralt Introduction to LDAP

Page 36: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

The Directory Information Treea.k.a. DIT

The tree that organises a hyerarchy of directory objects

Victoriano Giralt Introduction to LDAP

Page 37: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is a DistinguishedNameIt’s my very own personal name in the directory

The components of a Distinguished Name

DN

RDN

Base DN

Victoriano Giralt Introduction to LDAP

Page 38: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is a DistinguishedNameIt’s my very own personal name in the directory

The components of a Distinguished Name

DN

RDN

Base DN

Distinguished Name

It is is an special attribute thatuniquelly identifies an entry in a DIT branch.This value is composed of one or moreattributes from the entry itself,and the DN of the branch where it resides.For example:dn=cn=postmaster,ou=roles,dc=renam,dc=md

Victoriano Giralt Introduction to LDAP

Page 39: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is a DistinguishedNameIt’s my very own personal name in the directory

The components of a Distinguished Name

DN

RDN

Base DN

Relative Distinguished Name

It is the part of the DN that singles outan entry inside its branch in the DIT.I.e.: The entry’s DN minus the DN of its parent.In the previous example: cn=postmaster

Victoriano Giralt Introduction to LDAP

Page 40: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

What is a DistinguishedNameIt’s my very own personal name in the directory

The components of a Distinguished Name

DN

RDN

Base DN

Base DNIt is the DN of the DIT root.For example: dc=renam,dc=md

Victoriano Giralt Introduction to LDAP

Page 41: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Singularities of directoriesa model closer to the real world

Best known database systems are relational oneswe will describe LDAP directories in comparison to them

Victoriano Giralt Introduction to LDAP

Page 42: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Singularities of directoriesa model closer to the real world

Best known database systems are relational oneswe will describe LDAP directories in comparison to them

Relational DBMSNo standardtable schema

Schema

LDAP directory

International standardsfor persons andorganizations,more so in Academia

Victoriano Giralt Introduction to LDAP

Page 43: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Singularities of directoriesa model closer to the real world

Best known database systems are relational oneswe will describe LDAP directories in comparison to them

Relational DBMS

One logical entitystored in severaltables

SchemaOrganization LDAP directory

One logical entityOne objectOne node = entry in DIT

Victoriano Giralt Introduction to LDAP

Page 44: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Singularities of directoriesa model closer to the real world

Best known database systems are relational oneswe will describe LDAP directories in comparison to them

Relational DBMSNew table orseveral fields

SchemaOrganizationMulti value

LDAP directory

All stored in one attributeAs many as needed

Victoriano Giralt Introduction to LDAP

Page 45: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Singularities of directoriesa model closer to the real world

Best known database systems are relational oneswe will describe LDAP directories in comparison to them

Relational DBMSRestricted set

SchemaOrganizationMulti valueDatatypes

LDAP directory

Unlimited numberthrough the use ofsyntaxes

Victoriano Giralt Introduction to LDAP

Page 46: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Singularities of directoriesa model closer to the real world

Best known database systems are relational oneswe will describe LDAP directories in comparison to them

Relational DBMSMatching rulesoutside thedata model.Implemented inprograms

SchemaOrganizationMulti valueDatatypesMatching

LDAP directory

Matching rules in thedata model.Defined with the schema

Victoriano Giralt Introduction to LDAP

Page 47: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Singularities of directoriesa model closer to the real world

Best known database systems are relational oneswe will describe LDAP directories in comparison to them

Relational DBMS

Changes in schemarequire big efforts.Affect program logic

SchemaOrganizationMulti valueDatatypesMatchingFlexibility

LDAP directory

Granularschema modificationsUp to the entry level.Need attribute − >

add objectClass

Victoriano Giralt Introduction to LDAP

Page 48: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Singularities of directoriesa model closer to the real world

Best known database systems are relational oneswe will describe LDAP directories in comparison to them

Relational DBMSNetwork accessnot standardised

SchemaOrganizationMulti valueDatatypesMatchingFlexibilityAccess

LDAP directory

Standard networkaccess: LDAPEasy distribution of dataon the Net

Victoriano Giralt Introduction to LDAP

Page 49: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Singularities of directoriesa model closer to the real world

Best known database systems are relational oneswe will describe LDAP directories in comparison to them

Relational DBMS

Only proprietaryAuthN mechanisms

SchemaOrganizationMulti valueDatatypesMatchingFlexibilityAccessAuthN

LDAP directory

Various standard AuthNmechanisms thatwork over the network

Victoriano Giralt Introduction to LDAP

Page 50: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Singularities of directoriesa model closer to the real world

Best known database systems are relational oneswe will describe LDAP directories in comparison to them

Relational DBMS

Only proprietaryOverly complicated

SchemaOrganizationMulti valueDatatypesMatchingFlexibilityAccessAuthNReplication

LDAP directory

Standard protocolsthat are includedfrom design

Victoriano Giralt Introduction to LDAP

Page 51: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Database systemsdirectory data has to be put onto storage

It is possible to use different database backends tostore the directory data on the filesystem.

Sleepy Cat Berkeley DBIt is the most used backed for LDAP

Relational database systemsIt is possible to use this databases as backendsfor LDAP enabled directories.There are even RPMs to do that with OpenLDAP.

GNU DBM

Victoriano Giralt Introduction to LDAP

Page 52: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Database systemsdirectory data has to be put onto storage

It is possible to use different database backends tostore the directory data on the filesystem.

Sleepy Cat Berkeley DBIt is the most used backed for LDAP

Relational database systemsIt is possible to use this databases as backendsfor LDAP enabled directories.There are even RPMs to do that with OpenLDAP.

GNU DBM

Victoriano Giralt Introduction to LDAP

Page 53: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Database systemsdirectory data has to be put onto storage

It is possible to use different database backends tostore the directory data on the filesystem.

Sleepy Cat Berkeley DBIt is the most used backed for LDAP

Relational database systemsIt is possible to use this databases as backendsfor LDAP enabled directories.There are even RPMs to do that with OpenLDAP.

GNU DBM

Victoriano Giralt Introduction to LDAP

Page 54: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Database systemsdirectory data has to be put onto storage

It is possible to use different database backends tostore the directory data on the filesystem.

Sleepy Cat Berkeley DBIt is the most used backed for LDAP

Relational database systemsIt is possible to use this databases as backendsfor LDAP enabled directories.There are even RPMs to do that with OpenLDAP.

GNU DBM

Victoriano Giralt Introduction to LDAP

Page 55: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Connecting to the directoryfor performing other tasks

These are the operations that control the connectionto the directory

1 StartTLS2 Bind3 Unbind

Abandon

Victoriano Giralt Introduction to LDAP

Page 56: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Connecting to the directoryfor performing other tasks

These are the operations that control the connectionto the directory

1 StartTLS

2 Bind3 Unbind

Abandon

Secure connectionsIt should be mandatoryEncrypted transports protect the data

Victoriano Giralt Introduction to LDAP

Page 57: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Connecting to the directoryfor performing other tasks

These are the operations that control the connectionto the directory

1 StartTLS2 Bind

3 Unbind

Abandon

AuthNThe principal proves identity to the serviceThus, access controls can be applied toother operationsSome operations maybe made insideanonymous sessions

Victoriano Giralt Introduction to LDAP

Page 58: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Connecting to the directoryfor performing other tasks

These are the operations that control the connectionto the directory

1 StartTLS2 Bind3 Unbind

Abandon

End the sessionThe principal tells the service ithas finished workingIn practice, this closes de connection

Victoriano Giralt Introduction to LDAP

Page 59: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Connecting to the directoryfor performing other tasks

These are the operations that control the connectionto the directory

1 StartTLS2 Bind3 Unbind

Abandon

End operations

LDAP protocols allows for operations to beasynchronousThen, it is possible to abandon operationsbefore they finish

Victoriano Giralt Introduction to LDAP

Page 60: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Searching in LDAP directoriespowerful, but not for the faint of heart

Search operations using the LDAP protocolare very powerful, thus they need many parameters

Victoriano Giralt Introduction to LDAP

Page 61: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Searching in LDAP directoriespowerful, but not for the faint of heart

Search operations using the LDAP protocolare very powerful, thus they need many parameters

Base DN a.k.a. Base object

The node in the DIT that is the starting pointfor the search

Victoriano Giralt Introduction to LDAP

Page 62: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Searching in LDAP directoriespowerful, but not for the faint of heart

Search operations using the LDAP protocolare very powerful, thus they need many parameters

scope

Base DNsearch depth

base:Search only the base DN object

onelevel:Search first level below base DN

subtree:Search all levels below base DN

Victoriano Giralt Introduction to LDAP

Page 63: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Searching in LDAP directoriespowerful, but not for the faint of heart

Search operations using the LDAP protocolare very powerful, thus they need many parameters

derefAliases

scope

Base DN

follow pointers

neverDerefAlias

derefInSearching:scope onelevel or sub

derefFindingBaseObject:scope base

derefAways

Victoriano Giralt Introduction to LDAP

Page 64: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Searching in LDAP directoriespowerful, but not for the faint of heart

Search operations using the LDAP protocolare very powerful, thus they need many parameters

size limit

derefAliases

scope

Base DN

how many results

Limit the number of entries the serverwill return in the search result

Victoriano Giralt Introduction to LDAP

Page 65: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Searching in LDAP directoriespowerful, but not for the faint of heart

Search operations using the LDAP protocolare very powerful, thus they need many parameters

time limit

size limit

derefAliases

scope

Base DN

how long to wait

Limit the time the server will spendperforming the search

Victoriano Giralt Introduction to LDAP

Page 66: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Searching in LDAP directoriespowerful, but not for the faint of heart

Search operations using the LDAP protocolare very powerful, thus they need many parameters

attrsOnly

time limit

size limit

derefAliases

scope

Base DN

just the names

Return only the names of the attributes,no values

Victoriano Giralt Introduction to LDAP

Page 67: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Searching in LDAP directoriespowerful, but not for the faint of heart

Search operations using the LDAP protocolare very powerful, thus they need many parameters

filter

attrsOnly

time limit

size limit

derefAliases

scope

Base DN

search expression

The query itselfThe format is (condition)

Victoriano Giralt Introduction to LDAP

Page 68: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Searching in LDAP directoriespowerful, but not for the faint of heart

Search operations using the LDAP protocolare very powerful, thus they need many parameters

attributes

filter

attrsOnly

time limit

size limit

derefAliases

scope

Base DN

search results

A list of the attributes (and possibly values)the server should returnfrom the entries in the result set.* means all attributes

Victoriano Giralt Introduction to LDAP

Page 69: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Search operationsthe art of query building

LDAP queries consist of comparison conditions combined byboolean operations.

Comparison operations

Equality

Substring

Presence

Victoriano Giralt Introduction to LDAP

Page 70: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Search operationsthe art of query building

LDAP queries consist of comparison conditions combined byboolean operations.

Comparison operations

Equality

Substring

Presence

Exact matchThe attribute value must matchthe search string

Victoriano Giralt Introduction to LDAP

Page 71: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Search operationsthe art of query building

LDAP queries consist of comparison conditions combined byboolean operations.

Comparison operations

Equality

Substring

Presence

Substring match

The attribute value shouldstart (string*) or end (*string) withor contain (*string*) the search string

Victoriano Giralt Introduction to LDAP

Page 72: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Search operationsthe art of query building

LDAP queries consist of comparison conditions combined byboolean operations.

Comparison operations

Equality

Substring

Presence

Any value *

The search retrieves entries that havethe attribute, whatever its value.

Victoriano Giralt Introduction to LDAP

Page 73: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Search operationsthe art of query building

LDAP queries consist of comparison conditions combined byboolean operations.

Comparison operators(attribute operator searchstring)

=

<=

=

Equal

The attribute value shall equal the result ofthe comparison operation

Victoriano Giralt Introduction to LDAP

Page 74: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Search operationsthe art of query building

LDAP queries consist of comparison conditions combined byboolean operations.

Comparison operators(attribute operator searchstring)

=

<=

=

Less than or equal

The attribute value ordering position shall belower or equal that that of the result ofthe comparison operation

Victoriano Giralt Introduction to LDAP

Page 75: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Search operationsthe art of query building

LDAP queries consist of comparison conditions combined byboolean operations.

Comparison operators(attribute operator searchstring)

=

<=

=

Approximate

The attribute value should sound similar,in English, to the comparison operation.Only equality is accepted here.

Victoriano Giralt Introduction to LDAP

Page 76: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Search operationsthe art of query building

LDAP queries consist of comparison conditions combined byboolean operations.

Boolean operators(operator(condition). . . )

&

|

!

And

All conditions must be true for the entry to beadded to the result set(&([email protected])(schacUserStatus=*:mail:active))

Victoriano Giralt Introduction to LDAP

Page 77: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Search operationsthe art of query building

LDAP queries consist of comparison conditions combined byboolean operations.

Boolean operators(operator(condition). . . )

&

|

!

Or

If any of the conditions is true,the entry is added to the result set(|([email protected])([email protected]))

Victoriano Giralt Introduction to LDAP

Page 78: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Search operationsthe art of query building

LDAP queries consist of comparison conditions combined byboolean operations.

Boolean operators(operator(condition). . . )

&

|

!

NotThe entry must not meet the condition to beadded to the result set(!(schacUserStatus=*:locked))

Victoriano Giralt Introduction to LDAP

Page 79: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Updating the directorythe usual operations, with a twist

All update operations require the DN of the entryand are atomic, i.e. searches get the whole old or new one

Add

Delete

Modify

Rename

Victoriano Giralt Introduction to LDAP

Page 80: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Updating the directorythe usual operations, with a twist

All update operations require the DN of the entryand are atomic, i.e. searches get the whole old or new one

Add

Delete

Modify

Rename

Insert a new entryCreates a new entry with the provided DN,as long as there is no other entry with the same DN

and all required attributes are present

Victoriano Giralt Introduction to LDAP

Page 81: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Updating the directorythe usual operations, with a twist

All update operations require the DN of the entryand are atomic, i.e. searches get the whole old or new one

Add

Delete

Modify

Rename

Remove the named entryDeletes the entry with the provided DN

Victoriano Giralt Introduction to LDAP

Page 82: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Updating the directorythe usual operations, with a twist

All update operations require the DN of the entryand are atomic, i.e. searches get the whole old or new one

Add

Delete

Modify

Rename

Modify the entry attributesThe attributes listed in the operation are alteredin the entry whose DN is provided.Attribute operations are:

- Add attribute-value pair

- Remove attribute-pair

- Delete attribute

- Replace current value

Victoriano Giralt Introduction to LDAP

Page 83: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Updating the directorythe usual operations, with a twist

All update operations require the DN of the entryand are atomic, i.e. searches get the whole old or new one

Add

Delete

Modify

Rename

Modify the entry’s DNThis operation changes the entry’s DNA copy of the original entry is first created

- rename: delete original, new in same branch

- move: delete original, new in other branch

- copy: keep original

Victoriano Giralt Introduction to LDAP

Page 84: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Directory indexinggetting ready for finding entries

LDAP is read optimizedThus proper indexing is of capital importance

More indexes => faster searches

More indexes => slower updates

Which attributes to indexHow to index them, it depends on the schema

equalitypresencesubstring

Victoriano Giralt Introduction to LDAP

Page 85: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Directory indexinggetting ready for finding entries

LDAP is read optimizedThus proper indexing is of capital importance

More indexes => faster searches

More indexes => slower updates

Which attributes to indexHow to index them, it depends on the schema

equalitypresencesubstring

Victoriano Giralt Introduction to LDAP

Page 86: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Directory indexinggetting ready for finding entries

LDAP is read optimizedThus proper indexing is of capital importance

More indexes => faster searches

More indexes => slower updates

Which attributes to indexHow to index them, it depends on the schema

equalitypresencesubstring

Victoriano Giralt Introduction to LDAP

Page 87: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Directory indexinggetting ready for finding entries

LDAP is read optimizedThus proper indexing is of capital importance

More indexes => faster searches

More indexes => slower updates

Which attributes to index

How to index them, it depends on the schema

equalitypresencesubstring

Victoriano Giralt Introduction to LDAP

Page 88: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Directory indexinggetting ready for finding entries

LDAP is read optimizedThus proper indexing is of capital importance

More indexes => faster searches

More indexes => slower updates

Which attributes to indexHow to index them

, it depends on the schema

equalitypresencesubstring

Victoriano Giralt Introduction to LDAP

Page 89: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Directory indexinggetting ready for finding entries

LDAP is read optimizedThus proper indexing is of capital importance

More indexes => faster searches

More indexes => slower updates

Which attributes to indexHow to index them, it depends on the schema

equalitypresencesubstring

Victoriano Giralt Introduction to LDAP

Page 90: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Directory indexinggetting ready for finding entries

LDAP is read optimizedThus proper indexing is of capital importance

More indexes => faster searches

More indexes => slower updates

Which attributes to indexHow to index them, it depends on the schema

equality

presencesubstring

Victoriano Giralt Introduction to LDAP

Page 91: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Directory indexinggetting ready for finding entries

LDAP is read optimizedThus proper indexing is of capital importance

More indexes => faster searches

More indexes => slower updates

Which attributes to indexHow to index them, it depends on the schema

equalitypresence

substring

Victoriano Giralt Introduction to LDAP

Page 92: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

ConnectingSearchingData managementIndexing

Directory indexinggetting ready for finding entries

LDAP is read optimizedThus proper indexing is of capital importance

More indexes => faster searches

More indexes => slower updates

Which attributes to indexHow to index them, it depends on the schema

equalitypresencesubstring

Victoriano Giralt Introduction to LDAP

Page 93: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Access Control ListsControlling Access to entries and attributes

LDAP offers a very fine grained control onwho can access what

Anonymous or bound sessions

Requested attributes

Search, read or write

Attribute values

Complex search filters

Originating IP address

Victoriano Giralt Introduction to LDAP

Page 94: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Access Control ListsControlling Access to entries and attributes

LDAP offers a very fine grained control onwho can access what

Anonymous or bound sessions

Requested attributes

Search, read or write

Attribute values

Complex search filters

Originating IP address

Victoriano Giralt Introduction to LDAP

Page 95: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Access Control ListsControlling Access to entries and attributes

LDAP offers a very fine grained control onwho can access what

Anonymous or bound sessions

Requested attributes

Search, read or write

Attribute values

Complex search filters

Originating IP address

Victoriano Giralt Introduction to LDAP

Page 96: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Access Control ListsControlling Access to entries and attributes

LDAP offers a very fine grained control onwho can access what

Anonymous or bound sessions

Requested attributes

Search, read or write

Attribute values

Complex search filters

Originating IP address

Victoriano Giralt Introduction to LDAP

Page 97: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Access Control ListsControlling Access to entries and attributes

LDAP offers a very fine grained control onwho can access what

Anonymous or bound sessions

Requested attributes

Search, read or write

Attribute values

Complex search filters

Originating IP address

Victoriano Giralt Introduction to LDAP

Page 98: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Access Control ListsControlling Access to entries and attributes

LDAP offers a very fine grained control onwho can access what

Anonymous or bound sessions

Requested attributes

Search, read or write

Attribute values

Complex search filters

Originating IP address

Victoriano Giralt Introduction to LDAP

Page 99: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Access Control ListsControlling Access to entries and attributes

LDAP offers a very fine grained control onwho can access what

Anonymous or bound sessions

Requested attributes

Search, read or write

Attribute values

Complex search filters

Originating IP address

Victoriano Giralt Introduction to LDAP

Page 100: Introduction to LDAP · University of Málaga, Spain Chisin¸au, Replublic of Moldova˘ May, 15th 2007 Victoriano Giralt Introduction to LDAP. Definitions Characteristics Back ends

DefinitionsCharacteristics

Back endsDirectory operations

SecurityReferences

Some URLs

Wikipedia http://en.wikipedia.org/wiki/Ldap

OpenLDAP http://www.openldap.org/

Fedora DS http://directory.fedoraproject.org/

RFCs http://www.rfc-editor.org/rfcsearch.htmlsearch for LDAP

Victoriano Giralt Introduction to LDAP