aboutsummaryrefslogtreecommitdiffstats
path: root/lib/eldap/include
diff options
context:
space:
mode:
authorTorbjorn Tornkvist <[email protected]>2012-03-12 10:44:46 +0100
committerDan Gudmundsson <[email protected]>2012-03-20 15:12:02 +0100
commitd8dbf15de4fa1a08b9a05e7d8e08fdb025fe1dc3 (patch)
tree914a8bcef9cfe76a01ad2055ad73149dabdd1c10 /lib/eldap/include
parent725032aabda06c77934b461374b8657963f4ff1c (diff)
downloadotp-d8dbf15de4fa1a08b9a05e7d8e08fdb025fe1dc3.tar.gz
otp-d8dbf15de4fa1a08b9a05e7d8e08fdb025fe1dc3.tar.bz2
otp-d8dbf15de4fa1a08b9a05e7d8e08fdb025fe1dc3.zip
[eldap] Initial copy of Tobbe's eldap client
Copied with Torbjorns permission from https://github.com/etnt/eldap.git
Diffstat (limited to 'lib/eldap/include')
-rw-r--r--lib/eldap/include/eldap.hrl32
1 files changed, 32 insertions, 0 deletions
diff --git a/lib/eldap/include/eldap.hrl b/lib/eldap/include/eldap.hrl
new file mode 100644
index 0000000000..ee5ad2f0d3
--- /dev/null
+++ b/lib/eldap/include/eldap.hrl
@@ -0,0 +1,32 @@
+-ifndef( _ELDAP_HRL ).
+-define( _ELDAP_HRL , 1 ).
+
+%%%
+%%% Search input parameters
+%%%
+-record(eldap_search, {
+ base = [], % Baseobject
+ filter = [], % Search conditions
+ scope, % Search scope
+ attributes = [], % Attributes to be returned
+ types_only = false, % Return types+values or types
+ timeout = 0 % Timelimit for search
+ }).
+
+%%%
+%%% Returned search result
+%%%
+-record(eldap_search_result, {
+ entries = [], % List of #eldap_entry{} records
+ referrals = [] % List of referrals
+ }).
+
+%%%
+%%% LDAP entry
+%%%
+-record(eldap_entry, {
+ object_name = "", % The DN for the entry
+ attributes = [] % List of {Attribute, Value} pairs
+ }).
+
+-endif.