ShellBanner
System:Linux MiraNet 3.0.0-14-generic-pae #23-Ubuntu SMP Mon Nov 21 22:07:10 UTC 2011 i686
Software:Apache. PHP/5.3.6-13ubuntu3.10
ID:uid=65534(nobody) gid=65534(nogroup) groups=65534(nogroup)
Safe Mode:OFF
Open_Basedir:OFF
Freespace:33.81 GB of 70.42 GB (48.02%)
MySQL: ON MSSQL: OFF Oracle: OFF PostgreSQL: OFF Curl: OFF Sockets: ON Fetch: OFF Wget: ON Perl: ON
Disabled Functions: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,

/ usr/ include/ - drwxr-xr-x

Directory:
Viewing file:     courierauth.h (3.6 KB)      -rw-r--r--
Select action/file-type:
(+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) |
#ifndef    courierauth_h
#define    courierauth_h

/*
** Copyright 2004 Double Precision, Inc.  See COPYING for
** distribution information.
*/

#include    "courier_auth_config.h"
#include    <sys/types.h>

#ifdef    __cplusplus
extern "C" {
#endif

static const char courierauth_h_rcsid[]="$Id: courierauth.h,v 1.6 2009/12/18 04:33:45 mrsam Exp $";

/*
  Callback authentication structure:
*/

struct authinfo {
    const char *sysusername;
    const uid_t *sysuserid;
    gid_t sysgroupid;
    const char *homedir;

    const char *address;
    const char *fullname;
    const char *maildir;
    const char *quota;

    const char *passwd;
    const char *clearpasswd;    /* For authldap */

    const char *options;

    } ;
/*
    Either sysusername or sysuserid may be NULL, but not both of them.
    They, and sysgroupid, specify the authenticated user's system
    userid and groupid.  homedir points to the authenticated user's
    home directory.  address, fullname, and maildir, are obvious.
    quota is populated with any maildir quota (see
    maildir/README.maildirquota).

    'options' is an optional string that contains per-user custom settings.
    See "OPTIONS" above.

    After populating this tructure, the lookup function calls the
    callback function that's specified in its second argument.  The
    callback function receives a pointer to the authinfo structure.

    The callback function also receives a context pointer, which is
    the third argument to the lookup function.

    The lookup function should return a negative value if he userid
    does not exist, a positive value if there was a temporary error
    looking up the userid, or whatever is the return code from the
    callback function, if the user exists.
*/


#define    AUTHTYPE_LOGIN    "login"        /* authdata is userid\npassword\n */
#define    AUTHTYPE_CRAMMD5 "cram-md5"    /* authdata is challenge\nresponse\n */
#define    AUTHTYPE_CRAMSHA1 "cram-sha1"    /* authdata is challenge\nresponse\n */
#define    AUTHTYPE_CRAMSHA256 "cram-sha256"    /* authdata is challenge\nresponse\n */

    /* auth_generic: INTERNAL */

int auth_generic(const char *service,
         const char *authtype,
         char *authdata,
         int (*callback_func)(struct authinfo *, void *),
         void *callback_arg);

    /* Login request: */
int auth_login(const char *service,
           const char *userid,
           const char *passwd,
           int (*callback_func)(struct authinfo *, void *),
           void *callback_arg);

    /* Return account info: */
int auth_getuserinfo(const char *service, const char *uid,
             int (*callback)(struct authinfo *, void *),
             void *arg);

    /* Enumerate accounts */
void auth_enumerate( void(*cb_func)(const char *name,
                    uid_t uid,
                    gid_t gid,
                    const char *homedir,
                    const char *maildir,
                    const char *options,
                    void *void_arg),
             void *void_arg);

    /* Change the password */
int auth_passwd(const char *service,
        const char *uid,
        const char *opwd,
        const char *npwd);

/* Utility function: parse OPTIONS string for a particular keyword */

extern int auth_getoptionenvint(const char *keyword);
extern char *auth_getoptionenv(const char *keyword);
extern char *auth_getoption(const char *options, const char *keyword);


    /*
    ** Utility function: typical action in a callback for auth_generic
    ** or auth_login.  Does the following:
    **
    ** Drops root, takes uid/gid in ainfo.
    **
    ** Changes current directory to the home directory.
    **
    ** Returns: <0 - fatal error before dropping root.
    **          >0 - fatal error after dropping root.
    **          =0 - all's OK.
    */

int auth_callback_default(struct authinfo *ainfo);

    /* Utility function: escape LDAP special characters */

char *courier_auth_ldap_escape(const char *str);
#ifdef    __cplusplus
}
#endif

#endif
Command:
Quick Commands:
Upload:
[Read-Only] Max size: 100MB
PHP Filesystem: <@ Ú
Search File:
regexp
Create File:
Overwrite [Read-Only]
View File:
Mass Defacement:
[+] Main Directory: [+] Defacement Url:
LmfaoX Shell - Private Build [BETA] - v0.1 -; Generated: 0.3101 seconds