Tried this on UniData for Windows PE, version 6.1.7.

If I set RETURN.VALUE to zero (0), I encounter the error code 80011 which is great. If I set RETURN.VALUE to one (1), It appears as if I need to re-establish session connection for each database access. Not really what I was expecting. Once I've established my connection, I shouldn't need to re-connect.

Noticed that my catalog verb is now screwed up. Is their some dependency on a version of AE?

Also, I'm curious as to how I would pass the second argument (application) from my client/server application to the host? If this is done by referencing the subroutine method, then my hack still gets in by guessing at a valid application code. This is no different than guessing at a password.

Regards,  Ian Renfrew


----- Original Message ----- From: "Steve Johnson" <[EMAIL PROTECTED]>
To: "U2UG" <[email protected]>
Sent: Saturday, May 28, 2005 3:27 AM
Subject: Re: [U2] Uniobjects hack]


According to the IBM website, UOLOGIN must be a globally cataloged subroutine
with two arguments.

First argument is a return value. If set to zero, login is rejected and error
code 80011 is returned.

Second argument is input to the subroutine and contains the application name.

Example:

SUBROUTINE UOLOGIN( RETURN.VALUE, APPLIC.NAME )
IF APPLIC.NAME = "SOMETHING" THEN
  RETURN.VALUE = 0
END ELSE
  RETURN.VALUE = 1
END
RETURN
END

N.B., I haven't tested this. The document references "software version 6.x".
Might only work on UniData.

Steve Johnson
FXA Group Ltd.
Bangkok
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/
-------
u2-users mailing list
[email protected]
To unsubscribe please visit http://listserver.u2ug.org/

Reply via email to