You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
===== SEARCH
dn: cn=Full,ou=Users,o=Test Data,c=nz
cn: Full
===== SEARCH_S
dn: cn=Full,ou=Users,o=Test Data,c=nz
cn: Full
sn: Last
objectClass: inetOrgPerson
objectClass: organizationalPerson
objectClass: person
objectClass: top
givenName: First
I think the conditional in search_s() is being parsed as:
if (!(defined($attrs) == undef)) {
}
In effect, if $attrs isn't passed at all, it's essentially a NOP - $attrs = undef and defined(undef) == undef.
But if $attrs is passed, defined($attrs) != undef - so the negation proceeds into the conditional block.
I'll submit a pull request for this shortly. :)
The text was updated successfully, but these errors were encountered:
* New upstream release.
* Fix undef comparison
* Misc variable initializations to quiet warnings
* Fixed sasl mechanisms initializtion
* Examples cleanup
* LDAPv3 extended operation support
* New developer mode test suite
* Fixedquanah/net-ldapapi#3: ldap_set_rebind_proc XS being called with
invalid arguments from set_rebind_proc
* Fixedquanah/net-ldapapi#6: ldap_sasl_bind has wrong prototype in
LDAPapi.xs
* Fixedquanah/net-ldapapi#8: search_s() clobbers ATTRS parameter
* Fixedquanah/net-ldapapi#11: result() blocking when called with output
from rename()
* Fixedquanah/net-ldapapi#20: ldap_result() doesn't honour passed
timeout value
* Fixedquanah/net-ldapapi#21: ldap_set_option(LDAP_OPT_TIMEOUT, 1) on
OpenLDAP returns -1
* Fixedquanah/net-ldapapi#28: Server control responses get eaten after
a NULL character in the berval
* Fixedquanah/net-ldapapi#30: ldap_search_ext() and ldap_search_ext_s()
segfault when used with timeout
* Fixedquanah/net-ldapapi#31: ldap_result() and ldap_url_search_st()
timeout parameters have a granularity of 1 second
* Fixedquanah/net-ldapapi#40: Server control requests get eaten after a
NULL character in the berval
* Correct merge problem with POD error.
* Update standards version to 3.9.8 (no changes required).
[dgit import package libnet-ldapapi-perl 3.0.4-1]
The following code:
produces the following output:
search() looks like the following:
search_s() looks like the following:
I think the conditional in search_s() is being parsed as:
In effect, if $attrs isn't passed at all, it's essentially a NOP - $attrs = undef and defined(undef) == undef.
But if $attrs is passed, defined($attrs) != undef - so the negation proceeds into the conditional block.
I'll submit a pull request for this shortly. :)
The text was updated successfully, but these errors were encountered: