From: Nick Porter Date: Thu, 24 Mar 2022 15:13:26 +0000 (+0000) Subject: Add dictionary for LDAP sync internal protocol (#4432) X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d992dcd17825d4efef8422f986e7b5fc52d69188;p=thirdparty%2Ffreeradius-server.git Add dictionary for LDAP sync internal protocol (#4432) --- diff --git a/share/dictionary/README.md b/share/dictionary/README.md index 5c884950738..6bcc1af2db4 100644 --- a/share/dictionary/README.md +++ b/share/dictionary/README.md @@ -15,6 +15,7 @@ PROTOCOL ARP 8 PROTOCOL TFTP 9 PROTOCOL TLS 10 PROTOCOL DNS 11 +PROTOCOL LDAP 12 PROTOCOL EAP-SIM 101 PROTOCOL EAP-AKA 102 PROTOCOL EAP-FAST 103 diff --git a/share/dictionary/ldap/dictionary b/share/dictionary/ldap/dictionary new file mode 100644 index 00000000000..73b2832e938 --- /dev/null +++ b/share/dictionary/ldap/dictionary @@ -0,0 +1,16 @@ +# -*- text -*- +# Copyright (C) 2022 The FreeRADIUS Server project and contributors +# This work is licensed under CC-BY version 4.0 https://creativecommons.org/licenses/by/4.0 +# Version $Id$ +# +# The FreeRADIUS dictionary for LDAP Sync +# +# Version: $Id$ +# + +PROTOCOL LDAP 12 +BEGIN-PROTOCOL LDAP + +$INCLUDE dictionary.freeradius.internal + +END-PROTOCOL LDAP diff --git a/share/dictionary/ldap/dictionary.freeradius.internal b/share/dictionary/ldap/dictionary.freeradius.internal new file mode 100644 index 00000000000..a212a306863 --- /dev/null +++ b/share/dictionary/ldap/dictionary.freeradius.internal @@ -0,0 +1,43 @@ +# -*- text -*- +# Copyright (C) 2022 The FreeRADIUS Server project and contributors +# This work is licensed under CC-BY version 4.0 https://creativecommons.org/licenses/by/4.0 +# Version $Id$ +# +# Non Protocol Attributes used by FreeRADIUS +# +# $Id$ +# + +# +# All of these attributes are internal. +# +FLAGS internal + +ATTRIBUTE Packet-Type 1000 integer + +VALUE Packet-Type Present 1 +VALUE Packet-Type Add 2 +VALUE Packet-Type Modify 3 +VALUE Packet-Type Delete 4 +VALUE Packet-Type Response 5 +VALUE Packet-Type Cookie-Load 6 +VALUE Packet-Type Cookie-Load-Response 7 +VALUE Packet-Type Cookie-Store 8 +VALUE Packet-Type Cookie-Store-Response 9 +VALUE Packet-Type Do-Not-Respond 255 + +ATTRIBUTE Sync-Packet-ID 1001 integer + +ATTRIBUTE LDAP-Sync 1193 tlv +BEGIN-TLV LDAP-Sync +ATTRIBUTE Cookie 1 octets +ATTRIBUTE DN 2 string +ATTRIBUTE Filter 3 string +ATTRIBUTE Attr 4 string +ATTRIBUTE Scope 5 integer +ATTRIBUTE Entry-State 6 integer +ATTRIBUTE Entry-DN 7 string +ATTRIBUTE Entry-UUID 8 octets +ATTRIBUTE Original-DN 9 string +END-TLV LDAP-Sync +