Ignore:
Timestamp:
May 23, 2008, 6:56:41 AM (17 years ago)
Author:
Paul Smedley
Message:

Update source to 3.0.29

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/utils/ntlm_auth.c

    r22 r134  
    691691        if (strlen(buf) < 2) {
    692692                DEBUG(1, ("NTLMSSP query [%s] invalid", buf));
    693                 x_fprintf(x_stdout, "BH\n");
     693                x_fprintf(x_stdout, "BH NTLMSSP query invalid\n");
    694694                return;
    695695        }
     
    715715                if (opt_password == NULL) {
    716716                        DEBUG(1, ("Out of memory\n"));
    717                         x_fprintf(x_stdout, "BH\n");
     717                        x_fprintf(x_stdout, "BH Out of memory\n");
    718718                        data_blob_free(&request);
    719719                        return;
     
    742742                        SAFE_FREE(key64);
    743743                } else {
    744                         x_fprintf(x_stdout, "BH\n");
     744                        x_fprintf(x_stdout, "BH No session key available\n");
    745745                }
    746746                       
     
    749749        } else {
    750750                DEBUG(1, ("NTLMSSP query [%s] invalid", buf));
    751                 x_fprintf(x_stdout, "BH\n");
     751                x_fprintf(x_stdout, "BH NTLMSSP query invalid\n");
    752752                return;
    753753        }
     
    819819        if (strlen(buf) < 2) {
    820820                DEBUG(1, ("NTLMSSP query [%s] invalid", buf));
    821                 x_fprintf(x_stdout, "BH\n");
     821                x_fprintf(x_stdout, "BH NTLMSSP query invalid\n");
    822822                return;
    823823        }
     
    843843                if (opt_password == NULL) {
    844844                        DEBUG(1, ("Out of memory\n"));
    845                         x_fprintf(x_stdout, "BH\n");
     845                        x_fprintf(x_stdout, "BH Out of memory\n");
    846846                        data_blob_free(&request);
    847847                        return;
     
    893893                }
    894894                else {
    895                         x_fprintf(x_stdout, "BH\n");
     895                        x_fprintf(x_stdout, "BH No session key available\n");
    896896                }
    897897
     
    900900        } else {
    901901                DEBUG(1, ("NTLMSSP query [%s] invalid", buf));
    902                 x_fprintf(x_stdout, "BH\n");
     902                x_fprintf(x_stdout, "BH NTLMSSP query invalid\n");
    903903                return;
    904904        }
     
    10281028        if (len == -1) {
    10291029                DEBUG(1, ("Could not write SPNEGO data blob\n"));
    1030                 x_fprintf(x_stdout, "BH\n");
     1030                x_fprintf(x_stdout, "BH Could not write SPNEGO data blob\n");
    10311031                return;
    10321032        }
     
    10591059        if (strlen(buf) < 2) {
    10601060                DEBUG(1, ("SPENGO query [%s] invalid", buf));
    1061                 x_fprintf(x_stdout, "BH\n");
     1061                x_fprintf(x_stdout, "BH SPENGO query invalid\n");
    10621062                return;
    10631063        }
     
    10701070        } else {
    10711071                DEBUG(1, ("SPENGO query [%s] invalid", buf));
    1072                 x_fprintf(x_stdout, "BH\n");
     1072                x_fprintf(x_stdout, "BH SPENGO query invalid\n");
    10731073                return;
    10741074        }
     
    10871087        if (strlen(buf) <= 3) {
    10881088                DEBUG(1, ("GSS-SPNEGO query [%s] invalid\n", buf));
    1089                 x_fprintf(x_stdout, "BH\n");
     1089                x_fprintf(x_stdout, "BH GSS-SPNEGO query invalid\n");
    10901090                return;
    10911091        }
     
    10971097        if (len == -1) {
    10981098                DEBUG(1, ("GSS-SPNEGO query [%s] invalid", buf));
    1099                 x_fprintf(x_stdout, "BH\n");
     1099                x_fprintf(x_stdout, "BH GSS-SPNEGO query invalid\n");
    11001100                return;
    11011101        }
     
    11091109                     (request.negTokenInit.mechTypes[0] == NULL) ) {
    11101110                        DEBUG(1, ("Client did not offer any mechanism"));
    1111                         x_fprintf(x_stdout, "BH\n");
     1111                        x_fprintf(x_stdout, "BH Client did not offer any mechanism\n");
    11121112                        return;
    11131113                }
     
    11171117
    11181118                        if ( request.negTokenInit.mechToken.data == NULL ) {
    1119                                 DEBUG(1, ("Client did not provide  NTLMSSP data\n"));
    1120                                 x_fprintf(x_stdout, "BH\n");
     1119                                DEBUG(1, ("Client did not provide NTLMSSP data\n"));
     1120                                x_fprintf(x_stdout, "BH Client did not provide NTLMSSP data\n");
    11211121                                return;
    11221122                        }
     
    11251125                                DEBUG(1, ("Client wants a new NTLMSSP challenge, but "
    11261126                                          "already got one\n"));
    1127                                 x_fprintf(x_stdout, "BH\n");
     1127                                x_fprintf(x_stdout, "BH Client wants a new NTLMSSP challenge, but already got one\n");
    11281128                                ntlmssp_end(&ntlmssp_state);
    11291129                                return;
     
    11581158                        if ( request.negTokenInit.mechToken.data == NULL ) {
    11591159                                DEBUG(1, ("Client did not provide Kerberos data\n"));
    1160                                 x_fprintf(x_stdout, "BH\n");
     1160                                x_fprintf(x_stdout, "BH Client did not provide Kerberos data\n");
    11611161                                return;
    11621162                        }
     
    11841184                                        DEBUG(1, ("Did not get a valid principal "
    11851185                                                  "from ads_verify_ticket\n"));
    1186                                         x_fprintf(x_stdout, "BH\n");
     1186                                        x_fprintf(x_stdout, "BH Did not get a valid principal from ads_verify_ticket\n");
    11871187                                        return;
    11881188                                }
     
    12071207                        DEBUG(1, ("Got a negTokenTarg for something non-NTLMSSP: %s\n",
    12081208                                  request.negTokenTarg.supportedMech));
    1209                         x_fprintf(x_stdout, "BH\n");
     1209                        x_fprintf(x_stdout, "BH Got a negTokenTarg for something non-NTLMSSP\n");
    12101210                        return;
    12111211                }
     
    12131213                if (request.negTokenTarg.responseToken.data == NULL) {
    12141214                        DEBUG(1, ("Got a negTokenTarg without a responseToken!\n"));
    1215                         x_fprintf(x_stdout, "BH\n");
     1215                        x_fprintf(x_stdout, "BH Got a negTokenTarg without a responseToken!\n");
    12161216                        return;
    12171217                }
     
    12571257        if (len == -1) {
    12581258                DEBUG(1, ("Could not write SPNEGO data blob\n"));
    1259                 x_fprintf(x_stdout, "BH\n");
     1259                x_fprintf(x_stdout, "BH Could not write SPNEGO data blob\n");
    12601260                return;
    12611261        }
     
    13471347        if (client_ntlmssp_state == NULL) {
    13481348                DEBUG(1, ("Got NTLMSSP tArg without a client state\n"));
    1349                 x_fprintf(x_stdout, "BH\n");
     1349                x_fprintf(x_stdout, "BH Got NTLMSSP tArg without a client state\n");
    13501350                return;
    13511351        }
     
    13711371                          "ntlmssp_client_update, got: %s\n",
    13721372                          nt_errstr(status)));
    1373                 x_fprintf(x_stdout, "BH\n");
     1373                x_fprintf(x_stdout, "BH Expected MORE_PROCESSING_REQUIRED from ntlmssp_client_update\n");
    13741374                data_blob_free(&request);
    13751375                ntlmssp_end(&client_ntlmssp_state);
     
    14871487        case SPNEGO_ACCEPT_INCOMPLETE:
    14881488                DEBUG(1, ("Got a Kerberos negTokenTarg with ACCEPT_INCOMPLETE\n"));
    1489                 x_fprintf(x_stdout, "BH\n");
     1489                x_fprintf(x_stdout, "BH Got a Kerberos negTokenTarg with ACCEPT_INCOMPLETE\n");
    14901490                break;
    14911491        case SPNEGO_ACCEPT_COMPLETED:
     
    15191519        if (strlen(buf) <= 3) {
    15201520                DEBUG(1, ("SPNEGO query [%s] too short\n", buf));
    1521                 x_fprintf(x_stdout, "BH\n");
     1521                x_fprintf(x_stdout, "BH SPNEGO query too short\n");
    15221522                return;
    15231523        }
     
    15331533                if (opt_password == NULL) {
    15341534                        DEBUG(1, ("Out of memory\n"));
    1535                         x_fprintf(x_stdout, "BH\n");
     1535                        x_fprintf(x_stdout, "BH Out of memory\n");
    15361536                        data_blob_free(&request);
    15371537                        return;
     
    15471547             (strncmp(buf, "NA ", 3) != 0) ) {
    15481548                DEBUG(1, ("SPNEGO request [%s] invalid\n", buf));
    1549                 x_fprintf(x_stdout, "BH\n");
     1549                x_fprintf(x_stdout, "BH SPNEGO request invalid\n");
    15501550                data_blob_free(&request);
    15511551                return;
     
    15601560        if (len == -1) {
    15611561                DEBUG(1, ("Could not read SPNEGO data for [%s]\n", buf));
    1562                 x_fprintf(x_stdout, "BH\n");
     1562                x_fprintf(x_stdout, "BH Could not read SPNEGO data\n");
    15631563                return;
    15641564        }
     
    15891589
    15901590                DEBUG(1, ("Server offered no compatible mechanism\n"));
    1591                 x_fprintf(x_stdout, "BH\n");
     1591                x_fprintf(x_stdout, "BH Server offered no compatible mechanism\n");
    15921592                return;
    15931593        }
     
    16111611                                          "unknown negResult: %d\n",
    16121612                                          spnego.negTokenTarg.negResult));
    1613                                 x_fprintf(x_stdout, "BH\n");
     1613                                x_fprintf(x_stdout, "BH Got a negTokenTarg with no mech and an unknown negResult\n");
    16141614                        }
    16151615
     
    16351635
    16361636        DEBUG(1, ("Got an SPNEGO token I could not handle [%s]!\n", buf));
    1637         x_fprintf(x_stdout, "BH\n");
     1637        x_fprintf(x_stdout, "BH Got an SPNEGO token I could not handle\n");
    16381638        return;
    16391639
Note: See TracChangeset for help on using the changeset viewer.