1 | void setRootdn(String newRootdn) {↵ | | 1 | void setJNDIIntialContextFactory(String icf) {↵
|
2 | this.setProperty(ROOTDN, newRootdn);↵ | | 2 | setProperty(JNDI_INITIAL_CONTEXT_FAC, icf);↵
|
3 | }↵ | | 3 | }↵
|
|
4 | /**↵ | | 4 | /**↵
|
5 | * Gets the Rootdn attribute of the LDAPSampler object↵ | | 5 | * method returns the initial context factory for jndi initial context↵
|
6 | .↵ | | 6 | * lookup.↵
|
7 | * ↵ | | 7 | * ↵
|
8 | * @return the Rootdn value↵ | | 8 | * @return the initial context factory ↵
|
9 | */↵ | | 9 | */↵
|
10 | public String getRootdn() {↵ | | 10 | public String getJNDIInitialContextFactory() {↵
|
11 | return getPropertyAsString(ROOTDN);↵ | | 11 | return getPropertyAsString(JNDI_INITIAL_CONTEXT_FAC);↵
|
12 | }↵ | | 12 | }↵
|
|
13 | /**↵ | | 13 | /**↵
|
14 | * Sets the Test attribute of the LdapConfig object.↵ | | 14 | * set the ↵
|
15 | * ↵ | | |
|
16 | * @param newTest↵ | | |
|
17 | * the new test value(Add,Modify,Delete and search)↵ | | 15 | provider user for jndi↵
|
| | | 16 | * ↵
|
| | | 17 | * @param url the provider URL↵
|
18 | */↵ | | 18 | */↵
|
19 | public void setTest(String newTest) {↵ | | 19 | public void setProviderUrl(String url) {↵
|
20 | this.setProperty(TEST, newTest);↵ | | 20 | setProperty(PROVIDER_URL, url);↵
|
21 | } | | 21 | }
|