netatalk  4.5.0
Free and Open Source Apple Filing Protocol (AFP) Server
Loading...
Searching...
No Matches
uams_guest.c File Reference
#include <errno.h>
#include <pwd.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <atalk/afp.h>
#include <atalk/compat.h>
#include <atalk/logger.h>
#include <atalk/uam.h>
#include <atalk/util.h>

Functions

UAM_MODULE_EXPORT void append (struct papfile *, const char *, int)
 
static int noauth_login (void *obj, struct passwd **uam_pwd, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
 
static int noauth_login_ext (void *obj, char *uname, struct passwd **uam_pwd, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen)
 
static int noauth_printer (char *start, char *stop, char *username, struct papfile *out)
 
static int uam_setup (void *handle, const char *path)
 
static void uam_cleanup (void)
 

Variables

UAM_MODULE_EXPORT struct uam_export uams_guest
 

Function Documentation

◆ append()

UAM_MODULE_EXPORT void append ( struct papfile pf,
const char *  data,
int  len 
)
extern

◆ noauth_login()

static int noauth_login ( void *  obj,
struct passwd **  uam_pwd,
char *  ibuf,
size_t  ibuflen,
char *  rbuf,
size_t *  rbuflen 
)
static

login and login_ext are almost the same

◆ noauth_login_ext()

static int noauth_login_ext ( void *  obj,
char *  uname,
struct passwd **  uam_pwd,
char *  ibuf,
size_t  ibuflen,
char *  rbuf,
size_t *  rbuflen 
)
static

◆ noauth_printer()

static int noauth_printer ( char *  start,
char *  stop,
char *  username,
struct papfile out 
)
static

Printer NoAuthUAM Login

◆ uam_cleanup()

static void uam_cleanup ( void  )
static

◆ uam_setup()

static int uam_setup ( void *  handle,
const char *  path 
)
static

Variable Documentation

◆ uams_guest

UAM_MODULE_EXPORT struct uam_export uams_guest
Initial value:
= {
}
#define UAM_MODULE_VERSION
Definition uam.h:21
#define UAM_MODULE_SERVER
Definition uam.h:17
static int uam_setup(void *handle, const char *path)
Definition uams_guest.c:121
static void uam_cleanup(void)
Definition uams_guest.c:136