Bug 61141 - The option "Dereference aliases"&"Return object" doesn't work when test the LDAP extended request search
Summary: The option "Dereference aliases"&"Return object" doesn't work when test the L...
Status: NEEDINFO
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 3.2
Hardware: PC All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-06-01 14:54 UTC by daniel
Modified: 2017-07-20 20:37 UTC (History)
1 user (show)



Attachments
Add more info to the results of LdapExtSampler (869 bytes, patch)
2017-06-03 16:24 UTC, Felix Schumacher
Details | Diff
testcase for ldap (363.53 KB, application/x-rar)
2017-06-05 20:00 UTC, daniel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description daniel 2017-06-01 14:54:30 UTC
When i test the LDAP extended request search, the option "Dereference aliases"&"Return object" doesn't work, it means whether you choose "Dereference aliases" or not, the value for this option is "always", actually i want to test with the parameter as "never" when i did not choose this option, but it cannot be happen.
  I check the "help document" and there are two values for this option, true and false.The default value is false, but the value keep as "true" from my test result. Because of the security reason, i cannot send the snapshot to your guys, please test this in your side, thanks very much, wish your reply.


the description from Help:
--------------------------------------------------------------------------
Dereference aliases
If true, it will dereference aliases, if false, it will not follow them (default=false) 
--------------------------------------------------------------------------
Comment 1 daniel 2017-06-01 18:09:07 UTC
i forgot to put the OS version and Java version in the comment。
the OS version is windows7 64bit. 

Java version:
java version "1.8.0_51"
Java(TM) SE Runtime Environment (build 1.8.0_51-b16)
Java HotSpot(TM) Client VM (build 25.51-b03, mixed mode, sharing)

Jmeter version is 3.2.
Comment 2 Felix Schumacher 2017-06-03 16:24:41 UTC
Created attachment 35031 [details]
Add more info to the results of LdapExtSampler

I had a quick look at the code and didn't find anything obviously wrong. The attached patch will place more information in the sample results about the options "dereference alias" and "return object".

Can you try out the attached patch and see, if the options are set correctly on your samples?

Can you add a stripped down test (without any real credentials, hostnames, etc.) that would show your problem with a simple ldap tree?

Do you have any LdapExt config elements, that could have set your options?
Comment 3 daniel 2017-06-05 20:00:01 UTC
Created attachment 35033 [details]
testcase for ldap

Please check the attachment for this case, thanks.
Comment 4 daniel 2017-06-05 20:06:14 UTC
(In reply to Felix Schumacher from comment #2)
> Created attachment 35031 [details]
> Add more info to the results of LdapExtSampler
> 
> I had a quick look at the code and didn't find anything obviously wrong. The
> attached patch will place more information in the sample results about the
> options "dereference alias" and "return object".
> 
> Can you try out the attached patch and see, if the options are set correctly
> on your samples?
> 
> Can you add a stripped down test (without any real credentials, hostnames,
> etc.) that would show your problem with a simple ldap tree?
> 
> Do you have any LdapExt config elements, that could have set your options?

Dear Felix,

Thanks for your reply, please check the attachment for this case, there is the request configuration from Jmeter, the result on Jmeter, the trace log from my tool(always-1.1.jpg & never-2.3.jpg). From the trace log, the value of dereference alias is "Always", even i did not choose this option, please check it.

Another thing, actually, i want you to guide me how to get the log from Jmeter after i send the LDAP request, because the log from Jmeter can show what happened.

------------------------------------------------------------------------------
> Can you try out the attached patch and see, if the options are set correctly
> on your samples?
------------------------------------------------------------------------------
For this, i do not know how to do it, can you tell me the details, thanks.
Comment 5 daniel 2017-06-06 14:29:03 UTC
I replace the new jar for LDAP, i test it and found the value from the switch "dereference alias" is OK. When i choose the option, it will return "true", otherwise, return "false". In the meantime, i got the monitor information from my DB, the information we get is the same as "always(3)", please tell me how to get the log from LDAP when send out the message, it means i want to check the original message, then i can confirm which segment have the problem. Thanks.
Comment 6 daniel 2017-06-12 14:53:58 UTC
(In reply to Felix Schumacher from comment #2)
> Created attachment 35031 [details]
> Add more info to the results of LdapExtSampler
> 
> I had a quick look at the code and didn't find anything obviously wrong. The
> attached patch will place more information in the sample results about the
> options "dereference alias" and "return object".
> 
> Can you try out the attached patch and see, if the options are set correctly
> on your samples?
> 
> Can you add a stripped down test (without any real credentials, hostnames,
> etc.) that would show your problem with a simple ldap tree?
> 
> Do you have any LdapExt config elements, that could have set your options?

Dear Felix,
Any update? please check the attachment, thanks.