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