My LDAP server supports Anonymous Bind

The following command line works fine:
ldapsearch -h nfpsnc03.sabre.com -p 389 -b cn=Mapping,ou=HSSP,o=sabre.com objectclass=hssp-mapping hssp-hostname hssp-cluster

Filter=(objectclass=hssp-mapping)
hssp-hostname hssp-cluster get plugged in as attributes for display
Output is DN followed by hssp-hostname: value and hssp-cluster: value

I can't seem to get the JMeter script to execute the LDAP extended request similar to command line.
JMeter generates a Size error=4 on the LDAP server

JMeter Output:
1157395396551,140,LDAP Request,200,OK,Thread Group 1-1,text,true,,10,1,1,null,

Is my jmx file in error ?

Thanks for the help.... I feel like I am very close to getting this running

Smits, Dolf wrote:
Hi,

given the message about "no initial context", I'm wondering whether you start 
with a bind request?

as LDAP is a session based protocol, you need to start the session by sending a 
bind request. (when no user/password is given, this will lead to a anonymous 
bind).
after a bind, you can launch the search requests.
you end a session with a unbind request

Dolf

-----Oorspronkelijk bericht-----
Van: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Verzonden: ma 4-9-2006 17:06
Aan: JMeter Users List
Onderwerp: Re: Jmeter 2.2 - LDAP Extended Request - attributes
Size Limit on my LDAP server is unlimited
-----------------------------------------------
system properties is default
# Sample system.properties file
#
#
#java.net.preferIPv4Stack=false
#java.net.preferIPv6Addresses=false
#networkaddress.cache.ttl=-1
#networkaddress.cache.negative.ttl=10
---------------------------------------------------------------

1157381841910,0,LDAP Extended Request (ALPHA),800,javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial,Thread Group 1-1,text,false,,545,1,1,null, 1157381842601,0,hssp load tester,500,javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'cn=tnmapping,ou=hssp,o=sabre.com',Thread Group 1-1,,false,,0,1,1,null, 1157382036530,0,LDAP Extended Request (ALPHA),800,javax.naming.NoInitialContextException: Need to specify class name in environment or system property, or as an applet parameter, or in an application resource file: java.naming.factory.initial,Thread Group 1-1,text,false,,545,1,1,null, 1157382037041,0,hssp load tester,500,javax.naming.NameNotFoundException: [LDAP: error code 32 - No Such Object]; remaining name 'cn=tnmapping,ou=hssp,o=sabre.com',Thread Group 1-1,,false,,0,1,1,null,



Smits, Dolf wrote:
Hi,

The size attribute can limit the number of requests, but can never be
larger than the sizelimit that is implemented on the server.
E.g. If the sizelimit on the server is 100, and you specify a sizelimit
of 200, the server will enforce a sizelimit of 100.
If you specify a sizelimt of 50, the size limit will be 50.

The best solution is to adjust the searchfilter, so that less results
will be returned.

