| Midgard2 Reference Manual | ||||
|---|---|---|---|---|
| Top | Description | Object Hierarchy | Properties | ||||
#include <midgard/midgard.h> typedef midgard_user; typedef MidgardUserClass; MidgardUserPrivate; MidgardUser; MidgardUser * midgard_user_new (MgdObject *person); MidgardUser * midgard_user_auth (MidgardConnection *mgd, const gchar *name, const gchar *password, const gchar *sitegroup, gboolean trusted); gboolean midgard_user_is_user (MidgardUser *self); gboolean midgard_user_is_admin (MidgardUser *self); gboolean midgard_user_is_root (MidgardUser *self); gboolean midgard_user_set_active (MidgardUser *user, gboolean flag); gboolean midgard_user_password (MidgardUser *self, const gchar *login, const gchar *password, guint hashtype); MgdObject * midgard_user_get_person (MidgardUser *self);
"active" gboolean : Read "guid" gchar* : Read "hashtype" guint : Read "login" gchar* : Read "password" gchar* : Read "sitegroup" guint : Read
MidgardUser ( midgard_user ) class is a proxy between person records
( represented by built in midgard_person class ) and user's account.
It also let's you authenticate using user's account and login into Midgard sitegroup.
The easiest way to create new MidgardUser instance is by calling midgard_user_auth().
MidgardUser provides very basic and low level access control system.
MidgardUser * midgard_user_auth (MidgardConnection *mgd, const gchar *name, const gchar *password, const gchar *sitegroup, gboolean trusted);
|
|
|
|
|
|
|
|
|
|
Returns : |
gboolean midgard_user_set_active (MidgardUser *user, gboolean flag);
|
|
|
|
Returns : |
gboolean midgard_user_password (MidgardUser *self, const gchar *login, const gchar *password, guint hashtype);
|
|
|
|
|
|
|
|
Returns : |
MgdObject * midgard_user_get_person (MidgardUser *self);
|
|
Returns : |