From 445647da64872f1728c7dc180542b693e7bf866e Mon Sep 17 00:00:00 2001 From: Hans Nilsson Date: Fri, 19 Feb 2016 16:08:30 +0100 Subject: eldap: referral resultCode --- lib/eldap/doc/src/eldap.xml | 97 +++++++++++++++++++++++++++++++++------------ 1 file changed, 72 insertions(+), 25 deletions(-) (limited to 'lib/eldap/doc') diff --git a/lib/eldap/doc/src/eldap.xml b/lib/eldap/doc/src/eldap.xml index 8f4479a730..70add6619d 100644 --- a/lib/eldap/doc/src/eldap.xml +++ b/lib/eldap/doc/src/eldap.xml @@ -4,7 +4,7 @@
- 20122013 + 20122016 Ericsson AB. All Rights Reserved. @@ -29,7 +29,7 @@ B
eldap - Eldap Functions + LDAP Client

This module provides a client api to the Lightweight Directory Access Protocol (LDAP).

@@ -40,20 +40,67 @@

The above publications can be found at IETF.

-

Types

-
-handle()    Connection handle
-attribute() {Type = string(), Values=[string()]}
-modify_op() See mod_add/2, mod_delete/2, mod_replace/2
-scope()     See baseObject/0, singleLevel/0, wholeSubtree/0
-dereference() See neverDerefAliases/0, derefInSearching/0, derefFindingBaseObj/0, derefAlways/0
-filter()    See present/1, substrings/2,
-                equalityMatch/2, greaterOrEqual/2, lessOrEqual/2,
-                approxMatch/2, extensibleMatch/2,
-                'and'/1, 'or'/1, 'not'/1.
-    
-

+ +
+ DATA TYPES +

Type definitions that are used more than once in this module: +

+ + handle() +

Connection handle

+ + attribute() = +

{Type = string(), Values=[string()]}

+ + modify_op() +

See + mod_add/2, + mod_delete/2, + mod_replace/2 +

+ + scope() +

See + baseObject/0, + singleLevel/0, + wholeSubtree/0 +

+ + dereference() +

See + neverDerefAliases/0, + derefInSearching/0, + derefFindingBaseObj/0, + derefAlways/0 +

+ + filter() +

See + present/1, + substrings/2, + equalityMatch/2, + greaterOrEqual/2, + lessOrEqual/2, + approxMatch/2, + extensibleMatch/2, + 'and'/1, + 'or'/1, + 'not'/1 +

+ + return_value() = +

ok | {ok, {referral,referrals()}} | {error,Error} +

+ + referrals() = +

[Address = string()] The contents of Address is server dependent. +

+ +
+
+ + open([Host]) -> {ok, Handle} | {error, Reason} @@ -92,14 +139,14 @@ filter() See present/1, substrings/2, - start_tls(Handle, Options) -> ok | {error,Error} + start_tls(Handle, Options) -> return_value() Upgrade a connection to TLS.

Same as start_tls(Handle, Options, infinity)

- start_tls(Handle, Options, Timeout) -> ok | {error,Error} + start_tls(Handle, Options, Timeout) -> return_value() Upgrade a connection to TLS. Handle = handle() @@ -128,7 +175,7 @@ filter() See present/1, substrings/2, - simple_bind(Handle, Dn, Password) -> ok | {error, Reason} + simple_bind(Handle, Dn, Password) -> return_value() Authenticate the connection. Handle = handle() @@ -140,7 +187,7 @@ filter() See present/1, substrings/2, - add(Handle, Dn, [Attribute]) -> ok | {error, Reason} + add(Handle, Dn, [Attribute]) -> return_value() Add an entry. Handle = handle() @@ -161,7 +208,7 @@ filter() See present/1, substrings/2, - delete(Handle, Dn) -> ok | {error, Reason} + delete(Handle, Dn) -> return_value() Delete an entry. Dn = string() @@ -203,7 +250,7 @@ filter() See present/1, substrings/2, - modify(Handle, Dn, [ModifyOp]) -> ok | {error, Reason} + modify(Handle, Dn, [ModifyOp]) -> return_value() Modify an entry. Dn = string() @@ -219,7 +266,7 @@ filter() See present/1, substrings/2, - modify_password(Handle, Dn, NewPasswd) -> ok | {ok, GenPasswd} | {error, Reason} + modify_password(Handle, Dn, NewPasswd) -> return_value() | {ok, GenPasswd} Modify the password of a user. Dn = string() @@ -230,7 +277,7 @@ filter() See present/1, substrings/2, - modify_password(Handle, Dn, NewPasswd, OldPasswd) -> ok | {ok, GenPasswd} | {error, Reason} + modify_password(Handle, Dn, NewPasswd, OldPasswd) -> return_value() | {ok, GenPasswd} Modify the password of a user. Dn = string() @@ -259,7 +306,7 @@ filter() See present/1, substrings/2, - modify_dn(Handle, Dn, NewRDN, DeleteOldRDN, NewSupDN) -> ok | {error, Reason} + modify_dn(Handle, Dn, NewRDN, DeleteOldRDN, NewSupDN) -> return_value() Modify the DN of an entry. Dn = string() @@ -279,7 +326,7 @@ filter() See present/1, substrings/2, - search(Handle, SearchOptions) -> {ok, #eldap_search_result{}} | {error, Reason} + search(Handle, SearchOptions) -> {ok, #eldap_search_result{}} | {ok, {referral,referrals()}} | {error, Reason} Search the Directory SearchOptions = #eldap_search{} | [SearchOption] -- cgit v1.2.3