-
Notifications
You must be signed in to change notification settings - Fork 209
/
types.go
31 lines (25 loc) · 1.13 KB
/
types.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
package ldapquery
type SerializeableLDAPQuery struct {
// The DN of the branch of the directory where all searches should start from
BaseDN string
// The (optional) scope of the search. Can be:
// base: only the base object,
// one: all object on the base level,
// sub: the entire subtree
// Defaults to the entire subtree if not set
Scope string
// The (optional) behavior of the search with regards to alisases. Can be:
// never: never dereference aliases,
// search: only dereference in searching,
// base: only dereference in finding the base object,
// always: always dereference
// Defaults to always dereferencing if not set
DerefAliases string
// TimeLimit holds the limit of time in seconds that any request to the server can remain outstanding
// before the wait for a response is given up. If this is 0, no client-side limit is imposed
TimeLimit int
// Filter is a valid LDAP search filter that retrieves all relevant entries from the LDAP server with the base DN
Filter string
// PageSize is the maximum preferred page size, measured in LDAP entries. A page size of 0 means no paging will be done.
PageSize int
}