From 3dd34298335dda5a3ce8b0382a5483cccc0b51f0 Mon Sep 17 00:00:00 2001 From: alexpeshkoff Date: Mon, 27 Jan 2014 07:14:10 +0000 Subject: [PATCH] Doc enhancement --- doc/sql.extensions/README.user_management | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) diff --git a/doc/sql.extensions/README.user_management b/doc/sql.extensions/README.user_management index 8cc2047770..db03d8aa0f 100644 --- a/doc/sql.extensions/README.user_management +++ b/doc/sql.extensions/README.user_management @@ -49,12 +49,11 @@ be also used to store any short information about user. Clauses INACTIVE/ACTIVE user's login to server not dropping it from the list and restoring that ability. TAGS is a list of end-user defined attributes. Length of the value should not exceed 255 bytes. +Assigning name some value sets new or modifies existing tag. To remove the tag use DROP option. Setting a list of tags for the user keeps earlier set tags if they are not mentioned currently. Notice - UID/GID, entered by deprecated gsec, are treated as tags in SQL interface. To access list of users please select from virtual tables SEC$USERS and SEC$USER_ATTRIBUTES. -This feature highly depends upon user management plugin. Take into an account that some options -are ignored when using legacy user management plugin. Samples: @@ -85,3 +84,21 @@ Samples: ================ ============================== B x C sample + + Displaying users' list: + SELECT CAST(U.SEC$USER_NAME AS CHAR(20)) LOGIN, + CAST(A.SEC$KEY AS CHAR(10)) TAG, + CAST(A.SEC$VALUE AS CHAR(20)) "VALUE" + FROM SEC$USERS U LEFT JOIN SEC$USER_ATTRIBUTES A + ON U.SEC$USER_NAME = A.SEC$USER_NAME; + + LOGIN TAG VALUE + ==================== ========== ==================== + SYSDBA + ALEX B x + ALEX C sample + + +Notice! +This feature highly depends upon user management plugin. Take into an account that some options +are ignored when using legacy user management plugin.