1-ifndef( _ELDAP_HRL ).
2-define( _ELDAP_HRL , 1 ).
3
4%%%
5%%% Search input parameters
6%%%
7-record(eldap_search, {
8	  base = [],             % Baseobject
9	  filter = [],           % Search conditions
10	  size_limit = 0,        % Setting default size limit to 0 makes it unlimited
11	  scope=wholeSubtree,    % Search scope
12	  deref=derefAlways,     % Dereference
13	  attributes = [],       % Attributes to be returned
14	  types_only = false,    % Return types+values or types
15	  timeout = 0            % Timelimit for search
16	 }).
17
18%%%
19%%% Returned search result
20%%%
21-record(eldap_search_result, {
22	  entries = [],          % List of #eldap_entry{} records
23	  referrals = []         % List of referrals
24	  }).
25
26%%%
27%%% LDAP entry
28%%%
29-record(eldap_entry, {
30	  object_name = "",      % The DN for the entry
31	  attributes = []        % List of {Attribute, Value} pairs
32	 }).
33
34-endif.
35