Back to index

openldap  2.4.31
Classes | Defines | Typedefs | Enumerations | Functions | Variables
slapcommon.h File Reference
#include "slap.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  tool_vars

Defines

#define SLAPD_TOOLS   1
#define be   tool_globals.tv_be
#define dbnum   tool_globals.tv_dbnum
#define verbose   tool_globals.tv_verbose
#define quiet   tool_globals.tv_quiet
#define jumpline   tool_globals.tv_jumpline
#define update_ctxcsn   tool_globals.tv_update_ctxcsn
#define continuemode   tool_globals.tv_continuemode
#define nosubordinates   tool_globals.tv_nosubordinates
#define dryrun   tool_globals.tv_dryrun
#define sub_ndn   tool_globals.tv_sub_ndn
#define scope   tool_globals.tv_scope
#define filter   tool_globals.tv_filter
#define ldiffp   tool_globals.tv_ldiffp
#define baseDN   tool_globals.tv_baseDN
#define authcDN   tool_globals.tv_authcDN
#define authzDN   tool_globals.tv_authzDN
#define authcID   tool_globals.tv_authcID
#define authzID   tool_globals.tv_authzID
#define mech   tool_globals.tv_mech
#define realm   tool_globals.tv_realm
#define listener_url   tool_globals.tv_listener_url
#define peer_domain   tool_globals.tv_peer_domain
#define peer_name   tool_globals.tv_peer_name
#define sock_name   tool_globals.tv_sock_name
#define ssf   tool_globals.tv_ssf
#define transport_ssf   tool_globals.tv_transport_ssf
#define tls_ssf   tool_globals.tv_tls_ssf
#define sasl_ssf   tool_globals.tv_sasl_ssf
#define dn_mode   tool_globals.tv_dn_mode
#define csnsid   tool_globals.tv_csnsid
#define ldif_wrap   tool_globals.tv_ldif_wrap
#define maxcsn   tool_globals.tv_maxcsn
#define maxcsnbuf   tool_globals.tv_maxcsnbuf
#define SLAP_TOOL_LDAPDN_PRETTY   SLAP_LDAPDN_PRETTY
#define SLAP_TOOL_LDAPDN_NORMAL   (SLAP_LDAPDN_PRETTY << 1)

Typedefs

typedef struct tool_vars tool_vars

Enumerations

enum  slaptool {
  SLAPADD = 1, SLAPCAT, SLAPDN, SLAPINDEX,
  SLAPPASSWD, SLAPSCHEMA, SLAPTEST, SLAPAUTH,
  SLAPACL, SLAPLAST
}

Functions

void slap_tool_init LDAP_P ((const char *name, int tool, int argc, char **argv))
int slap_tool_destroy LDAP_P ((void))
int slap_tool_update_ctxcsn LDAP_P ((const char *progname, unsigned long sid, struct berval *bvtext))
unsigned long
slap_tool_update_ctxcsn_check 
LDAP_P ((const char *progname, Entry *e))
int slap_tool_entry_check LDAP_P ((const char *progname, Operation *op, Entry *e, int lineno, const char **text, char *textbuf, size_t textlen))

Variables

tool_vars tool_globals

Class Documentation

struct tool_vars

Definition at line 36 of file slapcommon.h.

Collaboration diagram for tool_vars:
Class Members
Backend * tv_be
int tv_continuemode
unsigned int tv_csnsid
int tv_dbnum
unsigned tv_dn_mode
int tv_dryrun
Filter * tv_filter
int tv_jumpline
ber_len_t tv_ldif_wrap
struct LDIFFP * tv_ldiffp
char tv_maxcsnbuf
int tv_nosubordinates
int tv_quiet
char * tv_realm
slap_ssf_t tv_sasl_ssf
int tv_scope
slap_ssf_t tv_ssf
slap_ssf_t tv_tls_ssf
slap_ssf_t tv_transport_ssf
int tv_update_ctxcsn
int tv_verbose

Define Documentation

#define authcDN   tool_globals.tv_authcDN

Definition at line 88 of file slapcommon.h.

#define authcID   tool_globals.tv_authcID

Definition at line 90 of file slapcommon.h.

#define authzDN   tool_globals.tv_authzDN

Definition at line 89 of file slapcommon.h.

#define authzID   tool_globals.tv_authzID

Definition at line 91 of file slapcommon.h.

#define baseDN   tool_globals.tv_baseDN

Definition at line 87 of file slapcommon.h.

