📄 myproxy_server.h
字号:
/* * myproxy_server.h * * Myproxy server header file */#ifndef __MYPROXY_SERVER_H#define __MYPROXY_SERVER_Hextern int errno;typedef struct { char *my_name; /* My name for logging and such */ int run_as_daemon; /* Run as a daemon? */ char *config_file; /* configuration file */ char *pidfile; /* pid file */ char *passphrase_policy_pgm; /* external program for password check */ char **accepted_credential_dns; /* List of creds that can be stored */ char **authorized_retriever_dns; /* List of DNs we'll delegate to */ char **default_retriever_dns; /* List of DNs we'll delegate to */ char **trusted_retriever_dns; /* DNs we'll delegate to w/o passwd */ char **default_trusted_retriever_dns; /* DNs we'll delegate to w/o pass */ char **authorized_renewer_dns; /* List of DNs that can renew creds */ char **default_renewer_dns; /* List of DNs that can renew creds */ char **authorized_key_retrievers_dns; /* List of DNs that can retroeve keys */ char **default_key_retrievers_dns; /* List of DNs that can retroeve keys */ int max_proxy_lifetime; /* Max life (in seconds) of retrieved creds */ char *cert_dir; /* Trusted certificate directory to send */ char *pam_policy; /* How we depend on PAM for passwd auth */ char *pam_id; /* Application name we present to PAM */ char *sasl_policy; /* SASL required, sufficient, disabled */ char *certificate_issuer_program; /* CA callout external program */ char *certificate_issuer_cert; /* CA certificate */ char *certificate_issuer_key; /* CA signing key */ char *certificate_issuer_key_passphrase; /* CA signing key passphrase */ char *certificate_issuer_email_domain; /* CA email domain for alt name */ char *certificate_mapfile; /* CA gridmap file if not the default */ char *certificate_issuer; /* CA issuer DN */ int max_cert_lifetime; /* like proxy_lifetime for the CA */ char *certificate_serialfile; /* path to serialnumber file for CA */ char *ca_ldap_server; /* URL to CA ldap user DN server */ char *ca_ldap_uid_attribute; /* Username attribute name */ char *ca_ldap_searchbase; /* Search base DN for ldap query */ char *ca_ldap_connect_dn; /* Optional connect-as ldap DN */ char *ca_ldap_connect_passphrase; /* Optional connect-as ldap passphrase */ char *ca_ldap_dn_attribute; /* Opt - pull dn from record attr */ char *pubcookie_cert; /* Pubcookie login server certificate */ char *pubcookie_key; /* Pubcookie application server key */} myproxy_server_context_t;/********************************************************************** * * Routines from myproxy_server_config.c * *//* * myproxy_server_config_read() * * Read the configuration file as indicated in the context, parse * it and store the results in the context. * * Returns 0 on success, -1 on error setting verror. */int myproxy_server_config_read(myproxy_server_context_t *context);/* * myproxy_server_check_policy_list() * * Check to see if the given client matches an entry the dn_list. * * Returns 1 if match found, 0 if no match found, * -1 on error, setting verror. */int myproxy_server_check_policy_list(const char **dn_list, const char *client_name);/* * myproxy_server_check_policy() * * Check to see if the given client matches the dn_regex. * * Returns 1 if match found, 0 if no match found, * -1 on error, setting verror. */int myproxy_server_check_policy(const char *dn_regex, const char *client_name);#endif /* !__MYPROXY_SERVER_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -