Parcourir la source

fix(ldap): fix newline error && correcting files header

firest il y a 2 ans
Parent
commit
b2f3ac9967

+ 1 - 1
apps/emqx_ldap/.gitignore

@@ -1,2 +1,2 @@
 src/emqx_ldap_filter_lexer.erl
 src/emqx_ldap_filter_lexer.erl
-src/emqx_ldap_filter_parser.erl
+src/emqx_ldap_filter_parser.erl

+ 1 - 0
apps/emqx_ldap/src/emqx_ldap.erl

@@ -1,6 +1,7 @@
 %%--------------------------------------------------------------------
 %%--------------------------------------------------------------------
 %% Copyright (c) 2023 EMQ Technologies Co., Ltd. All Rights Reserved.
 %% Copyright (c) 2023 EMQ Technologies Co., Ltd. All Rights Reserved.
 %%--------------------------------------------------------------------
 %%--------------------------------------------------------------------
+
 -module(emqx_ldap).
 -module(emqx_ldap).
 
 
 -include_lib("emqx_connector/include/emqx_connector.hrl").
 -include_lib("emqx_connector/include/emqx_connector.hrl").

+ 4 - 0
apps/emqx_ldap/src/emqx_ldap_filter_lexer.xrl

@@ -25,3 +25,7 @@ dn : {token, {dn, TokenLine}}.
 {Control} : {error, lists:flatten(io_lib:format("Unexpected Tokens:~ts", [TokenChars]))}.
 {Control} : {error, lists:flatten(io_lib:format("Unexpected Tokens:~ts", [TokenChars]))}.
 
 
 Erlang code.
 Erlang code.
+
+%%--------------------------------------------------------------------
+%% Copyright (c) 2022-2023 EMQ Technologies Co., Ltd. All Rights Reserved.
+%%--------------------------------------------------------------------

+ 4 - 0
apps/emqx_ldap/src/emqx_ldap_filter_parser.yrl

@@ -1,3 +1,7 @@
+Header "%%--------------------------------------------------------------------
+%% Copyright (c) 2022-2023 EMQ Technologies Co., Ltd. All Rights Reserved.
+%%--------------------------------------------------------------------".
+
 Nonterminals
 Nonterminals
 filter filtercomp filterlist item simple present substring initial any final extensible attr value type dnattrs matchingrule.
 filter filtercomp filterlist item simple present substring initial any final extensible attr value type dnattrs matchingrule.
 
 

+ 3 - 14
apps/emqx_ldap/test/emqx_ldap_SUITE.erl

@@ -1,17 +1,6 @@
-% %%--------------------------------------------------------------------
-% %% Copyright (c) 2020-2023 EMQ Technologies Co., Ltd. All Rights Reserved.
-% %%
-% %% Licensed under the Apache License, Version 2.0 (the "License");
-% %% you may not use this file except in compliance with the License.
-% %% You may obtain a copy of the License at
-% %% http://www.apache.org/licenses/LICENSE-2.0
-% %%
-% %% Unless required by applicable law or agreed to in writing, software
-% %% distributed under the License is distributed on an "AS IS" BASIS,
-% %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-% %% See the License for the specific language governing permissions and
-% %% limitations under the License.
-% %%--------------------------------------------------------------------
+%%--------------------------------------------------------------------
+%% Copyright (c) 2022-2023 EMQ Technologies Co., Ltd. All Rights Reserved.
+%%--------------------------------------------------------------------
 
 
 -module(emqx_ldap_SUITE).
 -module(emqx_ldap_SUITE).
 
 

+ 3 - 14
apps/emqx_ldap/test/emqx_ldap_filter_SUITE.erl

@@ -1,17 +1,6 @@
-% %%--------------------------------------------------------------------
-% %% Copyright (c) 2020-2023 EMQ Technologies Co., Ltd. All Rights Reserved.
-% %%
-% %% Licensed under the Apache License, Version 2.0 (the "License");
-% %% you may not use this file except in compliance with the License.
-% %% You may obtain a copy of the License at
-% %% http://www.apache.org/licenses/LICENSE-2.0
-% %%
-% %% Unless required by applicable law or agreed to in writing, software
-% %% distributed under the License is distributed on an "AS IS" BASIS,
-% %% WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
-% %% See the License for the specific language governing permissions and
-% %% limitations under the License.
-% %%--------------------------------------------------------------------
+%%--------------------------------------------------------------------
+%% Copyright (c) 2022-2023 EMQ Technologies Co., Ltd. All Rights Reserved.
+%%--------------------------------------------------------------------
 
 
 -module(emqx_ldap_filter_SUITE).
 -module(emqx_ldap_filter_SUITE).