Skip to content

Commit 1fc76d7

Browse files
author
Vladimir Kotal
committed
move attr comments
1 parent d7630e3 commit 1fc76d7

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

plugins/src/main/java/opengrok/auth/plugin/LdapAttrPlugin.java

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -52,13 +52,6 @@ public class LdapAttrPlugin extends AbstractLdapPlugin {
5252

5353
private static final Logger LOGGER = Logger.getLogger(LdapAttrPlugin.class.getName());
5454

55-
static final String ATTR_PARAM = "attribute"; // LDAP attribute name to check
56-
static final String FILE_PARAM = "file";
57-
static final String INSTANCE_PARAM = "instance";
58-
59-
private static final String SESSION_ALLOWED_PREFIX = "opengrok-ldap-attr-plugin-allowed";
60-
private String sessionAllowed = SESSION_ALLOWED_PREFIX;
61-
6255
/**
6356
* List of configuration names.
6457
* <ul>
@@ -67,6 +60,13 @@ public class LdapAttrPlugin extends AbstractLdapPlugin {
6760
* <li><code>instance</code> is number of <code>LdapUserInstance</code> plugin to use (optional)</li>
6861
* </ul>
6962
*/
63+
static final String ATTR_PARAM = "attribute";
64+
static final String FILE_PARAM = "file";
65+
static final String INSTANCE_PARAM = "instance";
66+
67+
private static final String SESSION_ALLOWED_PREFIX = "opengrok-ldap-attr-plugin-allowed";
68+
private String sessionAllowed = SESSION_ALLOWED_PREFIX;
69+
7070
private String ldapAttr;
7171
private final Set<String> whitelist = new TreeSet<>();
7272
private Integer ldapUserInstance;

0 commit comments

Comments
 (0)