Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

result() blocking when called with output from rename() #11

Closed
phillipod opened this issue May 4, 2015 · 0 comments
Closed

result() blocking when called with output from rename() #11

phillipod opened this issue May 4, 2015 · 0 comments
Assignees
Labels
Milestone

Comments

@phillipod
Copy link
Collaborator

Following code blocks:

print "===== RENAME\n";

my $rename_msg = $ld->rename(-dn => 'cn=Test User,dc=example,dc=com', -newrdn => 'cn=Test User', -newsuper => 'ou=Users,dc=example,dc=com');
my $rename_result = {$ld->parse_result($ld->result($rename_msg, 0))};

print $ld->{"status"} . "\n";
print Dumper($rename_result) . "\n";
print $ld->errstring . "\n";

if ($rename_result->{'errcode'} != LDAP_SUCCESS) {
  print "- Fail\n";
}

LDAPapi.xs/ldap_rename does not include msgidp in OUTPUT list.

int
ldap_rename(ld, dn, newrdn, newSuperior, deleteoldrdn, sctrls, cctrls, msgidp)
    LDAP *         ld
    LDAP_CHAR *    dn
    LDAP_CHAR *    newrdn
    LDAP_CHAR *    newSuperior
    int            deleteoldrdn
    LDAPControl ** sctrls
    LDAPControl ** cctrls
    int            msgidp = NO_INIT
    CODE:
    {
        RETVAL = ldap_rename(ld, dn, newrdn, newSuperior,
                    deleteoldrdn, sctrls, cctrls, &msgidp);
    }
    OUTPUT:
    RETVAL
@phillipod phillipod self-assigned this May 4, 2015
@phillipod phillipod added the bug label May 4, 2015
quanah added a commit that referenced this issue May 4, 2015
 - Fixes #11: result() blocking when called with outpu...
@phillipod phillipod added this to the 3.0.4 milestone May 5, 2015
rra pushed a commit to whm/libnet-ldapapi-perl that referenced this issue Dec 25, 2020
  * 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
  * Fixed quanah/net-ldapapi#3: ldap_set_rebind_proc XS being called with
    invalid arguments from set_rebind_proc
  * Fixed quanah/net-ldapapi#6: ldap_sasl_bind has wrong prototype in
    LDAPapi.xs
  * Fixed quanah/net-ldapapi#8: search_s() clobbers ATTRS parameter
  * Fixed quanah/net-ldapapi#11: result() blocking when called with output
    from rename()
  * Fixed quanah/net-ldapapi#20: ldap_result() doesn't honour passed
    timeout value
  * Fixed quanah/net-ldapapi#21: ldap_set_option(LDAP_OPT_TIMEOUT, 1) on
    OpenLDAP returns -1
  * Fixed quanah/net-ldapapi#28: Server control responses get eaten after
    a NULL character in the berval
  * Fixed quanah/net-ldapapi#30: ldap_search_ext() and ldap_search_ext_s()
    segfault when used with timeout
  * Fixed quanah/net-ldapapi#31: ldap_result() and ldap_url_search_st()
    timeout parameters have a granularity of 1 second
  * Fixed quanah/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]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant