home *** CD-ROM | disk | FTP | other *** search
/ ftp.wwiv.com / ftp.wwiv.com.zip / ftp.wwiv.com / pub / BBS / DSADJ20.ZIP / DSADJ.DOC < prev    next >
Text File  |  1994-08-24  |  6KB  |  150 lines

  1.  
  2.                  ╓─────────────────────────────────────────╖
  3.                  ║  DSADJ v2.0 -- Security Level Adjuster  ║
  4.                  ║  For DOOR.SYS Files.  by Kevin Cummins  ║
  5.                  ╙─────────────────────────────────────────╜
  6.  
  7.  
  8. What is DSADJ?
  9. ═══════════════
  10. DSADJ is a program that is designed to run prior to a door program that
  11. reads DOOR.SYS, and adjusts the user's security level to whatever you
  12. may configure. The door that reads DOOR.SYS will then use the
  13. modified security leve. Before a user's security level is modified, their
  14. name must be found in a file called SPECIAL.TXT that you create. DSADJ
  15. then writes the modified DOOR.SYS upon exit.
  16.  
  17. DSADJ also returns errorlevel based on a correct match of a user's name.
  18. One use of this might be in the SFLOGON.BAT file for the Spitfire sysop,
  19. maybe other....? This would allow you to branch to a certain level in a
  20. batch file based on what user is online.
  21.  
  22. Why DSADJ?
  23. ═══════════
  24. DSADJ was written from a need to establish a way to allow certain users
  25. access to a particular message conference, without altering the complete
  26. security structure of the BBS. You may find other uses for this program
  27. since DOOR.SYS is somewhat a 'generic' door info file.
  28.  
  29. Installation
  30. ═════════════
  31. There should be four files included in this archive:
  32.  
  33.       DSADJ.EXE     ->  The Executable file.
  34.       DSADJ.DOC     ->  What you are reading.
  35.       SPECIAL.TXT   ->  Sample File with names of 'special' users.
  36.       DSADJ.CFG     ->  Sample Config File with the 'change-to'
  37.                         security level, and path to DOOR.SYS.
  38.  
  39.  
  40. In this version, DSADJ looks for SPECIAL.TXT, and DSADJ.CFG in the
  41. current directory when executed. So, you basically have a couple options
  42. of where to locate the above files.
  43.  
  44. The one I prefer, (and the one I will document) is putting them in the
  45. same directory as the door you are going to run. This option
  46. would allow you to use DSADJ on more than one door, if need be. I run
  47. this utility prior to the Jetmail QWK door for Spitfire, so this
  48. explanation will follow that setup.
  49.  
  50. Now that you have all the files in the Jetmail directory, you need to
  51. edit the two files, SPECIAL.TXT, and DSADJ.CFG
  52.  
  53. SPECIAL.TXT is a plain ascii text file that you create, with the names
  54. of each user you wish to be allowed security level upgrade via DSADJ.
  55. Dont worry about case-sensitivity, as DSADJ converts the names to all
  56. uppercase characters at runtime. The only rule for creating this file,
  57. is that each name must be on its own line, with NO blank lines allowed
  58. in the file, or at the end. Refer to the sample SPECIAL.TXT.
  59.  
  60. DSADG.CFG is also a plain ascii text file. The first line is the
  61. security level that DSADJ will upgrade users to. The second line is the
  62. path to DOOR.SYS that your door program (Jetmail in this case) will
  63. read. Normally, this will be the home BBS directory, but could be
  64. different depending on how your door is installed.
  65.  
  66. The sample files, DSADJ.CFG and SPECIAL.TXT, are included for example
  67. only. You must create these to fit your system!
  68.  
  69. Now the only thing left is adding it to the door batch file. Mine looks
  70. like this:
  71.  
  72.         CD\DOORS\JETMAIL
  73.         DSADJ
  74.         JETMAIL C:\SF\DOOR.SYS JETMAIL.CNF
  75.         CD\SF
  76.  
  77. As you can see, the only change I made was to add 'DSADJ' on the line
  78. above my Jetmail command line.
  79.  
  80. NOTE: This security level change only remains in effect while the user
  81. is in the door. When they return to the BBS, their regular security
  82. level is once again in effect.
  83.  
  84. Errorlevel
  85. ══════════
  86. If you want to use the errorlevel feature of DSADJ, you simply set up
  87. your batch file to branch to a desired level. DSADJ returns an errorlevel
  88. of 0 when the user's name does not exist in SPECIAL.TXT, and returns an
  89. errorlevel of 1 if it does exist. Below is an example of how I use DSADJ
  90. in my SFLOGON.BAT for my Spitfire BBS:
  91.  
  92.  
  93. @echo off
  94. dsadj
  95. if errorlevel 1 goto MAIL
  96. if errorlevel 0 goto CONTINUE
  97.  
  98. :MAIL
  99.   cd\doors\jet
  100.   jetmail c:\sf\door.sys jetmail.cnf
  101.   cd\sf
  102. :CONTINUE
  103.   callers callers.cfg
  104.   SFBLTN /LOG=C:\sf\CALLERS.TMP
  105.   cd\sf
  106. :END
  107.  
  108.  
  109. I use the above to branch anyone logging on to relay QWK mail directly
  110. into the mail door. OK, you say you can simply set up a SFSECxx.BAT file,
  111. right? Right, but if you have any utilities in your SFLOGON.BAT file,
  112. that security level will still have to contend with those things using
  113. the SFSECxx.BAT method. As you can see above, if a user is found in
  114. SPECIAL.TXT, then they are thrown directly into the mail door, and THEN
  115. they will continue thru the rest of the items in your SFLOGON.BAT only if
  116. they exit the mail door and continue on.
  117.  
  118. Also, when using the above, I am not using the change security level
  119. feature of DSADJ, only the errorlevel capability. When used in this
  120. manner, just set the security level in DSADJ.CFG to that level those
  121. callers whose names you place in SPECIAL.TXT already have. That way, no
  122. change in security level will take place.
  123.  
  124. Distribution:
  125. ═════════════
  126. This program is FREEWARE, to be distributed freely as long as it remains
  127. unmodified. If you do use the program, I'd appreciate a note letting me
  128. know how you have applied it if different than the method below.
  129.  
  130. Disclaimer:
  131. ═══════════
  132. Use of this program acknowledges this disclaimer of warranty: "This
  133. program is supplied as is.  Kevin Cummins disclaims all warranties,
  134. express or implied, including, without limitation, the warranties of
  135. merchantability and of fitness of this program for any purpose.
  136. Kevin Cummins also assumes no liability for damages direct or
  137. consequential, which may result from the use of this program."
  138.  
  139.  
  140. That is about it. Pretty simple, huh? If you do have any questions, I
  141. can be reached via:
  142.                          RIME Network
  143.                          PhileoNet Christian Network
  144.  
  145. Or, you can call Crimson Cross BBS at 618-253-3608  USR HST DUAL 28.8
  146.  
  147.  
  148. Spitfire is Copyright(c) by Mike Woltz
  149. Jetmail is Copyright(c) by DJ Chuang
  150.