#include <arpa/inet.h>#include <ctype.h>#include <errno.h>#include <grp.h>#include <limits.h>#include <pwd.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <sys/param.h>#include <sys/stat.h>#include <sys/types.h>#include <time.h>#include <unistd.h>#include <atalk/afp.h>#include <atalk/compat.h>#include <atalk/fce_api.h>#include <atalk/globals.h>#include <atalk/logger.h>#include <atalk/server_ipc.h>#include <atalk/spotlight.h>#include <atalk/unix.h>#include <atalk/util.h>#include <atalk/uuid.h>#include "acls.h"#include "auth.h"#include "extattrs.h"#include "fork.h"#include "status.h"#include "switch.h"#include "uam_auth.h"Macros | |
| #define | UAM_LIST(type) |
Functions | |
| void | status_versions (char *data, const ASP asp, const DSI *dsi) |
| void | status_uams (char *data, const char *authlist) |
| static int | send_reply (const AFPObj *obj, const int err) |
| static int | afp_errpwdexpired (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| static int | afp_null_nolog (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| static int | set_auth_switch (const AFPObj *obj, int expired) |
| static int | login (AFPObj *obj, struct passwd *pwd, void(*logout)(void), int expired) |
| int | afp_zzz (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| static int | create_session_token (AFPObj *obj) |
| static int | create_session_key (AFPObj *obj) |
| int | afp_getsession (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| int | afp_disconnect (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| static int | get_version (AFPObj *obj, char *ibuf, size_t ibuflen, size_t len) |
| int | afp_login (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| int | afp_login_ext (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| int | afp_logincont (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| int | afp_logout (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| int | afp_changepw (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| int | afp_getuserinfo (AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| struct uam_obj * | auth_uamfind (const int type, const char *name, const int len) |
| int | auth_register (const int type, struct uam_obj *uam) |
| int | auth_load (AFPObj *obj, const char *path, const char *list) |
| void | auth_unload (void) |
Variables | |
| static int | afp_version_index |
| static struct uam_mod | uam_modules = {NULL, NULL, &uam_modules, &uam_modules} |
| static struct uam_obj | uam_login |
| static struct uam_obj | uam_changepw |
| static struct uam_obj * | afp_uam = NULL |
| #define UAM_LIST | ( | type | ) |
| int afp_changepw | ( | AFPObj * | obj, |
| char * | ibuf, | ||
| size_t | ibuflen, | ||
| char * | rbuf, | ||
| size_t * | rbuflen ) |
| int afp_disconnect | ( | AFPObj * | obj, |
| char * | ibuf, | ||
| size_t | ibuflen, | ||
| char * | rbuf, | ||
| size_t * | rbuflen ) |
|
static |
| int afp_getsession | ( | AFPObj * | obj, |
| char * | ibuf, | ||
| size_t | ibuflen, | ||
| char * | rbuf, | ||
| size_t * | rbuflen ) |
| int afp_getuserinfo | ( | AFPObj * | obj, |
| char * | ibuf, | ||
| size_t | ibuflen, | ||
| char * | rbuf, | ||
| size_t * | rbuflen ) |
| int afp_login | ( | AFPObj * | obj, |
| char * | ibuf, | ||
| size_t | ibuflen, | ||
| char * | rbuf, | ||
| size_t * | rbuflen ) |
| int afp_login_ext | ( | AFPObj * | obj, |
| char * | ibuf, | ||
| size_t | ibuflen, | ||
| char * | rbuf, | ||
| size_t * | rbuflen ) |
| int afp_logincont | ( | AFPObj * | obj, |
| char * | ibuf, | ||
| size_t | ibuflen, | ||
| char * | rbuf, | ||
| size_t * | rbuflen ) |
| int afp_logout | ( | AFPObj * | obj, |
| char * | ibuf, | ||
| size_t | ibuflen, | ||
| char * | rbuf, | ||
| size_t * | rbuflen ) |
|
static |
| int afp_zzz | ( | AFPObj * | obj, |
| char * | ibuf, | ||
| size_t | ibuflen, | ||
| char * | rbuf, | ||
| size_t * | rbuflen ) |
| int auth_load | ( | AFPObj * | obj, |
| const char * | path, | ||
| const char * | list ) |
load all of the modules
| int auth_register | ( | const int | type, |
| struct uam_obj * | uam ) |
| struct uam_obj * auth_uamfind | ( | const int | type, |
| const char * | name, | ||
| const int | len ) |
| void auth_unload | ( | void | ) |
get rid of all of the uams
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| void status_uams | ( | char * | data, |
| const char * | authlist ) |
|
static |
|
static |
|
static |
|
static |
|
static |