~ubuntu-branches/ubuntu/maverick/openldap/maverick-proposed

« back to all changes in this revision

Viewing changes to servers/slapd/slap.h

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug
  • Date: 2009-09-07 13:41:10 UTC
  • mto: This revision was merged to the branch mainline in revision 19.
  • Revision ID: james.westby@ubuntu.com-20090907134110-jsdrvn0atu1fex4m
Tags: upstream-2.4.18
ImportĀ upstreamĀ versionĀ 2.4.18

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* slap.h - stand alone ldap server include file */
2
 
/* $OpenLDAP: pkg/ldap/servers/slapd/slap.h,v 1.764.2.49 2009/07/01 17:01:58 quanah Exp $ */
 
2
/* $OpenLDAP: pkg/ldap/servers/slapd/slap.h,v 1.764.2.54 2009/08/25 22:44:25 quanah Exp $ */
3
3
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4
4
 *
5
5
 * Copyright 1998-2009 The OpenLDAP Foundation.
62
62
#define LDAP_COLLECTIVE_ATTRIBUTES
63
63
#define LDAP_COMP_MATCH
64
64
#define LDAP_SYNC_TIMESTAMP
65
 
#define SLAP_CONTROL_X_SORTEDRESULTS
66
65
#define SLAP_CONTROL_X_SESSION_TRACKING
67
66
#define SLAP_CONTROL_X_WHATFAILED
68
67
#define SLAP_CONFIG_DELETE
843
842
#define SLAP_AD_PROXIED         0x01U
844
843
#define SLAP_AD_NOINSERT        0x02U
845
844
 
 
845
#define SLAP_AN_OCEXCLUDE       0x01
 
846
#define SLAP_AN_OCINITED        0x02
 
847
 
846
848
struct AttributeName {
847
849
        struct berval           an_name;
848
850
        AttributeDescription    *an_desc;
849
 
        int                     an_oc_exclude;
 
851
        int                     an_flags;
850
852
        ObjectClass             *an_oc;
851
853
};
852
854
 
2062
2064
        BerVarray sr_ref;
2063
2065
        LDAPControl **sr_ctrls;
2064
2066
        union sr_u {
 
2067
                rep_search_s sru_search;
2065
2068
                rep_sasl_s sru_sasl;
2066
2069
                rep_extended_s sru_extended;
2067
 
                rep_search_s sru_search;
2068
2070
        } sr_un;
2069
2071
        slap_mask_t sr_flags;
2070
2072
#define REP_ENTRY_MODIFIABLE    0x0001U
2353
2355
} slap_overinfo;
2354
2356
 
2355
2357
/* Should successive callbacks in a chain be processed? */
2356
 
#define SLAP_CB_FREEME          0x04000
2357
2358
#define SLAP_CB_BYPASS          0x08800
2358
2359
#define SLAP_CB_CONTINUE        0x08000
2359
2360
 
2754
2755
#define send_ldap_intermediate( op, rs ) \
2755
2756
        ((op)->o_conn->c_send_ldap_intermediate)( op, rs )
2756
2757
 
2757
 
typedef struct slap_listener Listener;
 
2758
typedef struct Listener Listener;
2758
2759
 
2759
2760
/*
2760
2761
 * represents a connection from an ldap client
2901
2902
/*
2902
2903
 * listener; need to access it from monitor backend
2903
2904
 */
2904
 
struct slap_listener {
 
2905
struct Listener {
2905
2906
        struct berval sl_url;
2906
2907
        struct berval sl_name;
2907
2908
        mode_t  sl_perms;
2916
2917
        ber_socket_t sl_sd;
2917
2918
        Sockaddr sl_sa;
2918
2919
#define sl_addr sl_sa.sa_in_addr
 
2920
#ifdef LDAP_DEVEL
 
2921
#define LDAP_TCP_BUFFER
 
2922
#endif
 
2923
#ifdef LDAP_TCP_BUFFER
 
2924
        int     sl_tcp_rmem;    /* custom TCP read buffer size */
 
2925
        int     sl_tcp_wmem;    /* custom TCP write buffer size */
 
2926
#endif
2919
2927
};
2920
2928
 
2921
2929
/*