~ubuntu-branches/debian/experimental/389-ds-base/experimental

« back to all changes in this revision

Viewing changes to ldap/servers/plugins/uiduniq/7bit.c

  • Committer: Package Import Robot
  • Author(s): Timo Aaltonen
  • Date: 2014-07-08 15:50:11 UTC
  • mfrom: (0.2.2)
  • Revision ID: package-import@ubuntu.com-20140708155011-r66lvtioamqwaype
Tags: 1.3.2.19-1
* New upstream release.
* admin_scripts.diff: Updated to fix more bashisms.
* watch: Update the url.
* Install failedbinds.py and logregex.py scripts.
* init: Use status from init-functions.
* control: Update my email.

Show diffs side-by-side

added added

removed removed

Lines of Context:
472
472
         which are add or replace ops and are bvalue encoded
473
473
      */
474
474
      /* find out how many mods meet this criteria */
475
 
      for(mods=firstMods;*mods;mods++)
 
475
      for(mods=firstMods;mods && *mods;mods++)
476
476
      {
477
477
        mod = *mods;
478
478
        if ((slapi_attr_type_cmp(mod->mod_type, attr_name, 1) == 0) && /* mod contains target attr */
561
561
    char **argv;
562
562
    char **attrName;
563
563
    Slapi_DN *target_sdn = NULL;
564
 
    Slapi_DN *superior;
 
564
    Slapi_DN *superior = NULL;
565
565
    char *rdn; 
566
566
    Slapi_Attr *attr;
567
567
    char **firstSubtree;
601
601
     * its current level in the tree.  Use the target DN for
602
602
     * determining which managed tree this belongs to
603
603
     */
604
 
    if (!superior) superior = target_sdn;
 
604
    if (!slapi_sdn_get_dn(superior)) superior = target_sdn;
605
605
 
606
606
    /* Get the new RDN - this has the attribute values */
607
607
    err = slapi_pblock_get(pb, SLAPI_MODRDN_NEWRDN, &rdn);
635
635
    }
636
636
 
637
637
    /*
638
 
     * arguments before "," are the 7-bit clean attribute names.  Arguemnts
 
638
     * arguments before "," are the 7-bit clean attribute names.  Arguments
639
639
     * after "," are subtreeDN's.
640
640
     */
641
641
    for ( firstSubtree = argv; strcmp(*firstSubtree, ",") != 0;
650
650
    for (attrName = argv; strcmp(*attrName, ",") != 0; attrName++ )
651
651
    {
652
652
      /* 
653
 
       * If the attribut type is userpassword, do not replace it by 
 
653
       * If the attribute type is userpassword, do not replace it by
654
654
       * unhashed#user#password because unhashed#user#password does not exist  
655
655
       * in this case.
656
656
       */