#include <arpa/inet.h>#include <stdio.h>#include <stdlib.h>#include <string.h>#include <unistd.h>#include <atalk/afp.h>#include <atalk/uam.h>#include <atalk/util.h>#include <atalk/logger.h>#include <atalk/compat.h>Macros | |
| #define | PASSWDLEN 8 |
| #define | COPY_STRING(s) |
| #define | PAM_CRED_ESTABLISH PAM_ESTABLISH_CRED |
Functions | |
| UAM_MODULE_EXPORT void | append (struct papfile *, const char *, int) |
| static int | PAM_conv (int num_msg, struct pam_message **msg, struct pam_response **resp, void *appdata_ptr) |
| PAM conversation function. | |
| static int | login (void *obj, char *username, int ulen, struct passwd **uam_pwd, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| static int | pam_login (void *obj, struct passwd **uam_pwd, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| static int | pam_login_ext (void *obj, char *uname, struct passwd **uam_pwd, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| static void | pam_logout (void) |
| static int | pam_changepw (void *obj, char *username, struct passwd *pwd, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen) |
| static int | pam_printer (char *start, char *stop, char *username, struct papfile *out) |
| static int | uam_setup (void *obj, const char *path) |
| static void | uam_cleanup (void) |
Variables | |
| static pam_handle_t * | pamh = NULL |
| static const char * | hostname |
| static char * | PAM_username |
| static char * | PAM_password |
| static struct pam_conv | PAM_conversation |
| UAM_MODULE_EXPORT struct uam_export | uams_clrtxt |
| UAM_MODULE_EXPORT struct uam_export | uams_pam |
| #define COPY_STRING | ( | s | ) |
| #define PAM_CRED_ESTABLISH PAM_ESTABLISH_CRED |
| #define PASSWDLEN 8 |
|
extern |
|
static |
|
static |
change passwd
|
static |
PAM conversation function.
|
static |
cleartxt login
|
static |
|
static |
|
static |
Printer ClearTxtUAM login
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
| UAM_MODULE_EXPORT struct uam_export uams_clrtxt |
| UAM_MODULE_EXPORT struct uam_export uams_pam |