| | |
| | | default: |
| | | final Random r = rng.get(); |
| | | final int p = r.nextInt(100); |
| | | useInvalidPassword = (p < invalidCredPercent); |
| | | useInvalidPassword = p < invalidCredPercent; |
| | | break; |
| | | } |
| | | |
| | |
| | | the first trailing argument is considered the filter, the other |
| | | as attributes.*/ |
| | | runner.filter = filterAndAttributeStrings.remove(0); |
| | | |
| | | // The rest are attributes |
| | | for (final String s : filterAndAttributeStrings) { |
| | | attributes.add(s); |
| | | } |
| | | attributes.addAll(filterAndAttributeStrings); |
| | | } |
| | | runner.attributes = attributes.toArray(new String[attributes.size()]); |
| | | runner.baseDN = baseDN.getValue(); |
| | |
| | | String.format(runner.baseDN, data); |
| | | } |
| | | } catch (final Exception ex1) { |
| | | errPrintln(LocalizableMessage.raw("Error formatting filter or base DN: " + ex1.toString())); |
| | | errPrintln(LocalizableMessage.raw("Error formatting filter or base DN: " + ex1)); |
| | | return ResultCode.CLIENT_SIDE_PARAM_ERROR.intValue(); |
| | | } |
| | | |