2002-12-13 00:32:26 +08:00
|
|
|
/* $OpenLDAP$ */
|
|
|
|
/*
|
2003-01-04 04:20:47 +08:00
|
|
|
* Copyright 2002-2003 The OpenLDAP Foundation, All Rights Reserved.
|
2002-12-13 00:32:26 +08:00
|
|
|
* COPYING RESTRICTIONS APPLY, see COPYRIGHT file
|
|
|
|
*/
|
|
|
|
/* common.h - common definitions for the ldap client tools */
|
|
|
|
|
|
|
|
#ifndef _COMMON_H_
|
|
|
|
#define _COMMON_H_
|
|
|
|
|
2003-01-21 04:11:57 +08:00
|
|
|
LDAP_BEGIN_DECL
|
|
|
|
|
2002-12-13 00:32:26 +08:00
|
|
|
/* Defined and set in common.c */
|
|
|
|
extern int authmethod;
|
|
|
|
extern char *binddn;
|
|
|
|
extern int contoper;
|
|
|
|
extern int debug;
|
|
|
|
extern char *infile;
|
|
|
|
extern char *ldapuri;
|
|
|
|
extern char *ldaphost;
|
|
|
|
extern int ldapport;
|
|
|
|
#ifdef HAVE_CYRUS_SASL
|
|
|
|
extern unsigned sasl_flags;
|
|
|
|
extern char *sasl_realm;
|
|
|
|
extern char *sasl_authc_id;
|
|
|
|
extern char *sasl_authz_id;
|
|
|
|
extern char *sasl_mech;
|
|
|
|
extern char *sasl_secprops;
|
|
|
|
#endif
|
|
|
|
extern int use_tls;
|
|
|
|
|
|
|
|
extern char *authzid;
|
|
|
|
extern int manageDSAit;
|
|
|
|
extern int noop;
|
|
|
|
|
|
|
|
extern int not;
|
|
|
|
extern int want_bindpw;
|
|
|
|
extern struct berval passwd;
|
|
|
|
extern char *pw_file;
|
|
|
|
extern int referrals;
|
2003-01-21 04:11:57 +08:00
|
|
|
extern int protocol;
|
2002-12-13 00:32:26 +08:00
|
|
|
extern int verbose;
|
|
|
|
extern int version;
|
|
|
|
|
|
|
|
/* Defined in common.c, set in main() */
|
2003-01-21 04:11:57 +08:00
|
|
|
extern char *prog;
|
2003-01-21 04:48:06 +08:00
|
|
|
extern const char __Version[];
|
2002-12-13 00:32:26 +08:00
|
|
|
|
|
|
|
/* Defined in main program */
|
|
|
|
extern const char options[];
|
|
|
|
void usage LDAP_P(( void )) LDAP_GCCATTR((noreturn));
|
|
|
|
int handle_private_option LDAP_P(( int i ));
|
|
|
|
|
|
|
|
/* Defined in common.c */
|
|
|
|
void tool_common_usage LDAP_P(( void ));
|
|
|
|
void tool_args LDAP_P(( int, char ** ));
|
|
|
|
LDAP *tool_conn_setup LDAP_P(( int dont, void (*private_setup)( LDAP * ) ));
|
|
|
|
void tool_bind LDAP_P(( LDAP * ));
|
|
|
|
void tool_server_controls LDAP_P(( LDAP *, LDAPControl *, int ));
|
|
|
|
|
2003-01-21 04:11:57 +08:00
|
|
|
LDAP_END_DECL
|
|
|
|
|
2002-12-13 00:32:26 +08:00
|
|
|
#endif /* _COMMON_H_ */
|