Skip to content

Commit a17afe8

Browse files
committed
feat: add syncrepl (rfc-4533) consumer feature go-ldap#422
1 parent 7778a1c commit a17afe8

18 files changed

+1298
-4
lines changed

client.go

+1
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,5 @@ type Client interface {
3636
SearchAsync(ctx context.Context, searchRequest *SearchRequest, bufferSize int) Response
3737
SearchWithPaging(searchRequest *SearchRequest, pagingSize uint32) (*SearchResult, error)
3838
DirSync(searchRequest *SearchRequest, flags, maxAttrCount int64, cookie []byte) (*SearchResult, error)
39+
Syncrepl(ctx context.Context, searchRequest *SearchRequest, bufferSize int, mode ControlSyncRequestMode, cookie []byte) Response
3940
}

control.go

+4
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,10 @@ var ControlTypeMap = map[string]string{
5151
ControlTypeMicrosoftShowDeleted: "Show Deleted Objects - Microsoft",
5252
ControlTypeMicrosoftServerLinkTTL: "Return TTL-DNs for link values with associated expiry times - Microsoft",
5353
ControlTypeDirSync: "DirSync",
54+
ControlTypeSyncRequest: "Sync Request",
55+
ControlTypeSyncState: "Sync State",
56+
ControlTypeSyncDone: "Sync Done",
57+
ControlTypeSyncInfo: "Sync Info",
5458
}
5559

5660
// Control defines an interface controls provide to encode and describe themselves

0 commit comments

Comments
 (0)