!C99Shell v. 1.0 pre-release build #16!

Software: Apache/2.0.54 (Fedora). PHP/5.0.4 

uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 

uid=48(apache) gid=48(apache) groups=48(apache)
context=system_u:system_r:httpd_sys_script_t
 

Safe-mode: OFF (not secure)

/usr/share/gtk-doc/html/libuser/   drwxr-xr-x
Free 3.02 GB of 27.03 GB (11.18%)
Home    Back    Forward    UPDIR    Refresh    Search    Buffer    Encoder    Tools    Proc.    FTP brute    Sec.    SQL    PHP-code    Update    Feedback    Self remove    Logout    


Viewing file:     libuser-entity.html (34.66 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
entity

entity

entity — Functions for manipulating lu_ent structures.

Synopsis




#define     LU_USERNAME
#define     LU_USERPASSWORD
#define     LU_UIDNUMBER
#define     LU_GIDNUMBER
#define     LU_GECOS
#define     LU_HOMEDIRECTORY
#define     LU_LOGINSHELL
#define     LU_GROUPNAME
#define     LU_GROUPPASSWORD
#define     LU_MEMBERNAME
#define     LU_ADMINISTRATORNAME
#define     LU_SHADOWNAME
#define     LU_SHADOWPASSWORD
#define     LU_SHADOWLASTCHANGE
#define     LU_SHADOWMIN
#define     LU_SHADOWMAX
#define     LU_SHADOWWARNING
#define     LU_SHADOWINACTIVE
#define     LU_SHADOWEXPIRE
#define     LU_SHADOWFLAG
#define     LU_COMMONNAME
#define     LU_GIVENNAME
#define     LU_SN
#define     LU_ROOMNUMBER
#define     LU_TELEPHONENUMBER
#define     LU_HOMEPHONE
#define     LU_EMAIL
lu_ent_t*   lu_ent_new                      (void);
void        lu_ent_free                     (lu_ent_t *ent);
void        lu_ent_copy                     (lu_ent_t *source,
                                             lu_ent_t *dest);
void        lu_ent_commit                   (lu_ent_t *ent);
void        lu_ent_revert                   (lu_ent_t *ent);
void        lu_ent_add                      (lu_ent_t *ent,
                                             const char *attr,
                                             const GValue *value);
void        lu_ent_add_current              (lu_ent_t *ent,
                                             const char *attr,
                                             const GValue *value);
void        lu_ent_clear                    (lu_ent_t *ent,
                                             const char *attr);
void        lu_ent_clear_all                (lu_ent_t *ent);
void        lu_ent_clear_all_current        (lu_ent_t *ent);
void        lu_ent_clear_current            (lu_ent_t *ent,
                                             const char *attr);
void        lu_ent_del                      (lu_ent_t *ent,
                                             const char *attr,
                                             const GValue *value);
void        lu_ent_del_current              (lu_ent_t *ent,
                                             const char *attr,
                                             const GValue *value);
void        lu_ent_dump                     (lu_ent_t *ent,
                                             FILE *fp);
GValueArray* lu_ent_get                     (lu_ent_t *ent,
                                             const char *attribute);
GList*      lu_ent_get_attributes           (lu_ent_t *ent);
GList*      lu_ent_get_attributes_current   (lu_ent_t *ent);
GValueArray* lu_ent_get_current             (lu_ent_t *ent,
                                             const char *attribute);
gboolean    lu_ent_has                      (lu_ent_t *ent,
                                             const char *attribute);
gboolean    lu_ent_has_current              (lu_ent_t *ent,
                                             const char *attribute);
void        lu_ent_set                      (lu_ent_t *ent,
                                             const char *attr,
                                             const GValueArray *values);
void        lu_ent_set_current              (lu_ent_t *ent,
                                             const char *attr,
                                             const GValueArray *values);

Description

entity.h declares functions for manipulating lu_ent structures, which are used by libuser, its modules, and applications to hold data about a particular user or group account.

Each struct lu_ent contains two sets of attributes: pending and current. The pending attributes are modified by default, the current attributes are modified by functions ending with _current.

Details

LU_USERNAME

#define LU_USERNAME		"pw_name"


LU_USERPASSWORD

#define LU_USERPASSWORD		"pw_passwd"


LU_UIDNUMBER

#define LU_UIDNUMBER		"pw_uid"


LU_GIDNUMBER

#define LU_GIDNUMBER		"pw_gid"


LU_GECOS

#define LU_GECOS		"pw_gecos"


LU_HOMEDIRECTORY

#define LU_HOMEDIRECTORY	"pw_dir"


LU_LOGINSHELL

#define LU_LOGINSHELL		"pw_shell"


LU_GROUPNAME

#define LU_GROUPNAME		"gr_name"


LU_GROUPPASSWORD

#define LU_GROUPPASSWORD	"gr_passwd"


LU_MEMBERNAME

#define LU_MEMBERNAME		"gr_mem"


LU_ADMINISTRATORNAME

#define LU_ADMINISTRATORNAME	"gr_adm"


LU_SHADOWNAME

#define LU_SHADOWNAME		LU_USERNAME


LU_SHADOWPASSWORD

#define LU_SHADOWPASSWORD	"sp_pwdp"


LU_SHADOWLASTCHANGE

#define LU_SHADOWLASTCHANGE	"sp_lstchg"


LU_SHADOWMIN

#define LU_SHADOWMIN		"sp_min"


LU_SHADOWMAX

#define LU_SHADOWMAX		"sp_max"


LU_SHADOWWARNING

#define LU_SHADOWWARNING	"sp_warn"


LU_SHADOWINACTIVE

#define LU_SHADOWINACTIVE	"sp_inact"


LU_SHADOWEXPIRE

#define LU_SHADOWEXPIRE		"sp_expire"


LU_SHADOWFLAG

#define LU_SHADOWFLAG		"sp_flag"


LU_COMMONNAME

#define LU_COMMONNAME		"cn"


LU_GIVENNAME

#define LU_GIVENNAME		"givenName"


LU_SN

#define LU_SN			"sn"


LU_ROOMNUMBER

#define LU_ROOMNUMBER		"roomNumber"


LU_TELEPHONENUMBER

#define LU_TELEPHONENUMBER	"telephoneNumber"


LU_HOMEPHONE

#define LU_HOMEPHONE		"homePhone"


LU_EMAIL

#define LU_EMAIL		"mail"


lu_ent_new ()

lu_ent_t*   lu_ent_new                      (void);

Creates a new, empty struct lu_ent.

Returns :the created entity, which should be deallocated by lu_ent_free()

lu_ent_free ()

void        lu_ent_free                     (lu_ent_t *ent);

Frees an struct lu_ent, including all strings it owns.

ent :the entity to free

lu_ent_copy ()

void        lu_ent_copy                     (lu_ent_t *source,
                                             lu_ent_t *dest);

Copies one struct lu_ent over another.

source :the entity to copy
dest :the destination space, must be already allocated by lu_ent_new()

lu_ent_commit ()

void        lu_ent_commit                   (lu_ent_t *ent);

Sets pending attribute changes as current values of the entity.

ent :an entity

lu_ent_revert ()

void        lu_ent_revert                   (lu_ent_t *ent);

Replaces all attributes with changes pending by their current values, forgetting the pending changes.

ent :an entity

lu_ent_add ()

void        lu_ent_add                      (lu_ent_t *ent,
                                             const char *attr,
                                             const GValue *value);

Appends value to pending attribute attr in a struct lu_ent if value is not yet in the list of attr values.

ent :an entity
attr :attribute name
value :new attribute value

lu_ent_add_current ()

void        lu_ent_add_current              (lu_ent_t *ent,
                                             const char *attr,
                                             const GValue *value);

Appends value to current attribute attr in a struct lu_ent if value is not yet in the list of attr values.

ent :an entity
attr :attribute name
value :new attribute value

lu_ent_clear ()

void        lu_ent_clear                    (lu_ent_t *ent,
                                             const char *attr);

Removes all values of pending attribute attribute from a struct lu_ent.

ent :an entity
attr :attribute name

lu_ent_clear_all ()

void        lu_ent_clear_all                (lu_ent_t *ent);

Removes all pending attributes from a struct lu_ent.

ent :an entity

lu_ent_clear_all_current ()

void        lu_ent_clear_all_current        (lu_ent_t *ent);

Removes all current attributes from a struct lu_ent.

ent :an entity

lu_ent_clear_current ()

void        lu_ent_clear_current            (lu_ent_t *ent,
                                             const char *attr);

Removes all values of current attribute attribute from a struct lu_ent.

ent :an entity
attr :attribute name

lu_ent_del ()

void        lu_ent_del                      (lu_ent_t *ent,
                                             const char *attr,
                                             const GValue *value);

Removes a pending attribute attr value value from a struct lu_ent, if present.

ent :an entity
attr :attribute name
value :attribute value

lu_ent_del_current ()

void        lu_ent_del_current              (lu_ent_t *ent,
                                             const char *attr,
                                             const GValue *value);

Removes a current attribute attr value value from a struct lu_ent, if present.

ent :an entity
attr :attribute name
value :attribute value

lu_ent_dump ()

void        lu_ent_dump                     (lu_ent_t *ent,
                                             FILE *fp);

Dumps an struct lu_ent to a file in text form, for debugging.

ent :the entity to dump
fp :destination file

lu_ent_get ()

GValueArray* lu_ent_get                     (lu_ent_t *ent,
                                             const char *attribute);

Returns values associated with a pending attribute in a struct lu_ent.

ent :an entity
attribute :attribute name
Returns :a list of values, valid at least until they are modified or deleted. The list should not be freed by the caller. Returns NULL if the attribute is not present at all or on error.

lu_ent_get_attributes ()

GList*      lu_ent_get_attributes           (lu_ent_t *ent);

Returns a list of all pending attributes in a struct lu_ent.

ent :an entity
Returns :a GList of attribute names. The list (but not the strings in the list) should be freed by the caller.

lu_ent_get_attributes_current ()

GList*      lu_ent_get_attributes_current   (lu_ent_t *ent);

Returns a list of all current attributes in a struct lu_ent.

ent :an entity
Returns :a GList of attribute names. The list (but not the strings in the list) should be freed by the caller.

lu_ent_get_current ()

GValueArray* lu_ent_get_current             (lu_ent_t *ent,
                                             const char *attribute);

Returns values associated with a current attribute in a struct lu_ent.

ent :an entity
attribute :attribute name
Returns :a list of values, valid at least until they are modified or deleted. The list should not be freed by the caller. Returns NULL if the attribute is not present at all or on error.

lu_ent_has ()

gboolean    lu_ent_has                      (lu_ent_t *ent,
                                             const char *attribute);

Checks if a struct lu_ent has at least one pending attribute attribute.

ent :an entity
attribute :attribute name
Returns :TRUE if attribute has a value in ent.

lu_ent_has_current ()

gboolean    lu_ent_has_current              (lu_ent_t *ent,
                                             const char *attribute);

Checks if a struct lu_ent has at least one current attribute attribute.

ent :an entity
attribute :attribute name
Returns :TRUE if attribute has a value in ent.

lu_ent_set ()

void        lu_ent_set                      (lu_ent_t *ent,
                                             const char *attr,
                                             const GValueArray *values);

Replaces all pending attributes attr in a struct lu_ent by a copy of values.

ent :an entity
attr :attribute name
values :an array of values

lu_ent_set_current ()

void        lu_ent_set_current              (lu_ent_t *ent,
                                             const char *attr,
                                             const GValueArray *values);

Replaces all current attributes attr in a struct lu_ent by a copy of values.

ent :an entity
attr :attribute name
values :an array of values

:: Command execute ::

Enter:
 
Select:
 

:: Search ::
  - regexp 

:: Upload ::
 
[ Read-Only ]

:: Make Dir ::
 
[ Read-Only ]
:: Make File ::
 
[ Read-Only ]

:: Go Dir ::
 
:: Go File ::
 

--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0031 ]--