Permalink
Browse files

Populate the Kerberos reply with data from KrbLDAP exop response.

  • Loading branch information...
1 parent 63b25f1 commit 855b0accc5fd5a25281af799db309cbc4199f2a6 @aadamowski committed Jan 15, 2012
Showing with 5 additions and 0 deletions.
  1. +5 −0 src/lib/krb5/os/sendto_kdc.c
@@ -1394,6 +1394,11 @@ krbldap_sendto(krb5_context context, const krb5_data *message,
ldap_set_option(NULL, LDAP_OPT_DEBUG_LEVEL, &debug);
rc = ldap_extended_operation_s(ldap, KRBLDAP_OID_EXOP_AS_REQ, &berval, NULL, NULL, &retoid, &retdata);
+ /* TODO: extract reply message from *retdata and put it in reply->data ,
+ reply->length */
+ reply->length = retdata->bv_len;
+ reply->data = retdata->bv_val;
+
printf("exop rc: [%d]\n", rc);
return rc;

0 comments on commit 855b0ac

Please sign in to comment.