]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Add dictionary for LDAP sync internal protocol (#4432)
authorNick Porter <nick@portercomputing.co.uk>
Thu, 24 Mar 2022 15:13:26 +0000 (15:13 +0000)
committerGitHub <noreply@github.com>
Thu, 24 Mar 2022 15:13:26 +0000 (09:13 -0600)
share/dictionary/README.md
share/dictionary/ldap/dictionary [new file with mode: 0644]
share/dictionary/ldap/dictionary.freeradius.internal [new file with mode: 0644]

index 5c884950738428b1fbfd72c97fd020af70a949ac..6bcc1af2db469837a1941e28bda2a7c78a799e01 100644 (file)
@@ -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 (file)
index 0000000..73b2832
--- /dev/null
@@ -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 (file)
index 0000000..a212a30
--- /dev/null
@@ -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
+