The FreeRADIUS server
$Id: 15bac2a4c627c01d1aa2047687b3418955ac7f00 $
|
Go to the source code of this file.
Functions | |
int | active_directory_sync_search_entry (sync_state_t *sync, LDAPMessage *msg, UNUSED LDAPControl **ctrls) |
Handle a LDAP_RES_SEARCH_ENTRY (SearchResultEntry) response. More... | |
int | active_directory_sync_state_init (fr_ldap_connection_t *conn, size_t sync_no, proto_ldap_sync_t const *inst, UNUSED uint8_t const *cookie) |
Allocate a sync state structure and issue the search. More... | |
int active_directory_sync_search_entry | ( | sync_state_t * | sync, |
LDAPMessage * | msg, | ||
UNUSED LDAPControl ** | ctrls | ||
) |
Handle a LDAP_RES_SEARCH_ENTRY (SearchResultEntry) response.
This version is specific to Active Directory, which does things its own way.
In response to a search request containing the Server Notification Control, Active Directory will initially return nothing.
Then as entries matching the query are changed, SearchResultEntry messages will be returned for the matching entries. There is no indication as to whether the change is an addition or a modification.
In order to be notified about deleted objects, the Recycle Bin optional feature must be enabled and the search must have a base DN which includes the Deleted Objects container, then, an attribute isDeleted will indicate the state of the entry.
[in] | sync | message was associated with. |
[in] | msg | containing an entry to process. |
[in] | ctrls | unused LDAP controls |
Definition at line 171 of file active_directory.c.
int active_directory_sync_state_init | ( | fr_ldap_connection_t * | conn, |
size_t | sync_no, | ||
proto_ldap_sync_t const * | inst, | ||
UNUSED uint8_t const * | cookie | ||
) |
Allocate a sync state structure and issue the search.
Active Directory uses its own control to mark persistent searches. In addition we add the control to request the return of deleted objects which allows searches specifically on the Deleted Objects container.
Neither of these controls take values.
[in] | conn | Connection to issue the search request on. |
[in] | sync_no | number of the sync in the array of configs. |
[in] | inst | instance of ldap_sync this query relates to. |
[in] | cookie | unused for Active Directory |
Definition at line 54 of file active_directory.c.