cancel
Showing results for 
Search instead for 
Did you mean: 

Authorization

Former Member
0 Kudos

We need to figure out how the authorization.I have a file - "validateuser.sql" in folder "sql".

File contents

<!--

validateuser.sql

<<id>> is the user ID entered on the device

<<password>> is the password entered on the device

<<previousUser>> is true if this is a "previous user" login.

<<password>> is valid for previous users.

This query should return a single row, unless PASS is used.

The column VALID can have the following values:

'TRUE' if login is OK (other rows and scripts are tested, and may invalidate).

'DB' if Agentry should attempt a database login with the password

The column DBID may specify a different ID for the database

'FALSE' (or NULL) if the login is not OK

'BLOCKED' if the user is blocked from logging in (makes client perform lockout)

'PASS' to allow processing to continue (another row or script must validate)

The column ERR may return an error message, 'Invalid Password' is assumed

The column USER_BLOCKED may be 'TRUE' for the same effects as VALID='BLOCKED'

The column PASSWORD_EXPIRED may be 'TRUE' to force user to change password

The column PASSWORD_WARNING may be 'TRUE' to promt user to change password (user has choice)

The column CAN_CHANGE_PASSWORD may be 'FALSE' to make PASSWORD_WARNING tell user about password,

but not allow password change from client.

See Agentry documentation for additional information.

-->

select 'TRUE' as VALID

<<database.singleRow>>

What "<<database.singleRow>>"? Where I can see the login script?


Thank you!

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

The <Database>> flunkies depend on what database config file is set in the cockpit.  The files are located at: <drive>:\SAP\MobilePlatform3\Server\configuration\com.sap.mobile.platform.server.agentry

Former Member
0 Kudos

I'm sorry, but I do not find these folders. Version Agentry v6.0.46.0.

Structure:

ServerProd

  • apnsCertificates(folders)
  • Application(folders)
  • Java(folders)
  • Logs(folders)
  • Logs-Rolled(folders)
  • OverrideInfoTable(folders)
  • posted(folders)
  • resource(folders)
  • sql(folders)
  • xsl(folders)
  • many .ini files
  • many .dll files
Former Member
0 Kudos

Sorry, I though you where using SMP 3, as Agentry 6 is no longer supported by SAP.

Look in the Agentry.ini file for the [sql-n] for the key queryInitFile

Then look in the server root folder for this file.

All <<Database.xxx>> values will be replaced by this line in this file.