Skip to content

Commit

Permalink
Merge pull request #3647 from esl/eldap-fix
Browse files Browse the repository at this point in the history
Remove custom eldap.hrl
  • Loading branch information
Premwoik authored May 13, 2022
2 parents adf8001 + f39a1c9 commit 74bf246
Show file tree
Hide file tree
Showing 7 changed files with 4 additions and 52 deletions.
41 changes: 0 additions & 41 deletions include/eldap.hrl

This file was deleted.

2 changes: 1 addition & 1 deletion src/auth/ejabberd_auth_ldap.erl
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@
-ignore_xref([start_link/1]).

-include("mongoose_config_spec.hrl").
-include("eldap.hrl").
-include_lib("eldap/include/eldap.hrl").

-record(state,
{host_type :: mongooseim:host_type(),
Expand Down
3 changes: 1 addition & 2 deletions src/eldap_pool.erl
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@
%% API
-export([bind/3, search/2, delete/2, add/3, modify_passwd/3]).
-import(eldap_utils, [maybe_b2list/1]).
-include("mongoose.hrl").
-include("eldap.hrl").
-include_lib("eldap/include/eldap.hrl").

%%====================================================================
%% API
Expand Down
3 changes: 0 additions & 3 deletions src/eldap_utils.erl
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,6 @@

-ignore_xref([decode_octet_string/3, generate_subfilter/1, make_filter/2, uids_domain_subst/2]).

-include("mongoose.hrl").
-include("eldap.hrl").

-type dn() :: binary().
-type deref() :: neverDerefAliases | derefInSearching
| derefFindingBaseObj | derefAlways.
Expand Down
4 changes: 1 addition & 3 deletions src/mod_shared_roster_ldap.erl
Original file line number Diff line number Diff line change
Expand Up @@ -46,12 +46,10 @@
-ignore_xref([config_change/4, get_jid_info/4, get_subscription_lists/2, get_user_roster/2,
in_subscription/5, out_subscription/4, process_item/2, start_link/2]).

-include("mongoose.hrl").
-include("jlib.hrl").
-include("mod_roster.hrl").
-include("mongoose_config_spec.hrl").

-include("eldap.hrl").
-include_lib("eldap/include/eldap.hrl").

-define(CACHE_SIZE, 1000).

Expand Down
1 change: 0 additions & 1 deletion src/mongoose_ldap_worker.erl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@
code_change/3]).

-include("mongoose.hrl").
-include("eldap.hrl").

-type state() :: #{handle := none | eldap:handle(),
servers := [string()],
Expand Down
2 changes: 1 addition & 1 deletion src/vcard/mod_vcard_ldap.erl
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
default_search_fields/0,
default_search_reported/0]).

-include("eldap.hrl").
-include_lib("eldap/include/eldap.hrl").
-include("mod_vcard.hrl").
-include("jlib.hrl").

Expand Down

0 comments on commit 74bf246

Please sign in to comment.