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 */
11 /* Defined and set in common.c */
12 extern int authmethod;
18 extern char *ldaphost;
20 #ifdef HAVE_CYRUS_SASL
21 extern unsigned sasl_flags;
22 extern char *sasl_realm;
23 extern char *sasl_authc_id;
24 extern char *sasl_authz_id;
25 extern char *sasl_mech;
26 extern char *sasl_secprops;
31 extern int manageDSAit;
35 extern int want_bindpw;
36 extern struct berval passwd;
42 /* Defined in common.c, set in main() */
45 /* Defined in main program */
46 extern const char options[];
47 void usage LDAP_P(( void )) LDAP_GCCATTR((noreturn));
48 int handle_private_option LDAP_P(( int i ));
50 /* Defined in common.c */
51 void tool_common_usage LDAP_P(( void ));
52 void tool_args LDAP_P(( int, char ** ));
53 LDAP *tool_conn_setup LDAP_P(( int dont, void (*private_setup)( LDAP * ) ));
54 void tool_bind LDAP_P(( LDAP * ));
55 void tool_server_controls LDAP_P(( LDAP *, LDAPControl *, int ));
57 #endif /* _COMMON_H_ */