dbGetUserPriv(3dba)
dbGetUserPriv --
get user privileges based on host and user name
Synopsis
cc [flag ...] file ...
-kthread -leels [library] ...
#include <eelsdba.h>
DBPriv_t *dbGetUserPriv( char *host,
char *user );
Description
dbGetUserPriv
returns the user privileges based on host and user names.
This routine returns a linked list of DBPriv_t
structures each corresponding to a set of privileges for a
host/user pair. Multiple entries can be returned from this
routine if wildcards are used for host or user (that is,
passing NULL or ``any'' for either of those
fields).
The DBPriv_t structure is defined in
/usr/include/eelsdba.h. The
dbFreePriv(3dba)
routine must be called to free the linked list that is
returned from this routine.
The word ``any'' can be used as a wildcard for the
host or user field.
Arguments
host-
(Input) The IP/Hostname.
user-
(Input) The user name.
Return values
On success dbGetUserPriv returns a linked list
of DBPriv_t structures. On failure it returns NULL.
References
dbFreePriv(3dba),
Intro(3dba)
© 2004 The SCO Group, Inc. All rights reserved.
UnixWare 7 Release 7.1.4 - 25 April 2004