SQL Authenticator Select Statement Reference
Learn options available for creating SQL statements when implementing a SQL authentication provider.
When you create a SQL Authenticator in the Provider Specific tab, you specify the SQL statements used to query, and authenticate against, your database tables. See Configuring a SQL Authenticator Using the Oracle WebLogic Server Administration Console.
The table shows SQL statements for the sample schema outlined in Create a Sample Schema for Users and Groups.
If you are using a different table structure, you might need to adapt these SQL statements with the table or column names of your schema. You should use the question mark (?) as a runtime query placeholder rather than hard coding a user or group name.
| Query | SQL | Notes |
|---|---|---|
|
SQL Get Users Password |
|
This SQL statement looks up a user's password. The SQL statement requires a single parameter for the username and must return a |
|
SQL User Exists |
|
This SQL statement looks up a user. The SQL statement requires a single parameter for the username and must return a |
|
SQL List Users |
|
This SQL statement retrieves users that match a specific wildcard search. The SQL statement requires a single parameter for the usernames and returns a |
|
SQL List Groups |
|
This SQL statement retrieves group names that match a wildcard. The SQL statement requires a single parameter for the group name and returns a |
|
SQL Group Exists |
|
This SQL statement looks up a group. The SQL statement requires a single parameter for the group name, and must return a |
|
SQL Is Member |
|
This SQL statement looks up members of a group. The SQL statement requires two parameters, a group name and a member or group name. This SQL statement must return a |
|
SQL List Member Groups |
|
This SQL statement looks up the group membership of a user or group. The SQL statement requires a single parameter for the username or group name, and returns a |
|
SQL Get User Description |
|
This SQL statement retrieves the description of a specific user. The SQL statement is valid only if |
|
SQL Get Group Description |
|
This SQL statement retrieves the description of a group. The SQL statement is valid only if |