--- migrate_all_offline.sh~ 2001-08-13 16:54:26.000000000 +0800 +++ migrate_all_offline.sh 2003-04-18 22:30:06.000000000 +0800 @@ -133,10 +133,11 @@ echo "Migrating netgroups (by user)..." $PERL migrate_netgroup_byuser.pl $ETC_NETGROUP >> $DB echo "Migrating netgroups (by host)..." $PERL migrate_netgroup_byhost.pl $ETC_NETGROUP >> $DB echo "Preparing LDAP database..." +exit if [ "X$SLAPADD" = "X" ]; then $LDIF2LDBM -i $DB else $SLAPADD -l $DB fi --- migrate_group.pl~ 1998-10-01 21:14:27.000000000 +0800 +++ migrate_group.pl 2003-04-18 22:47:32.000000000 +0800 @@ -39,10 +39,14 @@ require 'migrate_common.ph'; $PROGRAM = "migrate_group.pl"; $NAMINGCONTEXT = &getsuffix($PROGRAM); +# Nick Urbanik +# It's a lousy idea to create groups for system groups, which depend +# on the locally installed software. +my $min_gidNumber = 100; &parse_args(); &open_files(); while() { @@ -50,10 +54,11 @@ next if /^#/; next if /^\+/; local($group, $pwd, $gid, $users) = split(/:/); + next unless $gid >= $min_gidNumber; if ($use_stdout) { &dump_group(STDOUT, $group, $pwd, $gid, $users); } else { &dump_group(OUTFILE, $group, $pwd, $gid, $users); } --- migrate_passwd.pl~ 2002-07-07 05:06:45.000000000 +0800 +++ migrate_passwd.pl 2003-04-18 22:44:15.000000000 +0800 @@ -40,10 +40,14 @@ require 'migrate_common.ph'; $PROGRAM = "migrate_passwd.pl"; $NAMINGCONTEXT = &getsuffix($PROGRAM); +# Nick Urbanik +# It's a lousy idea to create accounts for system user accounts, which depend +# on the locally installed software. +my $min_uidNumber = 500; &parse_args(); &read_shadow_file(); &open_files(); while() @@ -71,10 +75,11 @@ s/ø/oe/g; s/Å/Ae/g; s/å/ae/g; local($user, $pwd, $uid, $gid, $gecos, $homedir, $shell) = split(/:/); + next unless $uid >= $min_uidNumber; if ($use_stdout) { &dump_user(STDOUT, $user, $pwd, $uid, $gid, $gecos, $homedir, $shell); } else { &dump_user(OUTFILE, $user, $pwd, $uid, $gid, $gecos, $homedir, $shell);