Another migration scripts issue, this time with migrate_passwd.pl. If a field in the shadow password file contains a 0 digit, then the attribute/value will not be set in the LDIF output. In particular, this affects shadowMin, which is 0 by default and therefore will never be set. Offending Perl code is in the dump_shadow_attributes routine, where we have tests like the following on lines 205-207: if ($min) { print $HANDLE "shadowMin: $min\n"; } So, if $min is a 0, then the expression is false and the attribute is not output. The code should really be using the 'defined' operator here. This issue exists throughout the script; any field containing a 0 in /etc/passwd or /etc/shadow will be skipped. The only reason the root account migrates properly is because of hackish stuff on lines 155-165: if ($uid ne "") { print $HANDLE "uidNumber: $uid\n"; } else { print $HANDLE "uidNumber:\n"; } if ($gid ne "") { print $HANDLE "gidNumber: $gid\n"; } else { print $HANDLE "gidNumber:\n"; } ...which is DOUBLY gross because uidNumber and gidNumber are required attributes and we don't issue any sort of warning! Version-Release number of selected component (if applicable): openldap-2.0.27-11
This bug is filed against RHEL 3, which is in maintenance phase. During the maintenance phase, only security errata and select mission critical bug fixes will be released for enterprise products. Since this bug does not meet that criteria, it is now being closed. For more information of the RHEL errata support policy, please visit: http://www.redhat.com/security/updates/errata/ If you feel this bug is indeed mission critical, please contact your support representative. You may be asked to provide detailed information on how this bug is affecting you.
Updated version to RHEL 5. Same bugs exist in the same file in the openldap-2.3.27-5 package, add three to all line number counts above.
reported upstream, together with a patch: http://bugzilla.padl.com/show_bug.cgi?id=345
Patch is in CVS, changing status to MODIFIED.
Bug-fix verified by RHTS test with success. See [1]. [1] http://rhts.redhat.com/cgi-bin/rhts/jobs.cgi?id=103756
An advisory has been issued which should help the problem described in this bug report. This report is therefore being closed with a resolution of ERRATA. For more information on therefore solution and/or where to find the updated files, please follow the link below. You may reopen this bug report if the solution does not work for you. http://rhn.redhat.com/errata/RHSA-2010-0198.html