Commit Graph

610 Commits

Author SHA1 Message Date
Jean-Sébastien Pédron 7ed4e1318c Merge branch 'stable' 2017-10-13 15:05:01 +02:00
Jean-Sébastien Pédron bd453c8d7a Update rabbitmq-components.mk 2017-10-13 14:33:04 +02:00
Jean-Sébastien Pédron aa9f1a63a8 Update rabbitmq-components.mk 2017-10-13 14:12:56 +02:00
Jean-Sébastien Pédron 6a0ea2dc02 Update rabbitmq-components.mk 2017-10-13 12:15:40 +02:00
Michael Klishin d9d8f0baf5 Update rabbitmq-components.mk 2017-09-13 17:54:06 -04:00
Michael Klishin 130c80efd2 Update rabbitmq-components.mk 2017-09-13 17:45:24 -04:00
Michael Klishin c45c9084df Update rabbitmq-components.mk 2017-09-12 19:52:59 -04:00
Michael Klishin a606758cd2 Update rabbitmq-components.mk 2017-09-12 12:41:45 -04:00
Daniil Fedotov f993cffae3 Merge branch 'stable' 2017-08-30 19:20:16 +01:00
Daniil Fedotov a78eab92e1 Update erlang.mk 2017-08-30 18:46:43 +01:00
Michael Klishin ff059a6d35 Erlang/OTP 19.2 is now the minimum supported version.
Part of rabbitmq/rabbitmq-server#1305.

