LDAP: Difference between revisions

From Braindump
Jump to navigation Jump to search
No edit summary
 
(OSI)
Line 1: Line 1:
[[File:Osi-protocols.png|thumb]]
=== OSI Protocols ===
https://www.itu.int/itu-t/recommendations/rec.aspx?rec=X.500
X.500 1984 – 1994
http://sec.cs.kent.ac.uk/x500book/ by D W Chadwick (Weird and Wonderful, Paradise/Cosine)
ASN.1 Type Length Value
X.500 Directory Access Protocol
(famous for X.509v3)
=== IETF ===
RFC4510 Technical Specification Road Map
RFC4511 LDAP: Directory Information Models
RFC4512 The Protocol
RFC4513 Authentication Methods and Security Mechanisms
RFC4514 String Representation of Distinguished Names
RFC4515 String Representation of Search Filters
RFC4516 Uniform Resource Locator
RFC4517 Syntaxes and Matching Rules
RFC4518 Internationalized String Preparation
RFC4519 Schema for User Applications
RFC4524 COSINE LDAP/X.500 Schema
Kurt D Zeilenga
<nowiki>https://www.openldap.org/</nowiki>
https://www.zytrax.com/books/ldap/
https://www.zytrax.com/books/ldap/


https://ldapwiki.com/wiki/RootDSE
https://ldapwiki.com/wiki/RootDSE


Naming context
Schema, object tree
 
namingContext


RootDSE
RootDSE
objectClass=top
  ldapsearch -h hostname -b "" -s base "(objectclass=*)"
  ldapsearch -h hostname -b "" -s base "(objectclass=*)"


Line 14: Line 60:


autorid / rid => rfc2307 unix profile in ldap
autorid / rid => rfc2307 unix profile in ldap
LDAP Authentication
With the LDAP bind operation, or password hash comparison
Active Directory (Microsoft Schema)
Microsoft Windows 2000, (and subsequent Server 2003, 2008, 2012, 2016, 2019, 2022, 2025)
https://aka.ms/aaddev
[https://www.youtube.com/playlist?list=PLLasX02E8BPD5vC2XHS_oHaMVmaeHHPLy Azure AD Authentication Fundamentals]
nslookup -t srv _ldap._tcp.dc._msdcs.islief.com
nslookup _msdcs.islief.com
nltest /dclist:ISLIEF
Import-Module ActiveDirectory
(Get-ADDomainController -DomainName islief.com -Discover -NextClosestSite).HostName
gpresult /v

Revision as of 11:17, 15 January 2025

Osi-protocols.png

OSI Protocols

https://www.itu.int/itu-t/recommendations/rec.aspx?rec=X.500

X.500 1984 – 1994

http://sec.cs.kent.ac.uk/x500book/ by D W Chadwick (Weird and Wonderful, Paradise/Cosine)

ASN.1 Type Length Value

X.500 Directory Access Protocol

(famous for X.509v3)

IETF

RFC4510 Technical Specification Road Map

RFC4511 LDAP: Directory Information Models

RFC4512 The Protocol

RFC4513 Authentication Methods and Security Mechanisms

RFC4514 String Representation of Distinguished Names

RFC4515 String Representation of Search Filters

RFC4516 Uniform Resource Locator

RFC4517 Syntaxes and Matching Rules

RFC4518 Internationalized String Preparation

RFC4519 Schema for User Applications

RFC4524 COSINE LDAP/X.500 Schema

Kurt D Zeilenga

https://www.openldap.org/

https://www.zytrax.com/books/ldap/

https://ldapwiki.com/wiki/RootDSE

Schema, object tree

namingContext

RootDSE

objectClass=top

ldapsearch -h hostname -b "" -s base "(objectclass=*)"
ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=config
ldapmodify -Y EXTERNAL -H ldapi:/// -b cn=config -f loglevel.ldap
ldapmodify -Y EXTERNAL -H ldapi:/// -f loglevel.ldap
ldapsearch -Y EXTERNAL -H ldapi:/// -b cn=config olcLogLevel

autorid / rid => rfc2307 unix profile in ldap


LDAP Authentication

With the LDAP bind operation, or password hash comparison


Active Directory (Microsoft Schema)

Microsoft Windows 2000, (and subsequent Server 2003, 2008, 2012, 2016, 2019, 2022, 2025)

https://aka.ms/aaddev

Azure AD Authentication Fundamentals

nslookup -t srv _ldap._tcp.dc._msdcs.islief.com

nslookup _msdcs.islief.com

nltest /dclist:ISLIEF

Import-Module ActiveDirectory

(Get-ADDomainController -DomainName islief.com -Discover -NextClosestSite).HostName

gpresult /v