anchor.diff:  %%           Dn          = string()
   %%           RAttributes = list() of string()
   %% Descrip.: Turn a list of eldap module query results into our own
  -%%           result format.
  -%% Returns : Res = list() of {dn, Dn, attributes, Attributes}
  -%%           Dn         = string(), distinguished name
  -%%           Attributes = list() of string()
  +%%           result format (ldapres records).
  +%% Returns : Res = list() of ldapres record()
   %%--------------------------------------------------------------------
   get_ldapres(In) ->
       get_ldapres(In, []).
   
   get_ldapres([], Res) ->
  -    Res;
  +    lists:reverse(Res);
   get_ldapres([{eldap_entry, Dn, RAttributes} | T], Res) ->
  -    get_ldapres(T, lists:append(Res, [{dn, Dn, attributes, RAttributes}])).
  +    This = #ldapres{dn=Dn, attributes=RAttributes},
  +    get_ldapres(T, [This | Res]).
   
   %%--------------------------------------------------------------------
   %% Function: ldap_connect(Server)
  
positive.code: %% Returns : Result |
  %%           none   |
  %%           error
  %%           Result = list() {dn, Dn, attributes, Attributes} tuples
  %%           Dn = string(), distinguished name
  %%           Attributes = list() of {Attribute, Value} tuples
  %%--------------------------------------------------------------------
  ldapsearch(Server, Type, In, Attributes) when list(Server), list(Type), list(In), list(Attributes) ->
      logger:log(debug, "Directory: Extra debug: ldapsearch() Server ~p, Type ~p, In ~p, Attributes ~p",
  
negative.code: %%           Attributes = list() of string()
  %% Descrip.: Perform an LDAP search in a catch context, since we might
  %%           crash.
  %% Returns : list() of ldapres record() |
  %%           none                       |
  %%           error
  %%--------------------------------------------------------------------
  exec_ldapsearch_unsafe(LHandle, Type, In, Attributes) when is_record(LHandle, ldaphandle), is_list(Type),
  							   is_list(In), is_list(Attributes) ->
  