[#149563549]
2017-07-26 19:02:38 +03:00
Michael Klishin cd71951c27 Update rabbitmq-components.mk 2017-07-26 03:48:16 +03:00
Michael Klishin 5464a06e19 Update rabbitmq-components.mk 2017-07-26 02:27:00 +03:00
Arnaud Cogoluègnes 344aba30d5 Handle map when in template arguments
An Erlang map is turned into several arguments. E.g.
{variable_map, #{username => guest, vhost = some-vhost}} is converted
into 2 arguments: variable_map.username=guest and variable_map.vhost=some-vhost.

Fixes #71
2017-06-30 16:38:50 +02:00
Michael Klishin 58178bf8ec Update rabbitmq-components.mk 2017-06-12 20:12:48 +03:00
Michael Klishin 7447d8325d Update rabbitmq-components.mk 2017-06-12 18:35:34 +03:00
Michael Klishin 89518b1f02 Merge branch 'stable' 2017-06-02 18:09:34 +03:00
Michael Klishin 190796dfd0 Update rabbitmq-components.mk 2017-06-02 17:51:22 +03:00
Michael Klishin dbe766dfab Update rabbitmq-components.mk 2017-06-02 00:43:17 +03:00
Michael Klishin 1885f4469f Update rabbitmq-components.mk 2017-06-01 18:01:29 +03:00
Jean-Sébastien Pédron 37d4790125 Merge branch 'stable' 2017-05-16 18:01:08 +02:00
Jean-Sébastien Pédron 8a20cc579a Makefile: Load the new `rabbitmq-early-plugin.mk` early-stage plugin
See the corresponding commit in rabbitmq-common for an explanation.

[#144697185]
2017-05-16 17:28:55 +02:00
Jean-Sébastien Pédron 8893f05399 Update erlang.mk 2017-05-16 17:28:49 +02:00
Michael Klishin f20f4c0193 Merge branch 'stable' 2017-05-10 21:54:53 +03:00
William Tan e8a79c06bd Add option to enable anonymous authentication
This will allow the user to enable the anon_auth flag in eldap in order
to be able to do a dn lookup by using anonymous authentication instead
of using a dedicated bind user.
2017-05-10 17:05:01 +00:00
Daniil Fedotov 6f487f5f5b Replace dicts with maps for internal structures 2017-04-24 13:49:07 +01:00
Michael Klishin 32d566f362 Merge branch 'stable' 2017-04-22 01:10:06 +02:00
Michael Klishin 6bfa455084 Compile in non-test environment
Otherwise we are getting an unused function warning that's treated
as an error.
2017-04-22 01:05:34 +02:00
Michael Klishin aa9a2a40aa Remove a debug trace 2017-04-22 01:04:04 +02:00
kjnilsson 4f4ff6c13e Fix badmatch exception when purging connections
The exception stops timed out connections from
reconnecting successfully.

[#144015233]
2017-04-20 14:12:24 +01:00
Jean-Sébastien Pédron f2515a6594 Merge branch 'stable' 2017-04-19 12:41:25 +02:00
Jean-Sébastien Pédron 03efafa318 Update erlang.mk 2017-04-19 12:00:27 +02:00
Michael Klishin 2d0afdcf8e Merge branch 'stable' 2017-04-02 21:55:36 +03:00
Michael Klishin 33d51d0a8d (c) year 2017-04-02 21:47:12 +03:00
Michael Klishin 4ce8acf5a2 Ignore test/config_schema_SUITE_data/schema/ 2017-03-20 19:11:04 +03:00
Daniil Fedotov cff8652d32 Config schema test for plugin
Part of [#141481501]
Moved from rabbitmq-server
2017-03-17 10:59:03 +00:00
Michael Klishin 627d472cb8 Default LDAP server port should be 389
See https://github.com/rabbitmq/rabbitmq-auth-backend-ldap/issues/63#issuecomment-284680951.

It was changed to 3890 in 2461f04795
by mistake. We don't need to do that since the test suite reconfigures
the plugin to use 3890 anyway.

Fixes #64.
2017-03-10 15:45:33 +03:00
Michael Klishin 27d3ca81a9 Default LDAP server port should be 389
See https://github.com/rabbitmq/rabbitmq-auth-backend-ldap/issues/63#issuecomment-284680951.

It was changed to 3890 in 2461f04795
by mistake. We don't need to do that since the test suite reconfigures
the plugin to use 3890 anyway.

Fixes #64.
2017-03-07 13:53:49 +03:00
Jean-Sébastien Pédron 07a50e7dcf system_SUITE: Use os:getenv/1 instead of os:getenv/2
Only the former is available on Erlang R16B03. We handle the fallback to
a default value manually.

[#140575489]
2017-02-27 17:45:18 +01:00
Michael Klishin f3c75f6b2e Revert "Wording"
This reverts commit 1a554a3530.

Given that we use operation verbs (e.g. bind or evaluate) in log
messages, it makes certain sense to use the same wording
in error type atoms, even if it's imperfect English.
2017-02-20 15:03:53 +03:00
Michael Klishin 1a554a3530 Wording 2017-02-20 14:49:51 +03:00
Daniil Fedotov aa4088a118 Hide LDAP error from clients
LDAP errors are logged to LDAP log,
so we can replace errors with generic messages like
`ldap_connect_error` to be reported to clients.
2017-02-20 11:11:56 +00:00
Michael Klishin 26933af449 Mention auth_backend_cache 2017-02-16 16:08:43 +03:00
Michael Klishin 45083bc69f Update rabbitmq-components.mk 2017-02-11 23:29:20 +03:00
Michael Klishin 472c3b094f Update rabbitmq-components.mk 2017-02-10 11:16:20 +03:00
Michael Klishin 19059563f8 Update rabbitmq-components.mk 2017-02-10 03:06:13 +03:00
Daniil Fedotov f34c76f80f Use auth_ldap for configuration prefix 2017-02-09 10:40:49 +00:00
Daniil Fedotov fe214a0503 Shorter prefix for LDAP plugin conf keys 2017-02-08 18:13:14 +00:00
Michael Klishin 2712ee9768 merge branch 'stable' 2017-02-08 16:52:46 +03:00
Michael Klishin abf7a27a29 Update rabbitmq-components.mk 2017-02-08 16:38:10 +03:00
Michael Klishin b7f906e11f merge branch 'stable' 2017-02-06 19:49:49 +03:00
Michael Klishin de83ccd1ed Update rabbitmq-components.mk 2017-02-06 19:23:48 +03:00
Michael Klishin 1284d3d662 Merge pull request #58 from rabbitmq/rabbitmq-server-1085
Add tests for topic authorisation consumption
2017-02-06 01:22:27 +03:00
Jean-Sébastien Pédron 7155eb0293 Update rabbitmq-components.mk 2017-02-02 17:16:51 +01:00
Arnaud Cogoluègnes 38f2f3b1d8 Merge branch 'master' into rabbitmq-server-1085 2017-01-31 17:30:18 +01:00
Michael Klishin 003c7921de merge branch 'stable' 2017-01-31 18:17:55 +03:00
Michael Klishin f4f1f2ab29 Update rabbitmq-components.mk 2017-01-31 18:06:22 +03:00
Arnaud Cogoluègnes 590c738639 Add tests for topic authorisation consumption
Part of rabbitmq/rabbitmq-server#1085
2017-01-20 13:37:51 +01:00
Arnaud Cogoluègnes 7d28a27966 Merge branch 'stable'
Conflicts:
	test/system_SUITE.erl
2017-01-13 13:29:10 +01:00
Arnaud Cogoluègnes 65fa7d6c74 Handle plain string cases in match query
Fixes #56
2017-01-13 10:04:20 +01:00
Michael Klishin 71643a8aab Merge branch 'master' into rabbitmq-server-505 2017-01-12 12:58:24 +03:00
Arnaud Cogoluègnes b7c2fe7f24 Do not always match bidirectionnaly
Fixes #56
2017-01-12 10:39:20 +01:00
Arnaud Cogoluègnes ac0a3fb65a Merge branch 'stable' 2017-01-10 11:06:26 +01:00
Arnaud Cogoluègnes fad730f714 Add default value for idle_timeout option
References #7
2017-01-10 11:05:01 +01:00
Michael Klishin d77496c9e2 Formatting 2017-01-03 15:17:52 +08:00
Arnaud Cogoluègnes aa1bf987c8 Implement check_topic_access callback
References rabbitmq/rabbitmq-server#505
2016-12-29 08:55:58 +01:00
Arnaud Cogoluègnes c087a5419e Merge branch 'master' into rabbitmq-server-505 2016-12-27 17:25:55 +01:00
Arnaud Cogoluègnes b035ef104d Use ^$ instead of '' in permission regex
'' is now failing (after removal of rabbit_control_main).
2016-12-27 17:24:00 +01:00
Arnaud Cogoluègnes a256f447a0 Merge branch 'master' into rabbitmq-server-505 2016-12-27 17:07:36 +01:00
Arnaud Cogoluègnes f13e6ac834 Destructure resource kind in function head 2016-12-26 15:32:15 +01:00
Arnaud Cogoluègnes ea72800353 Support topic authorisation
Add all the resource options in the candidate variables for string substitutions.
This includes the routing key when publishing to an exchange topic. Let pass
when there is no match in the for clause for a topic resource (for backward
compatibility). This a best effort as some queries could fail when publishing
to a topic exchange, but we cannot know whether it's an omission of
the topic case in the query or the query actually blocks the topic.

Part of rabbitmq/rabbitmq-server#505
2016-12-26 11:28:29 +01:00
Daniil Fedotov 9edf1bed08 Support the new cli in tests 2016-12-23 12:17:00 +00:00
kjnilsson 7dfca741df Merge branch 'stable' of github.com:rabbitmq/rabbitmq-auth-backend-ldap 2016-12-15 12:28:13 +00:00
kjnilsson d05c53f2a0 merge from stable 2016-12-14 20:03:34 +00:00
Jean-Sébastien Pédron da24ab1d4e Travis CI: Import changes from rabbitmq-auth-backend-amqp 2016-12-12 12:46:11 +01:00
Jean-Sébastien Pédron f137c94063 Merge branch 'stable' 2016-12-09 19:18:29 +01:00
Jean-Sébastien Pédron 3288717ed4 Update rabbitmq-components.mk 2016-12-08 19:14:43 +01:00
Jean-Sébastien Pédron d566096a9c Travis CI: Use Ubuntu Trusty image to have access to Elixir
Also, required `sudo` so a VM is used instead of a container. This makes
the test much longer, but allows us to install non-whitelisted packages
such as xsltproc.
2016-12-08 17:17:03 +01:00
Jean-Sébastien Pédron dde4b0daca Merge branch 'stable' 2016-12-07 15:33:04 +01:00
Jean-Sébastien Pédron 1f1496aecb Update rabbitmq-components.mk 2016-12-07 14:51:53 +01:00
Jean-Sébastien Pédron 0856702916 Makefile: Add eldap to LOCAL_DEPS
[#130992027]
2016-12-06 15:37:33 +01:00
Jean-Sébastien Pédron 4c50cf1722 Makefile: Forgot PROJECT_MOD in previous commit
[#130992027]
2016-12-06 15:36:06 +01:00
Jean-Sébastien Pédron 636fb21b40 Move from .app.src to Makefile variables
This is the recommended way with Erlang.mk.

By default, the version is inherited from rabbitmq-server-release when
the source archive is created, or computed from git-describe(1) (see
`rabbitmq-components.mk`). One can override the version from the command
line by setting the `PROJECT_VERSION` variable.

[#130992027]
2016-12-06 15:32:08 +01:00
Daniil Fedotov 219ad71c81 Idle connection expiry tests 2016-12-01 18:03:46 +00:00
Daniil Fedotov 600c1b476d Configure no timeout as infinity 2016-12-01 15:04:13 +00:00
Daniil Fedotov 881a5b3783 Close idle connections after timeout 2016-12-01 13:38:24 +00:00
Michael Klishin 150409d29b Merge branch 'stable' 2016-11-29 21:13:14 +03:00
Michael Klishin 8120594c0b Update rabbitmq-components.mk 2016-11-29 20:59:25 +03:00
Jean-Sébastien Pédron be1cbd798a Merge branch 'stable' 2016-11-25 10:55:46 +01:00
Jean-Sébastien Pédron c3e97babac Update rabbitmq-components.mk 2016-11-25 10:50:53 +01:00
Jean-Sébastien Pédron 5a3bf2a3db Merge branch 'stable' 2016-11-25 10:29:07 +01:00
Jean-Sébastien Pédron dde943c73e Update rabbitmq-components.mk 2016-11-25 10:08:14 +01:00
Jean-Sébastien Pédron 12ef39bdb3 Merge branch 'stable' 2016-11-24 10:08:29 +01:00
Jean-Sébastien Pédron d77725ee9c Add rabbitmq_ct_client_helpers to TEST_DEPS 2016-11-24 10:06:09 +01:00
Jean-Sébastien Pédron 6384657b33 Merge branch 'stable' 2016-11-23 18:15:13 +01:00
Jean-Sébastien Pédron 82892db049 Update rabbitmq-components.mk 2016-11-23 18:05:59 +01:00
Gerhard Lazu 70374990f5 Merge branch 'stable' 2016-11-22 16:30:56 +00:00
Gerhard Lazu dbd7ed8c46 Update erlang.mk 2016-11-22 16:18:11 +00:00
Gerhard Lazu 1505f19ac5 Update rabbitmq-components.mk 2016-11-22 16:16:28 +00:00
Jean-Sébastien Pédron f7e7395a60 Update erlang.mk 2016-11-14 11:53:57 +01:00
Jean-Sébastien Pédron 43ce0879d2 Update rabbitmq-components.mk 2016-11-10 16:56:28 +01:00
Jean-Sébastien Pédron 46722b0ebc Merge branch 'stable' 2016-09-23 14:48:56 +02:00
Jean-Sébastien Pédron 58ad81342d Update rabbitmq-components.mk 2016-09-23 11:23:02 +02:00
Jean-Sébastien Pédron 89a0a0da64 Update erlang.mk 2016-09-22 17:56:08 +02:00
Jean-Sébastien Pédron 9c1bfc0f4e rabbitmq_auth_backend_ldap.app: Depend on rabbit_common 2016-09-19 13:07:12 +02:00
Jean-Sébastien Pédron 40f0f233ce Makefile: Explicitely list all DEPS
Sync rabbitmq-components.mk with rabbitmq-common to remove automatic
DEPS handling.

[#130086871]
2016-09-19 13:06:50 +02:00
Jean-Sébastien Pédron 12f32d0412 Update erlang.mk 2016-09-19 13:06:15 +02:00
Jean-Sébastien Pédron 72092cb572 Merge branch 'stable' 2016-09-15 16:38:37 +02:00
Jean-Sébastien Pédron 10e39c1e68 Update rabbitmq-components.mk 2016-09-15 15:45:51 +02:00
Jean-Sébastien Pédron 1b1568c5b2 Merge branch 'stable' 2016-09-02 15:55:29 +02:00
Jean-Sébastien Pédron ab8126dbbd Update rabbitmq-components.mk 2016-09-02 13:22:24 +02:00
Jean-Sébastien Pédron eeb232fee0 Makefile: amqp_client is not a runtime DEPS 2016-09-02 12:20:49 +02:00
Jean-Sébastien Pédron f7ea52ec1e Makefile: No need to filter out rabbitmq_test from TEST_DEPS anymore
[#127356157]
2016-09-02 12:17:33 +02:00
Jean-Sébastien Pédron 1769ba19ec Update rabbitmq-components.mk 2016-09-02 12:03:29 +02:00
kjnilsson c9127d1c67 merge branch 'stable' 2016-07-28 15:52:18 +01:00
Jean-Sébastien Pédron 7b8b27a4c6 Travis CI: Import changes from rabbitmq-shovel 2016-07-28 16:50:20 +02:00
kjnilsson 416035cc74 configure openldap backend
allow ldap port to be overridden by environment
2016-07-28 15:28:35 +01:00
Michael Klishin 2cbda23bb1 Update rabbitmq-components.mk 2016-07-14 15:44:09 +03:00
Michael Klishin 9fb9b6c85c Update rabbitmq-components.mk 2016-07-14 15:37:28 +03:00
Michael Klishin 7028a6428e Update rabbitmq-components.mk 2016-07-14 13:38:07 +03:00
Michael Klishin cf6d197b8b Update rabbitmq-components.mk 2016-07-14 13:19:57 +03:00
Michael Klishin 24e6ef512d Merge branch 'stable' 2016-06-30 14:33:32 +03:00
kjnilsson 9331760d9e Treat noSuchObject responses as 'false` during 'or' and 'and' clause evaluations 2016-06-30 11:06:18 +01:00
Michael Klishin 98937bc12e Merge branch 'stable' 2016-06-29 14:05:56 +03:00
Michael Klishin 538f4dd740 ldap_seed => rabbit_ldap_seed 2016-06-29 13:54:35 +03:00
Michael Klishin 6b73e28d04 Make sure to run apt-get update first 2016-06-29 13:30:11 +03:00
kjnilsson 4e6963baf5 setup openldap as part of vagrant provisioning
seed openldap as part of the test run
2016-06-29 10:33:25 +01:00
kjnilsson 2461f04795 move to common test 2016-06-29 10:18:46 +01:00
Michael Klishin a5aa0b91d1 Merge branch 'stable' 2016-06-01 02:03:03 +03:00
Michael Klishin bfd41670cb Modernize README 2016-06-01 02:02:53 +03:00
Michael Klishin 3592c61bd6 Merge branch 'stable' 2016-05-29 23:32:13 +03:00
Michael Klishin 5307b1f9df Update rabbitmq-components.mk 2016-05-29 23:21:53 +03:00
Michael Klishin a228a637f5 Update CONTRIBUTING.md, add CODE_OF_CONDUCT.md 2016-05-28 09:52:56 -07:00
Michael Klishin fdaa316343 Update CONTRIBUTING.md, add CODE_OF_CONDUCT.md 2016-05-28 14:22:49 +03:00
Michael Klishin b7d213835a Merge branch 'stable' 2016-05-22 22:13:33 +03:00
Michael Klishin 412d3a11c4 onelevel => single_level; compile from scratch 2016-05-22 21:42:55 +03:00
Michael Klishin f2a92bf029 Merge branch 'stable' into rabbitmq-auth-backend-ldap-3 2016-05-22 21:20:30 +03:00
kjnilsson f9aa6675de Merge branch 'stable' 2016-05-18 13:22:06 +01:00
Karl Nilsson be4d376e1b Update rabbitmq-components.mk 2016-05-18 12:47:59 +01:00
Michael Klishin b8cb65238d Merge pull request #44 from rabbitmq/rabbitmq-server-546
Use erlang 18.3 only in travis
2016-05-17 12:03:54 +03:00
Michael Klishin 5088e89065 Update rabbitmq-components.mk 2016-05-17 11:17:51 +03:00
Michael Klishin de6df97ed2 Update rabbitmq-components.mk 2016-05-17 10:16:07 +03:00
Daniil Fedotov 6c8e911a2e Make search scope for nested groups configurable 2016-05-12 15:50:22 +01:00
Daniil Fedotov a0f0f5f6e7 Testing and refactoring 2016-05-12 13:53:54 +01:00
Daniil Fedotov 9dbbd38494 Recursive search for parent groups 2016-05-12 11:09:09 +01:00
Daniil Fedotov 940d1c526d Use erlang 18.3 only in travis 2016-05-12 10:58:25 +01:00
Daniil Fedotov 377dd00730 Merge branch 'stable' 2016-05-11 15:07:45 +01:00
Daniil Fedotov 396e55dfdc Line feeds after connection logs 2016-05-11 15:07:24 +01:00
Michael Klishin 39ab33c438 Merge branch 'stable' 2016-05-03 15:23:19 +03:00
Michael Klishin 53f50a5448 Test against 18.1 through 18.3, too
This issue is version-specific.
2016-05-03 15:10:24 +03:00
Michael Klishin 9da1237841 Wording 2016-05-03 14:26:37 +03:00
Daniil Fedotov 61aef2f452 Log LDAP connection error with rabbit_log:warning 2016-05-03 12:14:48 +01:00
Michael Klishin 36b9a4d761 Wording 2016-05-03 14:03:25 +03:00
Daniil Fedotov 6ad5f20a50 Workaround for closing already closed ldap connection 2016-05-03 11:43:22 +01:00
Michael Klishin aa56abbcaf Merge branch 'stable' 2016-04-29 12:19:13 -05:00
Michael Klishin 9d27275180 Merge pull request #39 from rabbitmq/rabbitmq-auth-backend-ldap-35
Bumps up default LDAP connection worker pool size to 64.
2016-04-29 11:02:36 -05:00
Daniil Fedotov a8ad2f5b4c Merge branch 'stable' 2016-04-29 15:39:40 +01:00
Ayanda Dube 2733f84235 Ignore scrubbing operations for 'false' log level. 2016-04-29 13:13:48 +01:00
Ayanda Dube d9f66b31c4 Extends scrubbing of bind request credentials to be
carried out on all log levels, except 'network_unsafe'.
2016-04-29 12:18:28 +01:00
Ayanda Dube 15d27896e5 Bumps up default connection worker pool size from 10, to 64. 2016-04-29 10:59:45 +01:00
Ayanda Dube cea5a1b89e Adds logging test for 'network_unsafe' log option. 2016-04-28 17:43:42 +01:00
Ayanda Dube 37711e839e Introduces and adds handling of 'network_unsafe' log type
option.
2016-04-28 17:43:42 +01:00
Ayanda Dube fd71d92db2 Introduces logging tests, and tests for scrubbing
bind request credentials in network traffic logs.
2016-04-28 17:43:42 +01:00
Ayanda Dube 24ca70c7d6 Adds functionality to scrub credentials in LDAP network
traffic logs, for bind requests.
2016-04-28 17:43:42 +01:00
Jean-Sébastien Pédron 24da853084 Merge branch 'stable' 2016-04-28 15:53:35 +02:00
Ayanda Dube 0331b9f98a Updates tag check tests to accept test environment
variables as parameters.
2016-04-27 17:27:23 +01:00
Daniil Fedotov c308460e15 Stub for broker_version_requirements 2016-04-22 14:42:18 +01:00
Daniil Fedotov 231d9ecea2 Merge branch 'stable' 2016-04-22 13:41:11 +01:00
Ayanda Dube b43f2d1d54 Adds tag checks/tests for variable tag queries.
Ref: #13
2016-04-21 17:39:06 +01:00
Ayanda Dube 6638a19261 Adds tests for AMQP direct connections.
Adds tests for variable tag_queries, for direct connections only.

Ref: #13.
2016-04-20 12:27:55 +01:00
Ayanda Dube 826a2493b1 Adds handling of VHost substitution for tag_queries.
Ref: #13.
2016-04-20 12:27:55 +01:00
Daniil Fedotov 8406c0cf77 Merge branch 'stable' into rabbitmq-auth-backend-ldap-15 2016-04-20 11:04:55 +01:00
Joseph Yiasemides f60fc8beea Test tag attribution with more suitable fixtures
These make testing against different backend configurations (for
access control) easier to read.
2016-04-19 13:30:45 +00:00
Joseph Yiasemides deaabf9990 DO NOT MERGE: Make tag query tests more like integration/system tests 2016-04-19 07:05:47 +00:00
Ayanda Dube 7e3e4fb4eb Cosmetics 2016-04-18 14:23:00 +01:00
Ayanda Dube 1ce53182f0 Updates multi atrributes formatting to use string:join/2.
Updates is_multi_attr_member/2 to use a short-circuit expression.

Ref: #16.
2016-04-18 14:23:00 +01:00
Ayanda Dube 95b9fe8711 Adds success and failure tests for handling multiple attributes,
using the 'memberOf' attribute.

Adds filter lists per 'login' case.

Cosmetics.

Ref: #16.
2016-04-18 14:23:00 +01:00
Ayanda Dube 15b692ed3c Updates LDAP 'match' query to carry out a bidirectional match, in
case the REQuery returned multiple attributes, i.e. RE strings.

Adds a format_multi_attr/3 match all clause.

Ref: #16.
2016-04-18 14:23:00 +01:00
Ayanda Dube 233ac0a712 Adds posix test user accounts, 'Carol' and 'Peter'.
Adds test user 'Peter' to all test groups.

Ref: #16.
2016-04-18 14:23:00 +01:00
Ayanda Dube d42a89235b Adds 'staff' LDAP testing group.
Ref: #16.
2016-04-18 14:23:00 +01:00
Ayanda Dube 8911fbf049 Adds 'memberOf' attribute overlay configuration.
Ref: #16.
2016-04-18 14:23:00 +01:00
Ayanda Dube cdef94e5ac Adds handling of multiple attribute values, and
multiple LDAP entries for the 'attribute' query.

Ref: #16
2016-04-18 14:23:00 +01:00
Joseph Yiasemides 45a5ff0311 Test tag attribution by configuring from within the test-suite
Put the necessary configuration in the test itself, testing a more
complex assortment of tag queries, rather than in the configuration
file. Introduce another user into the LDAP server for this
test. Revert the `management` tag query, in the configuration file, to
a trivial constant query.
2016-04-14 14:20:48 +00:00
Michael Klishin 4d276c440f Merge branch 'stable' 2016-03-29 16:09:08 +03:00
Joseph Yiasemides b19915b617 Discard error tuples in the result of a tag query
A single `{error, ...}` meant that a user wouldn't have any tags
attributed to them. Their authorization would fail entirely if any one
of the tag queries failed with an error tuple.
2016-03-29 11:08:05 +00:00
Joseph Yiasemides d1de42b792 Test a less trivial pattern for tagged queries
As things stand, rather than a boolean value, this (slightly more
complex) query will return an error tuple. Consequently, NO tags are
attributed to the user by the LDAP plugin, even those tags that have
NOTHING to do with the tag in question.
2016-03-29 10:18:45 +00:00
Michael Klishin bc6baed9b0 Mention how to run the test suite multiple times 2016-03-26 05:32:22 -07:00
Michael Klishin 04660b050f Update README-tests.md 2016-03-26 05:32:22 -07:00
Michael Klishin e7ad5e6485 Merge branch 'stable' into rabbitmq-auth-backend-ldap-24 2016-03-26 05:27:52 -07:00
Joseph Yiasemides 2a1fc7d46f Use common placeholder names instead of former of current team members 2016-03-25 11:07:14 +00:00
Michael Klishin 212494360f Update rabbitmq-components.mk 2016-03-25 11:07:14 +00:00
Michael Klishin e65a0e5fbf Merge pull request #27 from rabbitmq/rabbitmq-server-550
Cuttlefish schema
2016-03-24 00:29:17 +03:00
Michael Klishin 33e9ae8b05 Update rabbitmq-components.mk 2016-03-23 17:13:38 +03:00
Michael Klishin 4a13ccdeb5 Use full module name in configuration schema
"ldap" works well but that's not the case for, say, the http
backend and we need to keep things consistent.
2016-03-23 09:38:02 +03:00
Joseph Yiasemides 929f3f30ee Test the tags that should be recognised for a user
We were only testing for the absence of tags configured with the LDAP
plugin.
2016-03-18 14:52:03 +00:00
Joseph Yiasemides a3749adf44 Delete duplicate entry in the test-suite configuration
There were two entries for the same parameter in the configuration
file. It was natural to base assumptions for the test-suite on the
second entry which was more visible. But the first entry was retrieved
from the application's environment so someone could easily make wrong
assumptions.
2016-03-18 14:29:34 +00:00
Joseph Yiasemides 58ca92a4ae Test that non-existent credentials fail to authenticate a client 2016-03-10 08:20:24 +00:00
Joseph Yiasemides 4ee2746430 Test with consistent use of macro substitution for username
Make it clear that credentials are not the subjects under test in
these negative cases by using the same macro that is used elsewhere.
2016-03-10 07:41:45 +00:00
Daniil Fedotov 8e9df51d44 More config options in sysctl format 2016-03-04 11:55:19 +00:00
Daniil Fedotov 67d434a6de 'none' option for dn_lookup config 2016-03-02 18:14:01 +00:00
Daniil Fedotov 988a914688 none option for ldap_servers 2016-02-26 14:43:13 +00:00
Daniil Fedotov e770563510 cuttlefish schema 2016-02-19 11:29:32 +00:00
Michael Klishin 0c4ccb56fc Update README-tests 2016-02-02 15:42:25 -08:00
Michael Klishin 1cd6607e58 Move README files to Markdown 2016-02-02 15:42:11 -08:00
Michael Klishin 31496fb888 Update README-tests 2016-02-02 15:38:27 -08:00
Michael Klishin 48f4be6926 Move README files to Markdown 2016-02-02 15:37:35 -08:00
Michael Klishin 83c22ce905 Update (c) info 2016-01-01 12:59:16 +03:00
Pierre Fenoll c53720ab1e .gitignore: make absolute paths relative 2015-12-28 18:03:15 +03:00
Jean-Sébastien Pédron 9bb54c4775 Update erlang.mk 2015-12-18 20:33:39 +01:00
Jean-Sébastien Pédron dddcdcb9bf Sync with upstream build.config 2015-12-18 20:33:03 +01:00
Jean-Sébastien Pédron d31e55fc99 Update rabbitmq-components.mk 2015-12-18 19:08:07 +01:00
Michael Klishin a7bf6cd593 Update rabbitmq-components.mk 2015-12-18 19:48:07 +03:00
Jean-Sébastien Pédron 6626bcd88b Add Travis CI configuration 2015-12-14 12:57:10 +01:00
Jean-Sébastien Pédron fad9ce5aec Update rabbitmq-components.mk 2015-12-03 15:38:47 +01:00
Jean-Sébastien Pédron 8753c21b7c Update rabbitmq-components.mk 2015-12-01 18:36:20 +01:00
Jean-Sébastien Pédron 89cf1e5748 Update rabbitmq-components.mk 2015-12-01 16:17:18 +01:00
Jean-Sébastien Pédron aba7c19cfb Update rabbitmq-components.mk 2015-11-30 09:14:47 +01:00
Jean-Sébastien Pédron d29c364690 Update rabbitmq-components.mk 2015-11-26 08:54:10 +01:00
Jean-Sébastien Pédron af864f08ad Update rabbitmq-components.mk 2015-11-26 08:41:22 +01:00
Jean-Sébastien Pédron 2af42062d3 Update erlang.mk 2015-11-25 10:35:51 +01:00
Jean-Sébastien Pédron d09b2e3ed6 Update rabbitmq-components.mk 2015-11-25 10:35:22 +01:00
Jean-Sébastien Pédron 470bcc355c Update rabbitmq-components.mk 2015-11-20 10:52:04 +01:00
Jean-Sébastien Pédron 92401cba50 Update erlang.mk 2015-11-19 14:31:39 +01:00
Jean-Sébastien Pédron 30a5d24e7f Update erlang.mk 2015-11-18 19:14:22 +01:00
Jean-Sébastien Pédron a7a75c7731 Update erlang.mk 2015-11-18 17:41:58 +01:00
Jean-Sébastien Pédron 7527c8d1d2 Update erlang.mk 2015-11-10 13:12:08 +01:00
Jean-Sébastien Pédron 39b987bea5 Update rabbitmq-components.mk 2015-11-10 13:11:16 +01:00
Jean-Sébastien Pédron 98d7766641 Update rabbitmq-components.mk 2015-11-05 20:51:33 +00:00
Jean-Sébastien Pédron d002a73b01 Update rabbitmq-components.mk 2015-11-03 15:12:28 +01:00
Jean-Sébastien Pédron 3ec8b05660 Update rabbitmq-components.mk 2015-11-02 10:20:49 +01:00
Jean-Sébastien Pédron 8b4d125f65 Update rabbitmq-components.mk 2015-10-30 17:32:54 +01:00
Jean-Sébastien Pédron ba57acb5cf Update erlang.mk 2015-10-28 11:15:47 +01:00
Jean-Sébastien Pédron 32a507d80f Update rabbitmq-components.mk 2015-10-28 11:10:35 +01:00
Jean-Sébastien Pédron ac11dde66f DEPS: Remove rabbit 2015-10-26 18:11:03 +01:00
Jean-Sébastien Pédron b05a40c688 Update erlang.mk 2015-10-26 15:33:13 +01:00
Jean-Sébastien Pédron 40bc43bbe1 Update rabbitmq-components.mk 2015-10-26 11:15:25 +01:00
Jean-Sébastien Pédron 3efad1a278 Update rabbitmq-components.mk 2015-10-26 10:21:14 +01:00
Jean-Sébastien Pédron 1750635d75 Makefile: `test` is an alias to `tests` 2015-10-26 10:17:06 +01:00
Jean-Sébastien Pédron 7900ac239b Adapt .travis.yml to erlang.mk 2015-10-23 20:03:29 +02:00
Jean-Sébastien Pédron a13efd30be Update erlang.mk's build.config 2015-10-23 19:38:43 +02:00
Jean-Sébastien Pédron c54d3ffad0 Update erlang.mk 2015-10-23 18:32:31 +02:00
Jean-Sébastien Pédron 5a81560072 Update rabbitmq-components.mk 2015-10-23 16:05:40 +02:00
Jean-Sébastien Pédron ed81902131 Update erlang.mk 2015-10-22 18:34:11 +02:00
Jean-Sébastien Pédron e87f01e549 Update rabbitmq-components.mk 2015-10-19 17:35:43 +02:00
Jean-Sébastien Pédron 35da776c3f Update erlang.mk 2015-10-19 17:28:08 +02:00
Jean-Sébastien Pédron 35a4fc9ef0 Update rabbitmq-components.mk 2015-10-19 17:28:08 +02:00
Jean-Sébastien Pédron 8a454c5452 Initial move to erlang.mk 2015-10-19 17:28:08 +02:00
Michael Klishin 12fece211b Merge branch 'stable' 2015-10-05 22:25:56 +03:00
Michael Klishin dcec40cf31 Port .travis.yml from master 2015-10-05 22:24:58 +03:00
Michael Klishin 504d0dec93 Tweaks for travis build 2015-10-05 22:12:02 +03:00