About the attributes, it should work :-(.
Can you try to limit the number of results by the searchfilter so no
size limit is hit and than rerun it again.
If it still fails, can you open a bugzilla report and attach the
testplan to it , so I can have a look at it.

Dolf

Dolf Smits Senior Consultant Identity Management Solutions 070 333 3654 070 333 2511 06 55844837 [EMAIL PROTECTED] Let op: Vrijdags heb ik ouderschapsverlof en wordt uw mail niet gelezen.
Deze e-mail is uitsluitend bedoeld voor kennisneming door de
geadresseerde(n), en mag niet aan anderen worden doorgestuurd of op
andere wijze ter kennis worden gebracht. Indien u niet de geadresseerde
bent, verzoek ik u om de afzender te waarschuwen en de e-mail direct te
verwijderen/vernietigen. De afzender wijst elke aansprakelijkheid voor
(de inhoud van) deze e-mail af.


-----Original Message-----
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: zondag 3 september 2006 17:13
To: JMeter Users List
Subject: Jmeter 2.2 - LDAP Extended Request - attributes

Can somebody tell me if it's possible to fetch back LDAP attributes
on a Search request?

I keep getting Size errors (LDAP error 4) on all my tests. - The Size input field seems to be ignored - I have multiple attributes separated by ";" but Directory log has attrs=ALL
        - ldapsearch on the command line works fine (Anonymous read
allowed)

Directory is SUN Directory 5.2. JMeter 2.2 is running on Windows XP Professional.

Thanks





--
Jay Biddle - CISSP
EDS: Infrastructure Specialist Senior
    Web Hosting - Security Team
Email: [EMAIL PROTECTED]
Desk:  303.642.1263
Cell:  303.319.0104
Pager: [EMAIL PROTECTED]

<jmeterTestPlan version="1.2" properties="1.8">
  <hashTree>
    <TestPlan guiclass="TestPlanGui" testclass="TestPlan" testname="Test Plan" 
enabled="true">
      <elementProp name="TestPlan.user_defined_variables" 
elementType="Arguments" guiclass="ArgumentsPanel" testclass="Arguments" 
testname="User Defined Variables" enabled="true">
        <collectionProp name="Arguments.arguments"/>
      </elementProp>
      <stringProp name="TestPlan.user_define_classpath"></stringProp>
      <boolProp name="TestPlan.serialize_threadgroups">false</boolProp>
      <boolProp name="TestPlan.functional_mode">false</boolProp>
      <stringProp name="TestPlan.comments"></stringProp>
    </TestPlan>
    <hashTree>
      <ThreadGroup guiclass="ThreadGroupGui" testclass="ThreadGroup" 
testname="Thread Group" enabled="true">
        <longProp name="ThreadGroup.start_time">1157056111000</longProp>
        <stringProp name="ThreadGroup.delay"></stringProp>
        <stringProp name="ThreadGroup.duration"></stringProp>
        <stringProp name="ThreadGroup.num_threads">1</stringProp>
        <boolProp name="ThreadGroup.scheduler">false</boolProp>
        <elementProp name="ThreadGroup.main_controller" 
elementType="LoopController" guiclass="LoopControlPanel" 
testclass="LoopController" testname="Loop Controller" enabled="true">
          <stringProp name="LoopController.loops">1</stringProp>
          <boolProp name="LoopController.continue_forever">false</boolProp>
        </elementProp>
        <longProp name="ThreadGroup.end_time">1157056111000</longProp>
        <stringProp name="ThreadGroup.on_sample_error">continue</stringProp>
        <stringProp name="ThreadGroup.ramp_time">1</stringProp>
      </ThreadGroup>
      <hashTree>
        <ConfigTestElement guiclass="LdapConfigGui" 
testclass="ConfigTestElement" testname="LDAP Request Defaults" enabled="true">
          <stringProp name="search"></stringProp>
          <stringProp name="rootdn"></stringProp>
          <stringProp name="servername">nfssnc03.sabre.com</stringProp>
          <stringProp name="port">389</stringProp>
          <stringProp name="test">search</stringProp>
          <stringProp name="searchfilter"></stringProp>
          <boolProp name="user_defined">false</boolProp>
        </ConfigTestElement>
        <hashTree/>
        <LoopController guiclass="LoopControlPanel" testclass="LoopController" 
testname="Loop Controller" enabled="true">
          <stringProp name="LoopController.loops">1</stringProp>
          <boolProp name="LoopController.continue_forever">true</boolProp>
        </LoopController>
        <hashTree>
          <LDAPExtSampler guiclass="LdapExtTestSamplerGui" 
testclass="LDAPExtSampler" testname="LDAP Extended Request (ALPHA)" 
enabled="true">
            <stringProp name="rootdn"></stringProp>
            <stringProp 
name="search">cn=Mapping,ou=HSSP,o=sabre.com</stringProp>
            <stringProp name="timelimit">0</stringProp>
            <stringProp name="deref_aliases">false</stringProp>
            <stringProp name="newdn"></stringProp>
            <stringProp name="countlimit">0</stringProp>
            <stringProp name="suser_pw"></stringProp>
            <stringProp name="port"></stringProp>
            <stringProp name="suser_dn"></stringProp>
            <stringProp name="user_dn"></stringProp>
            <stringProp 
name="attributes">hssp-hostname;hssp-cluster</stringProp>
            <stringProp name="user_pw"></stringProp>
            <stringProp name="return_object">false</stringProp>
            <stringProp name="servername"></stringProp>
            <stringProp name="scope">2</stringProp>
            <stringProp name="comparedn"></stringProp>
            <stringProp name="comparefilt"></stringProp>
            <stringProp name="modddn"></stringProp>
            <stringProp name="test">search</stringProp>
            <stringProp 
name="searchfilter">(objectclass=hssp-mapping)</stringProp>
          </LDAPExtSampler>
          <hashTree/>
          <LDAPSampler guiclass="LdapTestSamplerGui" testclass="LDAPSampler" 
testname="LDAP Request" enabled="true">
            <stringProp name="rootdn"></stringProp>
            <stringProp name="search">o=sabre.com</stringProp>
            <stringProp name="ConfigTestElement.username"></stringProp>
            <stringProp name="port">389</stringProp>
            <boolProp name="user_defined">true</boolProp>
            <stringProp name="servername">nfpsnc03.sabre.com</stringProp>
            <stringProp name="test">search</stringProp>
            <stringProp name="ConfigTestElement.password"></stringProp>
            <stringProp 
name="searchfilter">(objectClass=hssp-mapping)</stringProp>
          </LDAPSampler>
          <hashTree/>
        </hashTree>
        <ResultCollector guiclass="TableVisualizer" testclass="ResultCollector" 
testname="View Results in Table" enabled="true">
          <objProp>
            <value class="SampleSaveConfiguration">
              <time>true</time>
              <latency>true</latency>
              <timestamp>true</timestamp>
              <success>true</success>
              <label>true</label>
              <code>true</code>
              <message>true</message>
              <threadName>true</threadName>
              <dataType>true</dataType>
              <encoding>true</encoding>
              <assertions>true</assertions>
              <subresults>true</subresults>
              <responseData>true</responseData>
              <samplerData>true</samplerData>
              <xml>false</xml>
              <fieldNames>true</fieldNames>
              <responseHeaders>true</responseHeaders>
              <requestHeaders>true</requestHeaders>
              <responseDataOnError>false</responseDataOnError>
              
<saveAssertionResultsFailureMessage>true</saveAssertionResultsFailureMessage>
              <assertionsResultsToSave>0</assertionsResultsToSave>
              <bytes>true</bytes>
              <url>true</url>
              <fileName>true</fileName>
              <threadCounts>true</threadCounts>
            </value>
            <name>saveConfig</name>
          </objProp>
          <stringProp name="filename">C:\Program 
Files\apache\jakarta\jmeter\jakarta-jmeter-2.2\bin\output</stringProp>
          <boolProp name="ResultCollector.error_logging">false</boolProp>
        </ResultCollector>
        <hashTree/>
      </hashTree>
    </hashTree>
  </hashTree>
</jmeterTestPlan>

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to