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