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) --------------------------------------------------------------------------
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.
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?
Created attachment 35033 [details] testcase for ldap Please check the attachment for this case, thanks.
(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.
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.
(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.
This issue has been migrated to GitHub: https://github.com/apache/jmeter/issues/4404