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

« back to all changes in this revision

Viewing changes to servers/slapd/proto-slap.h

  • Committer: Bazaar Package Importer
  • Author(s): Mathias Gug, Steve Langasek, Mathias Gug
  • Date: 2009-02-18 18:44:00 UTC
  • mfrom: (1.1.2 upstream) (0.1.2 lenny)
  • Revision ID: james.westby@ubuntu.com-20090218184400-zw4mjse9eywt5566
Tags: 2.4.14-0ubuntu1
[ Steve Langasek ]
* New upstream version
  - Fixes a bug with the pcache overlay not returning cached entries
    (closes: #497697)
  - Update evolution-ntlm patch to apply to current Makefiles.
  - (tentatively) drop gnutls-ciphers, since this bug was reported to be
    fixed upstream in 2.4.8.  The fix applied in 2.4.8 didn't match the
    patch from the bug report, so this should be watched for regressions.
* Build against db4.7 instead of db4.2 at last!  Closes: #421946.
* Build with --disable-ndb, to avoid a misbuild when libmysqlclient is
  installed in the build environment.
* New patch, no-crlcheck-for-gnutls, to fix a build failure when using
  --with-tls=gnutls.

[ Mathias Gug ]
* Merge from debian unstable, remaining changes:
  - debian/apparmor-profile: add AppArmor profile
  - debian/slapd.postinst: Reload AA profile on configuration
  - updated debian/slapd.README.Debian for note on AppArmor
  - debian/control: Recommends apparmor >= 2.1+1075-0ubuntu6
  - debian/control: Conflicts with apparmor-profiles << 2.1+1075-0ubuntu4
    to make sure that if earlier version of apparmour-profiles gets
    installed it won't overwrite our profile.
  - Modify Maintainer value to match the DebianMaintainerField
    speficication.
  - follow ApparmorProfileMigration and force apparmor compalin mode on 
    some upgrades (LP: #203529)
  - debian/slapd.dirs: add etc/apparmor.d/force-complain
  - debian/slapd.preinst: create symlink for force-complain on pre-feisty
    upgrades, upgrades where apparmor-profiles profile is unchanged (ie
    non-enforcing) and upgrades where apparmor profile does not exist.
  - debian/slapd.postrm: remove symlink in force-complain/ on purge
  - debian/patches/fix-ucred-libc due to changes how newer glibc handle
    the ucred struct now.
  - debian/control:
    - Build-depend on libltdl7-dev rather then libltdl3-dev.
  - debian/patches/autogen.sh:
    - Call libtoolize with the --install option to install config.{guess,sub}
      files.
  - Don't use local statement in config script as it fails if /bin/sh
    points to bash (LP: #286063).
  - Disable the testsuite on hppa. Allows building of packages on this
    architecture again, once this package is in the archive.
    LP: #288908.
  - debian/slapd.postinst, debian/slapd.script-common: set correct ownership
    and permissions on /var/lib/ldap, /etc/ldap/slapd.d (group readable) and
    /var/run/slapd (world readable). (LP: #257667).
  - debian/patches/nssov-build, debian/rules: 
    Build and package the nss overlay.
    debian/schema/misc.ldif: add ldif file for the misc schema, which defines
    rfc822MailMember (required by the nss overlay).
  - debian/{control,rules}: enable PIE hardening
  - Use cn=config as the default configuration backend instead of 
    slapd.conf. Migrate slapd.conf  file to /etc/ldap/slapd.d/ on upgrade
    asking the end user to enter a new password to control the access to the
    cn=config tree.
* debian/patches/corrupt-contextCSN: The contextCSN can get corrupted at
  times. (ITS: #5947)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/* $OpenLDAP: pkg/ldap/servers/slapd/proto-slap.h,v 1.670.2.26 2008/07/08 19:25:38 quanah Exp $ */
 
1
/* $OpenLDAP: pkg/ldap/servers/slapd/proto-slap.h,v 1.670.2.40 2009/02/06 01:03:12 quanah Exp $ */
2
2
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
3
3
 *
4
 
 * Copyright 1998-2008 The OpenLDAP Foundation.
 
4
 * Copyright 1998-2009 The OpenLDAP Foundation.
5
5
 * All rights reserved.
6
6
 *
7
7
 * Redistribution and use in source and binary forms, with or without
93
93
        struct berval *default_set_attribute ));
94
94
LDAP_SLAPD_F (int) acl_string_expand LDAP_P((
95
95
        struct berval *newbuf, struct berval *pattern,
96
 
        char *match, int nmatch, regmatch_t *matches ));
 
96
        struct berval *dnmatch, struct berval *valmatch, AclRegexMatches *matches ));
97
97
 
98
98
/*
99
99
 * aclparse.c
111
111
LDAP_SLAPD_F (char *) accessmask2str LDAP_P(( slap_mask_t mask, char*, int debug ));
112
112
LDAP_SLAPD_F (slap_mask_t) str2accessmask LDAP_P(( const char *str ));
113
113
LDAP_SLAPD_F (void) acl_unparse LDAP_P(( AccessControl*, struct berval* ));
114
 
LDAP_SLAPD_F (void) acl_destroy LDAP_P(( AccessControl*, AccessControl* ));
 
114
LDAP_SLAPD_F (void) acl_destroy LDAP_P(( AccessControl* ));
115
115
LDAP_SLAPD_F (void) acl_free LDAP_P(( AccessControl *a ));
116
116
 
117
117
 
426
426
 */
427
427
 
428
428
LDAP_SLAPD_F (int) glue_sub_init( void );
429
 
LDAP_SLAPD_F (int) glue_sub_attach( void );
 
429
LDAP_SLAPD_F (int) glue_sub_attach( int online );
430
430
LDAP_SLAPD_F (int) glue_sub_add( BackendDB *be, int advert, int online );
431
431
LDAP_SLAPD_F (int) glue_sub_del( BackendDB *be );
432
432
 
473
473
LDAP_SLAPD_F (void) overlay_remove LDAP_P((
474
474
        BackendDB *be, slap_overinst *on ));
475
475
#endif /* SLAP_CONFIG_DELETE */
 
476
LDAP_SLAPD_F (int) overlay_callback_after_backover LDAP_P((
 
477
        Operation *op, slap_callback *sc, int append ));
 
478
 
476
479
/*
477
480
 * bconfig.c
478
481
 */
657
660
slap_ctrl_session_tracking_request_add LDAP_P((
658
661
        Operation *op, SlapReply *rs, LDAPControl *ctrl ));
659
662
#endif /* SLAP_CONTROL_X_SESSION_TRACKING */
 
663
#ifdef SLAP_CONTROL_X_WHATFAILED
 
664
LDAP_SLAPD_F (int)
 
665
slap_ctrl_whatFailed_add LDAP_P((
 
666
        Operation *op,
 
667
        SlapReply *rs,
 
668
        char **oids ));
 
669
#endif /* SLAP_CONTROL_X_WHATFAILED */
660
670
 
661
671
/*
662
672
 * config.c
735
745
 
736
746
LDAP_SLAPD_F (void) connection_closing LDAP_P((
737
747
        Connection *c, const char *why ));
 
748
LDAP_SLAPD_F (void) connection_hangup LDAP_P(( ber_socket_t fd ));
738
749
LDAP_SLAPD_F (int) connection_state_closing LDAP_P(( Connection *c ));
739
750
LDAP_SLAPD_F (const char *) connection_state2str LDAP_P(( int state ))
740
751
        LDAP_GCCATTR((const));
794
805
LDAP_SLAPD_V( const struct berval ) slap_ldapsync_bv;
795
806
LDAP_SLAPD_V( const struct berval ) slap_ldapsync_cn_bv;
796
807
LDAP_SLAPD_F (void) slap_get_commit_csn LDAP_P((
797
 
        Operation *, struct berval *maxcsn ));
 
808
        Operation *, struct berval *maxcsn, int *foundit ));
798
809
LDAP_SLAPD_F (void) slap_rewind_commit_csn LDAP_P(( Operation * ));
799
810
LDAP_SLAPD_F (void) slap_graduate_commit_csn LDAP_P(( Operation * ));
800
811
LDAP_SLAPD_F (Entry *) slap_create_context_csn_entry LDAP_P(( Backend *, struct berval *));
1026
1037
        const char **text ));
1027
1038
 
1028
1039
LDAP_SLAPD_F (void) filter_free LDAP_P(( Filter *f ));
1029
 
LDAP_SLAPD_F (void) filter_free_x LDAP_P(( Operation *op, Filter *f ));
 
1040
LDAP_SLAPD_F (void) filter_free_x LDAP_P(( Operation *op, Filter *f, int freeme ));
1030
1041
LDAP_SLAPD_F (void) filter2bv LDAP_P(( Filter *f, struct berval *bv ));
1031
1042
LDAP_SLAPD_F (void) filter2bv_x LDAP_P(( Operation *op, Filter *f, struct berval *bv ));
1032
1043
LDAP_SLAPD_F (Filter *) filter_dup LDAP_P(( Filter *f, void *memctx ));
1112
1123
/*
1113
1124
 * limits.c
1114
1125
 */
1115
 
LDAP_SLAPD_F (int) limits_get LDAP_P((
1116
 
        Operation *op, struct berval *ndn,
1117
 
        struct slap_limits_set **limit ));
1118
1126
LDAP_SLAPD_F (int) limits_parse LDAP_P((
1119
1127
        Backend *be, const char *fname, int lineno,
1120
1128
        int argc, char **argv ));
1635
1643
        Attribute *attrs,
1636
1644
        int manage,
1637
1645
        int add,
 
1646
        Attribute **socp,
1638
1647
        const char** text,
1639
1648
        char *textbuf, size_t textlen );
