File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
plugins/LdapPlugin/src/opengrok/auth/plugin Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -47,6 +47,7 @@ public class LdapUserPlugin extends AbstractLdapPlugin {
47
47
protected static final String OBJECT_CLASS = "objectclass" ;
48
48
49
49
private String objectClass ;
50
+ private Pattern usernameCnPattern = Pattern .compile ("(cn=[a-zA-Z_]+)" );
50
51
51
52
private boolean isAlphanumeric (String str ) {
52
53
for (int i = 0 ; i < str .length (); i ++) {
@@ -59,8 +60,6 @@ private boolean isAlphanumeric(String str) {
59
60
return true ;
60
61
}
61
62
62
- private Pattern usernameCnPattern = null ;
63
-
64
63
@ Override
65
64
public void load (Map <String , Object > parameters ) {
66
65
super .load (parameters );
@@ -75,8 +74,6 @@ public void load(Map<String, Object> parameters) {
75
74
"' contains non-alphanumeric characters" );
76
75
}
77
76
78
- usernameCnPattern = Pattern .compile ("(cn=[a-zA-Z_]+)" );
79
-
80
77
LOGGER .log (Level .FINE , "LdapUser plugin loaded with objectclass={0}" ,
81
78
objectClass );
82
79
}
You can’t perform that action at this time.
0 commit comments