#define be   tool_globals.tv_be

Definition at line 74 of file slapcommon.h.

#define continuemode   tool_globals.tv_continuemode

Definition at line 80 of file slapcommon.h.

#define csnsid   tool_globals.tv_csnsid

Definition at line 103 of file slapcommon.h.

#define dbnum   tool_globals.tv_dbnum

Definition at line 75 of file slapcommon.h.

#define dn_mode   tool_globals.tv_dn_mode

Definition at line 102 of file slapcommon.h.

#define dryrun   tool_globals.tv_dryrun

Definition at line 82 of file slapcommon.h.

LDAP_CONST char int LDAP_CONST char * filter   tool_globals.tv_filter

Definition at line 85 of file slapcommon.h.

#define jumpline   tool_globals.tv_jumpline

Definition at line 78 of file slapcommon.h.

#define ldif_wrap   tool_globals.tv_ldif_wrap

Definition at line 104 of file slapcommon.h.

#define ldiffp   tool_globals.tv_ldiffp

Definition at line 86 of file slapcommon.h.

#define listener_url   tool_globals.tv_listener_url

Definition at line 94 of file slapcommon.h.

#define maxcsn   tool_globals.tv_maxcsn

Definition at line 105 of file slapcommon.h.

#define maxcsnbuf   tool_globals.tv_maxcsnbuf

Definition at line 106 of file slapcommon.h.

#define mech   tool_globals.tv_mech

Definition at line 92 of file slapcommon.h.

#define nosubordinates   tool_globals.tv_nosubordinates

Definition at line 81 of file slapcommon.h.

#define peer_domain   tool_globals.tv_peer_domain

Definition at line 95 of file slapcommon.h.

#define peer_name   tool_globals.tv_peer_name

Definition at line 96 of file slapcommon.h.

#define quiet   tool_globals.tv_quiet

Definition at line 77 of file slapcommon.h.

#define realm   tool_globals.tv_realm

Definition at line 93 of file slapcommon.h.

#define sasl_ssf   tool_globals.tv_sasl_ssf

Definition at line 101 of file slapcommon.h.

struct berval struct berval int scope   tool_globals.tv_scope

Definition at line 84 of file slapcommon.h.

Definition at line 109 of file slapcommon.h.

Definition at line 108 of file slapcommon.h.

#define SLAPD_TOOLS   1

Definition at line 20 of file slapcommon.h.

#define sock_name   tool_globals.tv_sock_name

Definition at line 97 of file slapcommon.h.

slap_ssf_t ssf   tool_globals.tv_ssf

Definition at line 98 of file slapcommon.h.

#define sub_ndn   tool_globals.tv_sub_ndn

Definition at line 83 of file slapcommon.h.

#define tls_ssf   tool_globals.tv_tls_ssf

Definition at line 100 of file slapcommon.h.

#define transport_ssf   tool_globals.tv_transport_ssf

Definition at line 99 of file slapcommon.h.

#define update_ctxcsn   tool_globals.tv_update_ctxcsn

Definition at line 79 of file slapcommon.h.

#define verbose   tool_globals.tv_verbose

Definition at line 76 of file slapcommon.h.


Typedef Documentation

typedef struct tool_vars tool_vars

Enumeration Type Documentation

enum slaptool
Enumerator:
SLAPADD 
SLAPCAT 
SLAPDN 
SLAPINDEX 
SLAPPASSWD 
SLAPSCHEMA 
SLAPTEST 
SLAPAUTH 
SLAPACL 
SLAPLAST 

Definition at line 23 of file slapcommon.h.

              {
       SLAPADD=1,    /* LDIF -> database tool */
       SLAPCAT,      /* database -> LDIF tool */
       SLAPDN,              /* DN check w/ syntax tool */
       SLAPINDEX,    /* database index tool */
       SLAPPASSWD,   /* password generation tool */
       SLAPSCHEMA,   /* schema checking tool */
       SLAPTEST,     /* slapd.conf test tool */
       SLAPAUTH,     /* test authz-regexp and authc/authz stuff */
       SLAPACL,      /* test acl */
       SLAPLAST
};

Function Documentation

void slap_tool_init LDAP_P ( (const char *name, int tool, int argc, char **argv )
int slap_tool_update_ctxcsn LDAP_P ( (const char *progname, unsigned long sid, struct berval *bvtext)  )

Variable Documentation

Definition at line 41 of file slapcommon.c.