AuthorizedAuthMode Property
This property defines how the user is authorized.
Syntax
ANSI (Cross Platform) int GetAuthorizedAuthMode(int iAuthorizedUserIndex);
int SetAuthorizedAuthMode(int iAuthorizedUserIndex, int iAuthorizedAuthMode); Unicode (Windows) INT GetAuthorizedAuthMode(INT iAuthorizedUserIndex);
INT SetAuthorizedAuthMode(INT iAuthorizedUserIndex, INT iAuthorizedAuthMode);
Possible Values
AM_NORMAL(0),
AM_WINDOWS(1)
- (int)authorizedAuthMode:(int)authorizedUserIndex; - (void)setAuthorizedAuthMode:(int)authorizedUserIndex:(int)newAuthorizedAuthMode;
Possible Values
AM_NORMAL(0),
AM_WINDOWS(1)
#define PID_QBCONNECTOR_AUTHORIZEDAUTHMODE 2 INQB_EXTERNAL void* INQB_CALL InQB_QBConnector_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); INQB_EXTERNAL int INQB_CALL InQB_QBConnector_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal); INQB_EXTERNAL int INQB_CALL InQB_QBConnector_CheckIndex(void *lpObj, int propid, int arridx);
Default Value
0
Remarks
This property defines how the user is authorized.
There are two ways that the user may be authorized, against the user list defined in the class, or as a Windows user. From the client side the process of connecting is exactly the same no matter which option you choose. Possible values are:
0 (amNormal - default) | The user is authenticated against the user list defined in the class. |
1 (amWindows) | The user is authenticated as a Windows user. |
When using the amWindows AuthMode the class will validate the user's credentials with Windows. When calling AddUser the Password parameter should be set to empty string.
The AuthorizedUserIndex parameter specifies the index of the item in the array. The size of the array is controlled by the AuthorizedUserCount property.
This property is not available at design time.
Data Type
Integer