›
Welcome to the SRP Forum! Please refer to the SRP Forum FAQ post if you have any questions regarding how the forum works.

Trapping SYSPROG Logins

Does anyone know a good/simple way to trap logins to SYSPROG?

I believe logging in to any application will go through SYSPROG first? And that's fine. Looking for a way to intercept any logins.

Gratzi!

Comments

  • OI10 or OI9
  • For what purpose? Logging attempts? Blocking access?
  • When someone logs in, we have to toggle-on the OI logging routine based on whether s/he is defined as a developer. It's a SOX requirement. And it has to work across all applications.
  • Yes what he said.
    Because authorised user are setup here.
    There is also a logging table
    https://revelation.wiki/doku.php?id=guides:oi10:openinsight_authentication_module_oam

    We would actually like to know what problem you are trying to solve
  • Like I said.. when a developer (not just a user) logs in, we have to track everything s/he does now.
  • Does the SYSAUTHLOG table that Barry referenced help? There is also SYSLOGINS.
  • Wouldn't that involve an MFS on the SYSLOGINS/SYSAUTHLOG table?

    I didn't know if there was a system login process that every login goes through.
  • Is this via your own login form, so you would have the user name to lookup in your own info table for DevType OR if they maybe setup as a system admin user level (unless you have normal power user set as that)
  • Ah, of cource, you deleloper would not be going via app login.
    Ok, just check if was Devmode /DV=1
  • Every user is defined as a "normal" user or developer. And we have the Devmode as well. If the person is twice-defined as a developer, we have to turn on logging as well as ask for authorization.

    We have 3 OI applications that are used. I want to do something in SYSPROG to trap any login to any of the apps.
  • I haven't mapped out the procedures used to track logins and authentication. You can do that yourself by watching the OpenEngine screen. Then you could try to hook into one of those routines and call your code to do what you need it to do.
  • $BCHECKLEGALUSER
  • I think I'm going to need to put an MFS on SYSLOGINS and trap the Write event.

    Thanks for the help!
  • edited 5:12AM
    Ah, go on, be brave:

    https://blog.srpcs.com/hooking-in-basic-using-different-bait/

    WARNING:

    DONT make a copy as BCHECKLEGALUSER_ORIG as it is called by BCHECKLEGALUSER (as a legacy routine)

    AND MUST DO A BACKUP (dont ask)
  • Hooking BCHECKLEGALUSER works. It is a function.
Sign In or Register to comment.