Back to index

openldap  2.4.31
Enumerations | Functions | Variables
config.c File Reference
#include "portable.h"
#include <stdio.h>
#include <ac/string.h>
#include <ac/socket.h>
#include "slap.h"
#include "shell.h"
#include "config.h"

Go to the source code of this file.

Enumerations

enum  {
  SHELL_BIND = 0, SHELL_UNBIND = 1, SHELL_SEARCH, SHELL_COMPARE,
  SHELL_MODIFY, SHELL_MODRDN, SHELL_ADD, SHELL_DELETE
}

Functions

static int shell_cf (ConfigArgs *c)
int shell_back_init_cf (BackendInfo *bi)

Variables

static ConfigDriver shell_cf
static ConfigTable shellcfg []
static ConfigOCs shellocs []

Enumeration Type Documentation

anonymous enum
Enumerator:
SHELL_BIND 
SHELL_UNBIND 
SHELL_SEARCH 
SHELL_COMPARE 
SHELL_MODIFY 
SHELL_MODRDN 
SHELL_ADD 
SHELL_DELETE 

Definition at line 44 of file config.c.


Function Documentation

Definition at line 133 of file config.c.

Here is the call graph for this function:

Here is the caller graph for this function:

static int shell_cf ( ConfigArgs c) [static]

Definition at line 112 of file config.c.

{
       struct shellinfo     *si = (struct shellinfo *) c->be->be_private;
       char ***arr = &si->si_bind;

       if ( c->op == SLAP_CONFIG_EMIT ) {
              struct berval bv;
              if ( !arr[c->type] ) return 1;
              bv.bv_val = ldap_charray2str( arr[c->type], " " );
              bv.bv_len = strlen( bv.bv_val );
              ber_bvarray_add( &c->rvalue_vals, &bv );
       } else if ( c->op == LDAP_MOD_DELETE ) {
              ldap_charray_free( arr[c->type] );
              arr[c->type] = NULL;
       } else {
              arr[c->type] = ldap_charray_dup( &c->argv[1] );
       }
       return 0;
}

Here is the call graph for this function:


Variable Documentation

Definition at line 42 of file config.c.

ConfigTable shellcfg[] [static]

Definition at line 55 of file config.c.

ConfigOCs shellocs[] [static]
Initial value:
 {
       { "( OLcfgDbOc:10.1 "
              "NAME 'olcShellConfig'  "
              "DESC 'Shell backend configuration' "
              "SUP olcDatabaseConfig "
              "MAY ( olcShellBind $ olcShellUnbind $ olcShellSearch $ "
                     "olcShellCompare $ olcShellModify $ olcShellModRDN $ "
                     "olcShellAdd $ olcShellDelete ) )",
                            Cft_Database, shellcfg },
       { NULL }
}

Definition at line 99 of file config.c.