home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / database / oracle / 2117 < prev    next >
Encoding:
Internet Message Format  |  1992-11-05  |  1.6 KB

  1. Path: sparky!uunet!haven.umd.edu!darwin.sura.net!gatech!paladin.american.edu!news.univie.ac.at!hp4at!mcsun!news.funet.fi!tik.vtt.fi!tik.vtt.fi!vtl
  2. From: vtl@tik.vtt.fi (Tapio Luukkanen)
  3. Newsgroups: comp.databases.oracle
  4. Subject: How to validate username and password ?
  5. Date: 5 Nov 92 15:59:32
  6. Organization: Technical Research Centre of Finland, Laboratory for Information
  7.     Processing (VTT/TIK)
  8. Lines: 28
  9. Message-ID: <VTL.92Nov5155932@morko.tik.vtt.fi>
  10. NNTP-Posting-Host: morko.tik.vtt.fi
  11.  
  12.  
  13. We are developing a menu5.0 + forms3.0 application, where
  14. we have our own logon screen, accessed via a 'dummy/dummy' user.
  15. The logon form builds some form-global variables from 
  16. Unix environment (via user exits), and returns, among others,
  17. :global.user and :global.passwd to the calling menu.
  18.  
  19. In menu, I tried to use "new_user(:global.user || '/' || :global.passwd)"
  20. and then check for ERROR_TYPE or ERROR_CODE to see
  21. if I need to call "new_user('dummy/dummy')" again.
  22. But, it appears that a failing "new_user" puts the menu
  23. in LOGIN state, where er, "things don't quite work".
  24.  
  25. The solution I see (and know how to do, maybe the day-after-tomorrow)
  26. is to call an user exit from the logon form, which tries
  27. 'EXEC SQL CONNECT :username' and checks for failure.
  28.  
  29. I vaguely recall reading about some other way to do this validation,
  30. by applying some internal function to the password (& user),
  31. a function, which returned true or false (or something else),
  32. if it was a valid password. 
  33.  
  34. So, is there a solution without using an user-exit ?
  35.  
  36.     Tapio
  37. --
  38. ! tapio luukkanen  !  vtl@hemuli.tik.vtt.fi (130.188.52.2)
  39. ! home (358-0) 811 211  !  work 456 6056
  40.