3 * Copyright 2002-2003 The OpenLDAP Foundation, All Rights Reserved.
4 * COPYING RESTRICTIONS APPLY, see COPYRIGHT file
6 /* common.h - common definitions for the ldap client tools */
13 /* Defined and set in common.c */
14 extern int authmethod;
20 extern char *ldaphost;
22 #ifdef HAVE_CYRUS_SASL
23 extern unsigned sasl_flags;
24 extern char *sasl_realm;
25 extern char *sasl_authc_id;
26 extern char *sasl_authz_id;
27 extern char *sasl_mech;
28 extern char *sasl_secprops;
33 extern int manageDSAit;
37 extern int want_bindpw;
38 extern struct berval passwd;
45 /* Defined in common.c, set in main() */
47 extern const char __Version[];
49 /* Defined in main program */
50 extern const char options[];
51 void usage LDAP_P(( void )) LDAP_GCCATTR((noreturn));
52 int handle_private_option LDAP_P(( int i ));
54 /* Defined in common.c */
55 void tool_common_usage LDAP_P(( void ));
56 void tool_args LDAP_P(( int, char ** ));
57 LDAP *tool_conn_setup LDAP_P(( int dont, void (*private_setup)( LDAP * ) ));
58 void tool_bind LDAP_P(( LDAP * ));
59 void tool_server_controls LDAP_P(( LDAP *, LDAPControl *, int ));
63 #endif /* _COMMON_H_ */