Skip to content

Commit

Permalink
feat: add syncrepl (rfc-4533) consumer feature #422
Browse files Browse the repository at this point in the history
  • Loading branch information
t2y committed Jul 19, 2023
1 parent 7778a1c commit da18de8
Show file tree
Hide file tree
Showing 18 changed files with 1,292 additions and 2 deletions.
1 change: 1 addition & 0 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -36,4 +36,5 @@ type Client interface {
SearchAsync(ctx context.Context, searchRequest *SearchRequest, bufferSize int) Response
SearchWithPaging(searchRequest *SearchRequest, pagingSize uint32) (*SearchResult, error)
DirSync(searchRequest *SearchRequest, flags, maxAttrCount int64, cookie []byte) (*SearchResult, error)
Syncrepl(ctx context.Context, searchRequest *SearchRequest, bufferSize int, mode ControlSyncRequestMode, cookie []byte) Response
}
4 changes: 4 additions & 0 deletions control.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,10 @@ var ControlTypeMap = map[string]string{
ControlTypeMicrosoftShowDeleted: "Show Deleted Objects - Microsoft",
ControlTypeMicrosoftServerLinkTTL: "Return TTL-DNs for link values with associated expiry times - Microsoft",
ControlTypeDirSync: "DirSync",
ControlTypeSyncRequest: "Sync Request",
ControlTypeSyncState: "Sync State",
ControlTypeSyncDone: "Sync Done",
ControlTypeSyncInfo: "Sync Info",
}

// Control defines an interface controls provide to encode and describe themselves
Expand Down
Loading

0 comments on commit da18de8

Please sign in to comment.