From a249c1f72113f7e950ad8cdd590d95c911ac5988 Mon Sep 17 00:00:00 2001 From: Peter Lund Date: Wed, 21 Mar 2012 16:39:34 +0100 Subject: [eldap] Add dereference options in search And fix search reply when no object is found --- lib/eldap/test/eldap_basic_SUITE.erl | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) (limited to 'lib/eldap/test') 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"])], -- cgit v1.2.3