10,038 views
287 likes
Server. Bind DN. Base DN. User filter. If you've ever filled in an LDAP settings page by copying a forum post and never touched it again, this video explains what those four boxes mean, how a directory is organized, and what really happens when an app logs you in with LDAP.
I've been running directories for about 30 years, everything from small businesses to worldwide organizations. This is identity and access management in plain English, with real demos and no vendor pitch.
CHAPTERS
0:00 Four empty boxes
0:40 Who I am
0:55 What a directory is (and why LDAP isn't one)
2:06 Where LDAP came from
3:16 The tree, and how to read a DN
4:42 What's inside an entry
5:33 The two operations: bind and search
6:45 Demo: a real search with ldapsearch
7:44 Demo: Apache Directory Studio
8:52 How an app logs you in, step by step
10:26 Where LDAP fits today
11:40 Three common mistakes
12:43 Summary, and what's next
THE SHORT VERSION
- A directory is a tree of entries. LDAP is the language for talking to it.
- Every entry has a distinguished name (DN). Read it right to left.
- An app logs you in in three steps: it binds as itself, searches for your entry, then binds again as you.
- The four boxes: Server is where the directory lives. Bind DN is the service account. Base DN is where to start looking. User filter is how to find the person.
- These days LDAP mostly sits in the back, behind an identity provider that speaks SAML or OIDC to your apps.
THREE MISTAKES TO AVOID
- Running LDAP without encryption. Use LDAPS on port 636, or StartTLS.
- Using the directory administrator as the app's bind account. Create a read-only service account.
- Setting the search base too wide. Point it at the container your users live in, not the top of the tree.
SHOWN IN THE DEMOS
- OpenLDAP running in Docker
- ldapsearch on the command line
- Apache Directory Studio (free, for Windows, Mac and Linux)
PREVIOUS VIDEO: SAML vs OpenID Connect, Explained in Plain English
https://youtu.be/XXEcY3dfFns
NEXT TIME: Why OAuth is not authentication.
What's the oldest system you've ever had to connect to LDAP? Tell me in the comments. I suspect some of the answers will be older than SAML.
Music: "Carefree" by Kevin MacLeod (incompetech.com)
Licensed under Creative Commons: By Attribution 4.0