diff options
author | Peter Lund <[email protected]> | 2012-03-21 16:39:34 +0100 |
---|---|---|
committer | Dan Gudmundsson <[email protected]> | 2012-03-22 10:48:59 +0100 |
commit | a249c1f72113f7e950ad8cdd590d95c911ac5988 (patch) | |
tree | e2f62146165b6f023c6e14ede3796292a439ce96 /lib/eldap/test | |
parent | a4cbcb1ecab9d6ac50488fb00c975c521870bfea (diff) | |
download | otp-a249c1f72113f7e950ad8cdd590d95c911ac5988.tar.gz otp-a249c1f72113f7e950ad8cdd590d95c911ac5988.tar.bz2 otp-a249c1f72113f7e950ad8cdd590d95c911ac5988.zip |
[eldap] Add dereference options in search
And fix search reply when no object is found
Diffstat (limited to 'lib/eldap/test')
-rw-r--r-- | lib/eldap/test/eldap_basic_SUITE.erl | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/lib/eldap/test/eldap_basic_SUITE.erl b/lib/eldap/test/eldap_basic_SUITE.erl index deb0776f74..c7e3052b29 100644 --- a/lib/eldap/test/eldap_basic_SUITE.erl +++ b/lib/eldap/test/eldap_basic_SUITE.erl @@ -105,12 +105,11 @@ api(Config) -> scope=eldap:singleLevel()}) end, {ok, #eldap_search_result{entries=[_]}} = All(BasePath), - {error, {searchResDone, _}} = All("cn=Bar,"++BasePath), + {error, noSuchObject} = All("cn=Bar,"++BasePath), - {error, strongerAuthRequired} - = eldap:add(H, "cn=Jonas Jonsson," ++ BasePath, - [{"objectclass", ["person"]}, - {"cn", ["Jonas Jonsson"]}, {"sn", ["Jonsson"]}]), + {error, _} = eldap:add(H, "cn=Jonas Jonsson," ++ BasePath, + [{"objectclass", ["person"]}, + {"cn", ["Jonas Jonsson"]}, {"sn", ["Jonsson"]}]), eldap:simple_bind(H, "cn=Manager,dc=ericsson,dc=se", "hejsan"), %% Add @@ -137,7 +136,6 @@ api(Config) -> F_NOT = eldap:'and'([eldap:present("objectclass"), eldap:'not'(eldap:present("ou"))]), {ok, #eldap_search_result{entries=[#eldap_entry{}, #eldap_entry{}]}} = Search(F_NOT), - %% MODIFY Mod = [eldap:mod_replace("telephoneNumber", ["555-12345"]), eldap:mod_add("description", ["Nice guy"])], |