00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021 #ifndef _POPT_COMMON_H
00022 #define _POPT_COMMON_H
00023
00024 #include <popt.h>
00025
00026
00027 extern struct poptOption popt_common_samba[];
00028 extern struct poptOption popt_common_connection[];
00029 extern struct poptOption popt_common_version[];
00030 extern struct poptOption popt_common_credentials[];
00031 extern const struct poptOption popt_common_dynconfig[];
00032
00033 #ifndef POPT_TABLEEND
00034 #define POPT_TABLEEND { NULL, '\0', 0, 0, 0, NULL, NULL }
00035 #endif
00036
00037 #define POPT_COMMON_SAMBA { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_samba, 0, "Common samba options:", NULL },
00038 #define POPT_COMMON_CONNECTION { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_connection, 0, "Connection options:", NULL },
00039 #define POPT_COMMON_VERSION { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_version, 0, "Common samba options:", NULL },
00040 #define POPT_COMMON_CREDENTIALS { NULL, 0, POPT_ARG_INCLUDE_TABLE, popt_common_credentials, 0, "Authentication options:", NULL },
00041 #define POPT_COMMON_DYNCONFIG { NULL, 0, POPT_ARG_INCLUDE_TABLE, \
00042 CONST_DISCARD(poptOption *, popt_common_dynconfig), 0, \
00043 "Build-time configuration overrides:", NULL },
00044
00045 struct user_auth_info {
00046 pstring username;
00047 pstring password;
00048 BOOL got_pass;
00049 BOOL use_kerberos;
00050 int signing_state;
00051 };
00052
00053 extern struct user_auth_info cmdline_auth_info;
00054
00055 #endif