Commit 35d4965
gplazma: fix banfile plugin
Motivation:
-----------
Issue #7947 reports
that banfile only bans user if there is only one 'ban foo:bar'
line is present (one line per alias). Further investigation
showed that actually only last line is taken.
Modification:
-------------
Modified BanFilePlugin to use List<String> containing elements already
suitable for Pincipal coversion instead of Map<String, String> that
naturally only kept the last instance of ban statement.
Result:
-------
Banfile plugin works as expected.
Ticket: #7947
Acked-by: Paul Millar
Target: trunk
Request: 11.1, 11.0, 10.2
Require-book: no
Require-notes: yes1 parent 1367d50 commit 35d4965
File tree
2 files changed
+17
-11
lines changed- modules/gplazma2-banfile/src
- main/java/org/dcache/gplazma/plugins
- test/java/org/dcache/gplazma/plugins
2 files changed
+17
-11
lines changedLines changed: 4 additions & 10 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
93 | 94 | | |
94 | 95 | | |
95 | 96 | | |
96 | | - | |
97 | | - | |
| 97 | + | |
| 98 | + | |
98 | 99 | | |
99 | 100 | | |
100 | 101 | | |
| |||
129 | 130 | | |
130 | 131 | | |
131 | 132 | | |
132 | | - | |
| 133 | + | |
133 | 134 | | |
134 | 135 | | |
135 | 136 | | |
| |||
140 | 141 | | |
141 | 142 | | |
142 | 143 | | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | 144 | | |
151 | 145 | | |
152 | 146 | | |
| |||
Lines changed: 13 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
98 | 98 | | |
99 | 99 | | |
100 | 100 | | |
101 | | - | |
| 101 | + | |
102 | 102 | | |
103 | 103 | | |
104 | 104 | | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
105 | 117 | | |
106 | 118 | | |
107 | 119 | | |
| |||
0 commit comments