char * diag = NULL;
        struct berval   *scookie = NULL;
        struct berval   *scred = NULL;
-       struct berval   *authzid = NULL;
        int             id, code = 0;
        LDAPMessage     *res;
        LDAPControl     **ctrls = NULL;
                goto skip;
        }
 
-       rc = ldap_parse_verify_credentials( ld, res, &rcode, &diag, &scookie, &scred, &authzid, NULL );
+       rc = ldap_parse_verify_credentials( ld, res, &rcode, &diag, &scookie, &scred, NULL );
        ldap_msgfree(res);
 
        if( rc != LDAP_SUCCESS ) {
 
        if (!rcode) {
                printf(_("Failed: %s (%d)\n"), ldap_err2string(rcode), rcode);
-    } else {
-           if( authzid != NULL ) {
-               if( authzid->bv_len == 0 ) {
-                       printf(_("anonymous\n") );
-               } else {
-                       printf("%s\n", authzid->bv_val );
-               }
-           }
        }
 
        if (diag && *diag) {
        ber_memvfree( (void **) refs );
        ber_bvfree( scookie );
        ber_bvfree( scred );
-       ber_bvfree( authzid );
+       ber_memfree( diag );
 
        /* disconnect from server */
        tool_unbind( ld );
 
 
 #define LDAP_TAG_EXOP_VERIFY_CREDENTIALS_COOKIE         ((ber_tag_t) 0x80U)
 #define LDAP_TAG_EXOP_VERIFY_CREDENTIALS_SCREDS         ((ber_tag_t) 0x81U)
-#define LDAP_TAG_EXOP_VERIFY_CREDENTIALS_AUTHZID ((ber_tag_t) 0x82U)
 #define LDAP_TAG_EXOP_VERIFY_CREDENTIALS_CONTROLS ((ber_tag_t) 0xa3U) /* context specific + constructed + 3 */
 
 #define LDAP_EXOP_WHO_AM_I             "1.3.6.1.4.1.4203.1.11.3"               /* RFC 4532 */
        char                    **diagmsgp,
        struct berval   **scookie,
        struct berval   **servercredp,
-       struct berval   **authzid,
        LDAPControl     ***vcoctrls));
        
 
        char                    **diagmsgp,
        struct berval   **cookie,
        struct berval   **servercredp,
-       struct berval   **authzid,
        LDAPControl     ***vcctrls));
 
 /*
 
  *             diagnosticMessage LDAPString,
  *             cookie [0] OCTET STRING OPTIONAL,
  *             serverSaslCreds [1] OCTET STRING OPTIONAL
- *             authzid [2] OCTET STRING OPTIONAL
  *         controls [3] Controls OPTIONAL
  * }
  *
        char ** diagmsg,
     struct berval **cookie,
        struct berval **screds,
-       struct berval **authzid,
        LDAPControl ***ctrls)
 {
        int rc;
        assert(ld != NULL);
        assert(LDAP_VALID(ld));
        assert(res != NULL);
-       assert(authzid != NULL);
-
-       *authzid = NULL;
+       assert(code != NULL);
+       assert(diagmsg != NULL);
 
        rc = ldap_parse_extended_result(ld, res, &retoid, &retdata, 0);
 
                    tag = ber_peek_tag(ber, &len);
                }
 
-               if (tag == LDAP_TAG_EXOP_VERIFY_CREDENTIALS_AUTHZID) {
-                       ber_scanf(ber, "O", authzid);
-               }
-
                if (tag == LDAP_TAG_EXOP_VERIFY_CREDENTIALS_CONTROLS) {
                    int nctrls = 0;
                        char * opaque;
        char                    **diagmsg,
        struct berval   **scookie,
        struct berval   **scred,
-       struct berval   **authzid,
     LDAPControl                ***vcoctrls)
 {
        int                             rc;
                return ld->ld_errno;
        }
 
-       rc = ldap_parse_verify_credentials(ld, res, rcode, diagmsg, scookie, scred, authzid, vcoctrls);
+       rc = ldap_parse_verify_credentials(ld, res, rcode, diagmsg, scookie, scred, vcoctrls);
        if (rc != LDAP_SUCCESS) {
                ldap_msgfree(res);
                return rc;