Changeset 134 for branches/samba-3.0/source/utils/ntlm_auth.c
- Timestamp:
- May 23, 2008, 6:56:41 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/utils/ntlm_auth.c
r22 r134 691 691 if (strlen(buf) < 2) { 692 692 DEBUG(1, ("NTLMSSP query [%s] invalid", buf)); 693 x_fprintf(x_stdout, "BH \n");693 x_fprintf(x_stdout, "BH NTLMSSP query invalid\n"); 694 694 return; 695 695 } … … 715 715 if (opt_password == NULL) { 716 716 DEBUG(1, ("Out of memory\n")); 717 x_fprintf(x_stdout, "BH \n");717 x_fprintf(x_stdout, "BH Out of memory\n"); 718 718 data_blob_free(&request); 719 719 return; … … 742 742 SAFE_FREE(key64); 743 743 } else { 744 x_fprintf(x_stdout, "BH \n");744 x_fprintf(x_stdout, "BH No session key available\n"); 745 745 } 746 746 … … 749 749 } else { 750 750 DEBUG(1, ("NTLMSSP query [%s] invalid", buf)); 751 x_fprintf(x_stdout, "BH \n");751 x_fprintf(x_stdout, "BH NTLMSSP query invalid\n"); 752 752 return; 753 753 } … … 819 819 if (strlen(buf) < 2) { 820 820 DEBUG(1, ("NTLMSSP query [%s] invalid", buf)); 821 x_fprintf(x_stdout, "BH \n");821 x_fprintf(x_stdout, "BH NTLMSSP query invalid\n"); 822 822 return; 823 823 } … … 843 843 if (opt_password == NULL) { 844 844 DEBUG(1, ("Out of memory\n")); 845 x_fprintf(x_stdout, "BH \n");845 x_fprintf(x_stdout, "BH Out of memory\n"); 846 846 data_blob_free(&request); 847 847 return; … … 893 893 } 894 894 else { 895 x_fprintf(x_stdout, "BH \n");895 x_fprintf(x_stdout, "BH No session key available\n"); 896 896 } 897 897 … … 900 900 } else { 901 901 DEBUG(1, ("NTLMSSP query [%s] invalid", buf)); 902 x_fprintf(x_stdout, "BH \n");902 x_fprintf(x_stdout, "BH NTLMSSP query invalid\n"); 903 903 return; 904 904 } … … 1028 1028 if (len == -1) { 1029 1029 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"); 1031 1031 return; 1032 1032 } … … 1059 1059 if (strlen(buf) < 2) { 1060 1060 DEBUG(1, ("SPENGO query [%s] invalid", buf)); 1061 x_fprintf(x_stdout, "BH \n");1061 x_fprintf(x_stdout, "BH SPENGO query invalid\n"); 1062 1062 return; 1063 1063 } … … 1070 1070 } else { 1071 1071 DEBUG(1, ("SPENGO query [%s] invalid", buf)); 1072 x_fprintf(x_stdout, "BH \n");1072 x_fprintf(x_stdout, "BH SPENGO query invalid\n"); 1073 1073 return; 1074 1074 } … … 1087 1087 if (strlen(buf) <= 3) { 1088 1088 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"); 1090 1090 return; 1091 1091 } … … 1097 1097 if (len == -1) { 1098 1098 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"); 1100 1100 return; 1101 1101 } … … 1109 1109 (request.negTokenInit.mechTypes[0] == NULL) ) { 1110 1110 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"); 1112 1112 return; 1113 1113 } … … 1117 1117 1118 1118 if ( request.negTokenInit.mechToken.data == NULL ) { 1119 DEBUG(1, ("Client did not provide 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"); 1121 1121 return; 1122 1122 } … … 1125 1125 DEBUG(1, ("Client wants a new NTLMSSP challenge, but " 1126 1126 "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"); 1128 1128 ntlmssp_end(&ntlmssp_state); 1129 1129 return; … … 1158 1158 if ( request.negTokenInit.mechToken.data == NULL ) { 1159 1159 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"); 1161 1161 return; 1162 1162 } … … 1184 1184 DEBUG(1, ("Did not get a valid principal " 1185 1185 "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"); 1187 1187 return; 1188 1188 } … … 1207 1207 DEBUG(1, ("Got a negTokenTarg for something non-NTLMSSP: %s\n", 1208 1208 request.negTokenTarg.supportedMech)); 1209 x_fprintf(x_stdout, "BH \n");1209 x_fprintf(x_stdout, "BH Got a negTokenTarg for something non-NTLMSSP\n"); 1210 1210 return; 1211 1211 } … … 1213 1213 if (request.negTokenTarg.responseToken.data == NULL) { 1214 1214 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"); 1216 1216 return; 1217 1217 } … … 1257 1257 if (len == -1) { 1258 1258 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"); 1260 1260 return; 1261 1261 } … … 1347 1347 if (client_ntlmssp_state == NULL) { 1348 1348 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"); 1350 1350 return; 1351 1351 } … … 1371 1371 "ntlmssp_client_update, got: %s\n", 1372 1372 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"); 1374 1374 data_blob_free(&request); 1375 1375 ntlmssp_end(&client_ntlmssp_state); … … 1487 1487 case SPNEGO_ACCEPT_INCOMPLETE: 1488 1488 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"); 1490 1490 break; 1491 1491 case SPNEGO_ACCEPT_COMPLETED: … … 1519 1519 if (strlen(buf) <= 3) { 1520 1520 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"); 1522 1522 return; 1523 1523 } … … 1533 1533 if (opt_password == NULL) { 1534 1534 DEBUG(1, ("Out of memory\n")); 1535 x_fprintf(x_stdout, "BH \n");1535 x_fprintf(x_stdout, "BH Out of memory\n"); 1536 1536 data_blob_free(&request); 1537 1537 return; … … 1547 1547 (strncmp(buf, "NA ", 3) != 0) ) { 1548 1548 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"); 1550 1550 data_blob_free(&request); 1551 1551 return; … … 1560 1560 if (len == -1) { 1561 1561 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"); 1563 1563 return; 1564 1564 } … … 1589 1589 1590 1590 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"); 1592 1592 return; 1593 1593 } … … 1611 1611 "unknown negResult: %d\n", 1612 1612 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"); 1614 1614 } 1615 1615 … … 1635 1635 1636 1636 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"); 1638 1638 return; 1639 1639
Note:
See TracChangeset
for help on using the changeset viewer.