User Tools

Site Tools


cdc:nos2.source:nam5871:nvftpvr

NVFTPVR

Table Of Contents

  • [00006] PROC NVFTPVR1)
  • [00007] NVFTPVR - PREPARE VALIDATION REQUEST
  • [00011] PREPARE VALIDATION REQUEST.
  • [00056] PROC NVFUMQE

Source Code

NVFTPVR.txt
  1. *DECK NVFTPVR
  2. USETEXT TEXTNVF
  3. USETEXT TEXTSS
  4. USETEXT TXTANVF
  5.  
  6. PROC NVFTPVR((PT));
  7. # TITLE NVFTPVR - PREPARE VALIDATION REQUEST #
  8.  
  9. BEGIN # NVFTPVR #
  10. #
  11. ** NVFTPVR - PREPARE VALIDATION REQUEST.
  12. *
  13. * E. THAVIKULWAT 81/10/08
  14. *
  15. * THIS PROCEDURE SETS UP THE CPM 56B VALIDATE USER REQUEST. IT IS
  16. * CALLED INTO EXECUTION BY THE FOLLOWING PROCEDURES:
  17. * *NVFTETI* *NVFTILP*
  18. *
  19. * PROC NVFTPVR((PT))
  20. *
  21. * ENTRY:
  22. * PT = POINTER TO PTAC ENTRY.
  23. *
  24. * EXIT:
  25. * CPM 56B VALIDATE USER REQUEST ENTERED IN *CPMRQ* QUEUE.
  26. *
  27. * NOTES:
  28. * FOR AUTOLOGIN DATA, THE FOLLOWING ORDER OF PRECEDENCE IS USED
  29. * TO DETERMINE FAMILY AND USER NAME:
  30. * 1) MANDATORY NAME IS USED IF MANDATORY IS INDICATED.
  31. * 2) DEFAULT NAME IS USED IF DEFAULT IS INDICATED AND
  32. * USER VOLUNTEERED VALUE IS "NULL".
  33. * 3) IF DEFAULT IS INDICATED FOR FAMILY AND USER VOLUNTEERED
  34. * VALUE IS "0", THE SYSTEM DEFAULT FAMILY WILL BE USED.
  35. * 4) USER VOLUNTEERED VALUE IS USED OTHERWISE.
  36. *
  37. * IF USER NAME IS OBTAINED FROM THE *LCF* (LOCAL CONFIGURATION
  38. * FILE), PASSWORD IS NOT VALIDATED. A MESSAGE IS DISPLAYED ON
  39. * THE USER'S SCREEN IF VOLUNTEERED USER OR PASSWORD, ENTERED IN
  40. * THE ABBREVIATED FORMAT, IS IGNORED BECAUSE OF PRESENCE OF
  41. * AUTOLOGIN DATA.
  42. *
  43. * METHOD:
  44. * PRESET FAMILY, USER, AND PASSWORD TO VOLUNTEERED VALUES. IF
  45. * THERE IS AUTOLOGIN DATA, DETERMINE IF IT IS FOR FAMILY OR USER
  46. * OR BOTH AND CHANGE FAMILY, USER, AND PASSWORD TO BE USED
  47. * ACCORDINGLY. ENTER CPM 56B IN *CPMRQ* QUEUE.
  48. #
  49.  
  50. #
  51. **** PROC NVFTPVR - XREF LIST.
  52. #
  53.  
  54. XREF
  55. BEGIN
  56. PROC NVFUMQE; # TRANSFER TEXT TO QUEUE #
  57. END
  58.  
  59. #
  60. ****
  61. #
  62.  
  63. *CALL TMSGNVF
  64.  
  65. ITEM ADDR I; # ADDRESSING INFORMATION FOR ABH #
  66. ITEM LNGTH I; # LENGTH OF MESSAGE #
  67. ITEM PT I; # SUBSCRIPT FOR ARRAY PTAC #
  68. ITEM PTIND I; # AUTOLOGIN TYPE INDICATOR VARIABLE #
  69.  
  70. #
  71. * THE FOLLOWING ARRAY DEFINES ONE ZERO IN DISPLAY CODE STORED LEFT-
  72. * JUSTIFIED AND BINARY ZERO FILLED.
  73. #
  74. ARRAY ZERO[00:00] S(1);
  75. BEGIN
  76. ITEM ZRO$PARAM C(00,00,07);
  77. ITEM ZRO$DSP C(00,00,01) = ["0"];
  78. END
  79.  
  80. #
  81. * POINT BASE ARRAY TO OUTPUT HALF OF *MSGBUF* AND CLEAR THE BUFFER.
  82. #
  83. P<CRQBUF> = LOC(MSGBUF[0]) + ((NMSGBUF$ + 1) / 2);
  84. CRQ$FCWORD[0] = 0;
  85. CRQ$FWORD[0] = 0;
  86. CRQ$PWORD[0] = 0;
  87. CRQ$UWORD[0] = 0;
  88. #
  89. * PRESET FAMILY, USER, AND PASSWORD TO USER VOLUNTEERED VALUES.
  90. #
  91. CRQ$FNAM[0] = PTA$VLTFAM[PT];
  92. CRQ$PASSWD[0] = PTA$VLTPW[PT];
  93. CRQ$IFCTF[0] = TRUE;
  94. CRQ$VPWF[0] = FALSE;
  95. CRQ$UNUM[0] = PTA$VLTUSR[PT];
  96. CRQ$RETPED[0] = TRUE; # RETURN PASSWORD EXP DATE #
  97. CRQ$RETPID[0] = TRUE; # RETURN PERSONAL IDENTIFIER #
  98.  
  99. PTA$VLTPW[PT] = 0; # DONT KEEP PASSWORD ANY LONGER THAN NEDED#
  100.  
  101. #
  102. * CHECK IF AUTOLOGIN DATA EXIST FOR FAMILY AND/OR USER. IF IT
  103. * DOES, CHANGE VALUES FOR FAMILY, USER, AND PASSWORD ACCORDINGLY.
  104. #
  105. IF PTA$ALIF[PT]
  106. THEN
  107. BEGIN # HAVE AUTOLOGIN DATA #
  108. PTIND = PTA$FAMIND[PT];
  109. IF PTIND NQ 0
  110. THEN
  111. BEGIN
  112. #
  113. * MANDATORY OR DEFAULT FAMILY SPECIFIED. IF MANDATORY, USE
  114. * MANDATORY FAMILY NAME. IF DEFAULT, AND VOLUNTEERED FAMILY
  115. * VALUE IS "NULL", USE DEFAULT FAMILY NAME. IF DEFAULT, AND
  116. * VOLUNTEERED FAMILY VALUE IS "ZERO", USE SYSTEM DEFAULT FAMILY.
  117. * IF DEFAULT, AND VOLUNTEERED FAMILY VALUE IS NEITHER "NULL"
  118. * NOR "ZERO", USE VOLUNTEERED VALUE.
  119. #
  120. IF (PTIND EQ MNDATRY$)
  121. OR (PTIND EQ PRIMARY$)
  122. OR ((PTIND EQ DEFAULT$) AND (PTA$VLTFAM[PT] EQ NULL$))
  123. THEN # MNDATRY OR DEFAULT AND "NULL" #
  124. BEGIN
  125. CRQ$FNAM[0] = PTA$ALIFAM[PT];
  126. END
  127. ELSE # DEFAULT AND NOT "NULL" #
  128. BEGIN
  129. IF PTA$VLTFAM[PT] EQ ZRO$PARAM[0]
  130. THEN # DEFAULT AND "ZERO" #
  131. BEGIN # USE SYSTEM DEFAULT FAMILY #
  132. CRQ$FWORD[0] = 0;
  133. END
  134. END
  135.  
  136. IF PTIND EQ PRIMARY$
  137. THEN
  138. BEGIN
  139. PTA$FAMIND[PT] = DEFAULT$;
  140. END
  141. END
  142.  
  143. PTIND = PTA$USRIND[PT];
  144. IF PTIND NQ 0
  145. THEN
  146. BEGIN
  147. #
  148. * MANDATORY OR DEFAULT USER SPECIFIED. IF MANDATORY, USE
  149. * MANDATORY USER NAME. IF DEFAULT, AND VOLUNTEERED USER VALUE
  150. * IS "NULL", USE DEFAULT USER NAME. IF DEFAULT, AND VOLUNTEERED
  151. * USER VALUE IS NOT "NULL", USE VOLUNTEERED VALUE. IF MANDATORY
  152. * OR DEFAULT USER NAME USED, THEN VALIDATE WITH NO PASSWORD.
  153. #
  154. IF (PTIND EQ MNDATRY$)
  155. OR (PTIND EQ PRIMARY$ AND PTA$VLTUSR[PT] EQ NULL$)
  156. OR ((PTIND EQ DEFAULT$) AND (PTA$VLTUSR[PT] EQ NULL$))
  157. THEN # MNDATRY OR DEFAULT AND "NULL" #
  158. BEGIN
  159. CRQ$UNUM[0] = PTA$ALIUSR[PT];
  160. CRQ$VPWF[0] = TRUE;
  161. IF ((PTIND EQ MNDATRY$) AND (PTA$VUF[PT]))
  162. OR (PTA$VPF[PT])
  163. THEN
  164. BEGIN
  165. #
  166. * VOLUNTEERED USER AND/OR PASSWORD ENTERED IN ABBREVIATED
  167. * FORMAT. SEND "VOLUNTEERED USER/PASSWORD IGNORED" MESSAGE
  168. * TO TERMINAL.
  169. #
  170. UPA$TYPE[0] = "USER/PASSWORD";
  171. ADDR = PTA$ACN[PT];
  172. NVFUMQE(P<CTQ>,UPABUF[0],APPTTX$,ADDR,LMSG40$);
  173. END
  174. END
  175. END
  176.  
  177. IF PTIND EQ PRIMARY$
  178. THEN
  179. BEGIN
  180. PTA$USRIND[PT] = DEFAULT$;
  181. END
  182. END
  183.  
  184. #
  185. * ENTER CPM 56B IN *CPMRQ* QUEUE.
  186. #
  187. CRQ$FC[0] = CPM56B$;
  188. CRQ$ACN[0] = PTA$VCB[PT];
  189. CRQ$QNUM[0] = LOC(P<VDATAQ>); # SET DEST QUEUE NUMBER #
  190.  
  191. CRQ$NOROUT[0]=TRUE;
  192. LNGTH = CRQVSIZ$ * 10;
  193. NVFUMQE(P<CPMRQ>,CRQBUF[0],APPTTX$,0,LNGTH);
  194. PTA$STATE[PT] = PTACST"AWTVAL"; # SET STATE TO AWAIT VALIDATION #
  195.  
  196. END # END NVFTPVR #
  197.  
  198. TERM
1)
PT
cdc/nos2.source/nam5871/nvftpvr.txt ยท Last modified: 2023/08/05 17:23 by Site Administrator