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

« back to all changes in this revision

Viewing changes to servers/slapd/ldapsync.c

  • Committer: Bazaar Package Importer
  • Author(s): Chuck Short, Adam Sommer
  • Date: 2010-07-28 11:35:16 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20100728113516-x69n6g84l50ty1o9
Tags: 2.4.23-0ubuntu1
* New release, features include:
  + Fixed libldap to return server's error code (ITS#6569)
  + Fixed libldap memleaks (ITS#6568)
  + Fixed liblutil off-by-one with delta (ITS#6541)
  + Fixed slapd acls with glued databases (ITS#6468)
  + Fixed slapd syncrepl rid logging (ITS#6533)
  + Fixed slapd modrdn handling of invalid values (ITS#6570)
  + Fixed slapd-bdb hasSubordinates computation (ITS#6549)
  + Fixed slapd-bdb to use memcpy instead for strcpy (ITS#6474)
  + Fixed slapd-bdb entry cache delete failure (ITS#6577)
  + Fixed slapd-ldap to return control responses (ITS#6530)
  + Fixed slapo-ppolicy to use Debug (ITS#6566)
  + Fixed slapo-refint to zero out freed DN vals (ITS#6572)
  + Fixed slapo-rwm to use Debug (ITS#6566)
  + Fixed slapo-sssvlv to use Debug (ITS#6566)
  + Fixed slapo-syncprov lost deletes in refresh phase (ITS#6555)
  + Fixed slapo-valsort to use Debug (ITS#6566)
  + Fixed contrib/nssov network.c missing patch (ITS#6562)
  + Fixed test043 attribute sorting (ITS#6553)
  + slapd-config(5) note default rootdn (ITS#6546)
* Rebased patches debian/patches/dropped nssov-build
* Resynchronize with Debian:
  + debian/control:
    - Bump standards-version to 3.9.0
    - Use libdb4.8-dev (LP: #572489)
  + Added debian/patches/issue-6534-patch
  + Added debian/patches/ldap-conf-tls-cacertdir
* Add ufw support, thanks to  PatRiehecky (LP: #423246)

 [Adam Sommer]
 * debian/rules, debian/slapd.py: Add apport hook. (LP: #610544)

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
/* ldapsync.c -- LDAP Content Sync Routines */
2
 
/* $OpenLDAP: pkg/ldap/servers/slapd/ldapsync.c,v 1.32.2.11 2009/07/08 03:29:16 quanah Exp $ */
 
2
/* $OpenLDAP: pkg/ldap/servers/slapd/ldapsync.c,v 1.32.2.13 2010/04/19 16:53:02 quanah Exp $ */
3
3
/* This work is part of OpenLDAP Software <http://www.openldap.org/>.
4
4
 *
5
 
 * Copyright 2003-2009 The OpenLDAP Foundation.
 
5
 * Copyright 2003-2010 The OpenLDAP Foundation.
6
6
 * Portions Copyright 2003 IBM Corporation.
7
7
 * All rights reserved.
8
8
 *
45
45
        }
46
46
 
47
47
        if ( numcsn == 0 || rid == -1 ) {
48
 
                char cookiestr[ LDAP_LUTIL_CSNSTR_BUFSIZE + 20 ];
 
48
                char cookiestr[ LDAP_PVT_CSNSTR_BUFSIZE + 20 ];
49
49
                if ( rid == -1 ) {
50
50
                        cookiestr[0] = '\0';
51
51
                        len = 0;
289
289
        struct sync_cookie *cookie
290
290
)
291
291
{
292
 
        char csnbuf[ LDAP_LUTIL_CSNSTR_BUFSIZE + 4 ];
 
292
        char csnbuf[ LDAP_PVT_CSNSTR_BUFSIZE + 4 ];
293
293
        struct berval octet_str = BER_BVNULL;
294
294
        struct berval ctxcsn = BER_BVNULL;
295
295
 
296
296
        if ( cookie == NULL )
297
297
                return -1;
298
298
 
299
 
        octet_str.bv_len = snprintf( csnbuf, LDAP_LUTIL_CSNSTR_BUFSIZE + 4,
 
299
        octet_str.bv_len = snprintf( csnbuf, LDAP_PVT_CSNSTR_BUFSIZE + 4,
300
300
                                        "csn=%4d%02d%02d%02d%02d%02dZ#%06x#%02x#%06x",
301
301
                                        1900, 1, 1, 0, 0, 0, 0, 0, 0 );
302
302
        octet_str.bv_val = csnbuf;