The FreeRADIUS server  $Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
Macros | Enumerations
sync.h File Reference

Common definitions required by both network and worker for LDAP sync. More...

#include <freeradius-devel/protocol/ldap/freeradius.internal.h>
+ Include dependency graph for sync.h:

Go to the source code of this file.

Macros

#define FR_LDAP_SYNC_PACKET_CODE_VALID(_code)   (((_code) > 0) && ((_code) < FR_LDAP_SYNC_CODE_MAX))
 

Enumerations

enum  fr_ldap_sync_packet_code_t {
  FR_LDAP_SYNC_CODE_UNDEFINED = 0 ,
  FR_LDAP_SYNC_CODE_PRESENT = FR_PACKET_TYPE_VALUE_PRESENT ,
  FR_LDAP_SYNC_CODE_ADD = FR_PACKET_TYPE_VALUE_ADD ,
  FR_LDAP_SYNC_CODE_MODIFY = FR_PACKET_TYPE_VALUE_MODIFY ,
  FR_LDAP_SYNC_CODE_DELETE = FR_PACKET_TYPE_VALUE_DELETE ,
  FR_LDAP_SYNC_CODE_ENTRY_RESPONSE = FR_PACKET_TYPE_VALUE_RESPONSE ,
  FR_LDAP_SYNC_CODE_COOKIE_LOAD = FR_PACKET_TYPE_VALUE_COOKIE_LOAD ,
  FR_LDAP_SYNC_CODE_COOKIE_LOAD_RESPONSE = FR_PACKET_TYPE_VALUE_COOKIE_LOAD_RESPONSE ,
  FR_LDAP_SYNC_CODE_COOKIE_LOAD_FAIL = FR_PACKET_TYPE_VALUE_COOKIE_LOAD_FAIL ,
  FR_LDAP_SYNC_CODE_COOKIE_STORE = FR_PACKET_TYPE_VALUE_COOKIE_STORE ,
  FR_LDAP_SYNC_CODE_COOKIE_STORE_RESPONSE = FR_PACKET_TYPE_VALUE_COOKIE_STORE_RESPONSE ,
  FR_LDAP_SYNC_CODE_MAX = FR_PACKET_TYPE_VALUE_COOKIE_STORE_RESPONSE + 1 ,
  FR_LDAP_SYNC_CODE_DO_NOT_RESPOND = 256
}
 Types of the internal packets for processing LDAP sync messages. More...
 

Detailed Description

Common definitions required by both network and worker for LDAP sync.

Id
e4e2327a548c5f87d13df73709c62642e38f7eaa

Definition in file sync.h.

Macro Definition Documentation

◆ FR_LDAP_SYNC_PACKET_CODE_VALID

#define FR_LDAP_SYNC_PACKET_CODE_VALID (   _code)    (((_code) > 0) && ((_code) < FR_LDAP_SYNC_CODE_MAX))

Definition at line 58 of file sync.h.

Enumeration Type Documentation

◆ fr_ldap_sync_packet_code_t

Types of the internal packets for processing LDAP sync messages.

Enumerator
FR_LDAP_SYNC_CODE_UNDEFINED 

Packet code has not been set.

FR_LDAP_SYNC_CODE_PRESENT 

LDAP server indicates a particular object is present and unchanged.

FR_LDAP_SYNC_CODE_ADD 

Object has been added to the LDAP directory.

FR_LDAP_SYNC_CODE_MODIFY 

Object has been modified.

FR_LDAP_SYNC_CODE_DELETE 

Object has been deleted.

FR_LDAP_SYNC_CODE_ENTRY_RESPONSE 

Response packet to present / add / modify / delete.

FR_LDAP_SYNC_CODE_COOKIE_LOAD 

Before the sync starts, request any previously stored cookie.

FR_LDAP_SYNC_CODE_COOKIE_LOAD_RESPONSE 

Response with the returned cookie.

FR_LDAP_SYNC_CODE_COOKIE_LOAD_FAIL 

Response when coolie load fails.

FR_LDAP_SYNC_CODE_COOKIE_STORE 

The server has sent a new cookie.

FR_LDAP_SYNC_CODE_COOKIE_STORE_RESPONSE 

Response to storing the new cookie.

FR_LDAP_SYNC_CODE_MAX 
FR_LDAP_SYNC_CODE_DO_NOT_RESPOND 

Special rcode to indicate we will not respond.

Definition at line 31 of file sync.h.