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;
32 extern char *assertion;
34 extern int manageDSAit;
38 extern int want_bindpw;
39 extern struct berval passwd;
46 /* Defined in common.c, set in main() */
48 extern const char __Version[];
50 /* Defined in main program */
51 extern const char options[];
52 void usage LDAP_P(( void )) LDAP_GCCATTR((noreturn));
53 int handle_private_option LDAP_P(( int i ));
55 /* Defined in common.c */
56 void tool_init LDAP_P(( void ));
57 void tool_common_usage LDAP_P(( void ));
58 void tool_args LDAP_P(( int, char ** ));
59 LDAP *tool_conn_setup LDAP_P(( int dont, void (*private_setup)( LDAP * ) ));
60 void tool_bind LDAP_P(( LDAP * ));
61 void tool_server_controls LDAP_P(( LDAP *, LDAPControl *, int ));
65 #endif /* _COMMON_H_ */