/*
- * $Id: globals.h,v 1.30 2009-11-05 14:38:07 franklahm Exp $
- *
* Copyright (c) 1990,1993 Regents of The University of Michigan.
* All Rights Reserved. See COPYRIGHT.
*/
#define OPTION_NOSLP (1 << 5)
#define OPTION_ANNOUNCESSH (1 << 6)
#define OPTION_UUID (1 << 7)
+#define OPTION_ACL2MACCESS (1 << 8)
+#define OPTION_NOZEROCONF (1 << 9)
#ifdef FORCE_UIDGID
/* set up a structure for this */
};
struct afp_options {
- int connections, transports, tickleval, timeout, server_notif, flags;
+ int connections, transports, tickleval, timeout, server_notif, flags, dircachesize;
unsigned char passwdbits, passwdminlen, loginmaxfail;
u_int32_t server_quantum;
char hostname[MAXHOSTNAMELEN + 1], *server, *ipaddr, *port, *configfile;
struct at_addr ddpaddr;
char *uampath, *fqdn;
char *pidfile;
+ char *sigconffile;
+ char *uuidconf;
struct afp_volume_name defaultvol, systemvol, uservol;
int closevol;
char *guest, *loginmesg, *keyfile, *passwdfile;
char *uamlist;
char *authprintdir;
- char *signature;
+ char *signatureopt;
+ unsigned char signature[16];
char *k5service, *k5realm, *k5keytab;
char *unixcodepage,*maccodepage;
charset_t maccharset, unixcharset;
/* default value for winbind authentication */
char *ntdomain, *ntseparator;
+ char *logconfig;
};
#define AFPOBJ_TMPSIZ (MAXPATHLEN)
typedef struct _AFPObj {
int proto;
unsigned long servernum;
- void *handle, *config;
+ void *handle; /* either (DSI *) or (ASP *) */
+ void *config;
struct afp_options options;
char *Obj, *Type, *Zone;
char username[MAXUSERLEN];
/* typedef for AFP functions handlers */
typedef int (*AFPCmd)(AFPObj *obj, char *ibuf, size_t ibuflen, char *rbuf, size_t *rbuflen);
+/* afp_dsi.c */
+extern AFPObj *AFPobj;
+
extern int afp_version;
extern int afp_errno;
extern unsigned char nologin;
extern int parseline (int, char *);
/* afp_util.c */
-const char *AfpNum2name (int );
+extern const char *AfpNum2name (int );
+extern const char *AfpErr2name(int err);
+
+/* directory.c */
+extern struct dir rootParent;
#ifndef NO_DDP
extern void afp_over_asp (AFPObj *);