Back to index

openldap  2.4.31
Typedefs | Enumerations | Functions | Variables
common.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Typedefs

typedef LDAP_BEGIN_DECL enum
tool_type_t 
tool_type_t

Enumerations

enum  tool_type_t {
  TOOL_SEARCH = 0x01U, TOOL_COMPARE = 0x02U, TOOL_ADD = 0x04U, TOOL_DELETE = 0x08U,
  TOOL_MODIFY = 0x10U, TOOL_MODRDN = 0x20U, TOOL_EXOP = 0x40U, TOOL_WHOAMI = TOOL_EXOP | 0x100U,
  TOOL_PASSWD = TOOL_EXOP | 0x200U, TOOL_WRITE = (TOOL_ADD|TOOL_DELETE|TOOL_MODIFY|TOOL_MODRDN), TOOL_READ = (TOOL_SEARCH|TOOL_COMPARE), TOOL_ALL = 0xFFU
}

Functions

void usage LDAP_P ((void)) LDAP_GCCATTR((noreturn))
int handle_private_option LDAP_P ((int i))
void tool_init LDAP_P ((tool_type_t type))
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_exit LDAP_P ((LDAP *ld, int status)) LDAP_GCCATTR((noreturn))
void tool_server_controls LDAP_P ((LDAP *, LDAPControl *, int))
int tool_check_abandon LDAP_P ((LDAP *ld, int msgid))
void tool_perror LDAP_P ((const char *func, int err, const char *extra, const char *matched, const char *info, char **refs))
void tool_print_ctrls LDAP_P ((LDAP *ld, LDAPControl **ctrls))
int tool_write_ldif LDAP_P ((int type, char *name, char *value, ber_len_t vallen))
int tool_is_oid LDAP_P ((const char *s))

Variables

tool_type_t tool_type
int contoper
int debug
char * infile
int dont
int referrals
int verbose
int ldif
ber_len_t ldif_wrap
char * prog
char * ldapuri
char * ldaphost
int ldapport
int use_tls
int protocol
int version
int authmethod
char * binddn
int want_bindpw
char * pw_file
char * assertion
char * authzid
int manageDIT
int manageDSAit
int noop
int ppolicy
int preread
int postread
ber_int_t pr_morePagedResults
ber_int_t vlvPos
ber_int_t vlvCount
struct bervalvlvContext
const char __Version []
const char options []

Typedef Documentation


Enumeration Type Documentation

Enumerator:
TOOL_SEARCH 
TOOL_COMPARE 
TOOL_ADD 
TOOL_DELETE 
TOOL_MODIFY 
TOOL_MODRDN 
TOOL_EXOP 
TOOL_WHOAMI 
TOOL_PASSWD 
TOOL_WRITE 
TOOL_READ 
TOOL_ALL 

Definition at line 27 of file common.h.

                         {
       TOOL_SEARCH   = 0x01U,
       TOOL_COMPARE  = 0x02U,
       TOOL_ADD      = 0x04U,
       TOOL_DELETE   = 0x08U,
       TOOL_MODIFY   = 0x10U,
       TOOL_MODRDN   = 0x20U,

       TOOL_EXOP     = 0x40U,

       TOOL_WHOAMI   = TOOL_EXOP | 0x100U,
       TOOL_PASSWD   = TOOL_EXOP | 0x200U,

       TOOL_WRITE    = (TOOL_ADD|TOOL_DELETE|TOOL_MODIFY|TOOL_MODRDN),
       TOOL_READ     = (TOOL_SEARCH|TOOL_COMPARE),

       TOOL_ALL      = 0xFFU
} tool_type_t;

Function Documentation

void 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_exit LDAP_P ( (LDAP *ld, int status)  )
void tool_perror LDAP_P ( (const char *func, int err, const char *extra, const char *matched, const char *info, char **refs )
int tool_write_ldif LDAP_P ( (int type, char *name, char *value, ber_len_t vallen)  )
int tool_is_oid LDAP_P ( (const char *s )

Variable Documentation

const char __Version[]
char* assertion

Definition at line 97 of file common.c.

Definition at line 81 of file common.c.

char* authzid

Definition at line 99 of file common.c.

char* binddn

Definition at line 82 of file common.c.

Definition at line 61 of file common.c.

Definition at line 62 of file common.c.

Definition at line 64 of file common.c.

char* infile

Definition at line 63 of file common.c.

char* ldaphost

Definition at line 74 of file common.c.

Definition at line 75 of file common.c.

char* ldapuri

Definition at line 73 of file common.c.

Definition at line 68 of file common.c.

Definition at line 69 of file common.c.

Definition at line 105 of file common.c.

Definition at line 106 of file common.c.

Definition at line 107 of file common.c.

const char options[]

Definition at line 106 of file ldapcompare.c.

Definition at line 111 of file common.c.

Definition at line 108 of file common.c.

Definition at line 113 of file common.c.

Definition at line 109 of file common.c.

char* prog

Definition at line 70 of file common.c.

Definition at line 77 of file common.c.

char* pw_file

Definition at line 85 of file common.c.

Definition at line 66 of file common.c.

Definition at line 60 of file common.c.

Definition at line 76 of file common.c.

Definition at line 67 of file common.c.

Definition at line 78 of file common.c.

struct berval* vlvContext

Definition at line 126 of file common.c.

ber_int_t vlvCount

Definition at line 125 of file common.c.

ber_int_t vlvPos

Definition at line 124 of file common.c.

Definition at line 83 of file common.c.