1640
1649
 
1696
1705
LDAP_SLAPD_F (char *) scherr2str LDAP_P((int code)) LDAP_GCCATTR((const));
1697
1706
LDAP_SLAPD_F (int) dscompare LDAP_P(( const char *s1, const char *s2del,
1698
1707
        char delim ));
 
1708
LDAP_SLAPD_F (int) parse_syn LDAP_P((
 
1709
        struct config_args_s *ca, Syntax **sat, Syntax *prev ));
1699
1710
 
1700
1711
/*
1701
1712
 * sessionlog.c
1755
1766
        const char *syndesc, int *slen ));
1756
1767
LDAP_SLAPD_F (int) syn_add LDAP_P((
1757
1768
        LDAPSyntax *syn,
 
1769
        int user,
1758
1770
        slap_syntax_defs_rec *def,
 
1771
        Syntax **ssyn,
 
1772
        Syntax *prev,
1759
1773
        const char **err ));
1760
1774
LDAP_SLAPD_F (void) syn_destroy LDAP_P(( void ));
1761
1775
 
1764
1778
 
1765
1779
LDAP_SLAPD_F (int) syn_schema_info( Entry *e );
1766
1780
 
 
1781
LDAP_SLAPD_F (int) syn_start LDAP_P(( Syntax **at ));
 
1782
LDAP_SLAPD_F (int) syn_next LDAP_P(( Syntax **at ));
 
1783
LDAP_SLAPD_F (void) syn_delete LDAP_P(( Syntax *at ));
 
1784
 
 
1785
LDAP_SLAPD_F (void) syn_unparse LDAP_P((
 
1786
        BerVarray *bva, Syntax *start, Syntax *end, int system ));
 
1787
 
1767
1788
/*
1768
1789
 * user.c
1769
1790
 */