2004-09-09 09:28:57 +00:00
|
|
|
Allow the calling user to pass in arguments to ldapadd/ldapmodify.
|
|
|
|
|
|
|
|
--- MigrationTools-27/migrate_all_online.sh Tue Oct 31 17:01:24 2000
|
2004-09-09 09:28:35 +00:00
|
|
|
+++ MigrationTools-27/migrate_all_online.sh Tue Oct 31 17:03:19 2000
|
|
|
|
@@ -181,13 +181,11 @@
|
|
|
|
|
|
|
|
echo "Importing into LDAP..."
|
|
|
|
|
|
|
|
- if [ -x /usr/sbin/slapadd ]; then
|
|
|
|
- $LDAPADD -x -h $LDAPHOST -D "$LDAP_BINDDN" -w "$LDAP_BINDCRED" -f $DB
|
|
|
|
- elif [ -x /usr/local/sbin/slapadd ]; then
|
|
|
|
- $LDAPADD -x -h $LDAPHOST -D "$LDAP_BINDDN" -w "$LDAP_BINDCRED" -f $DB
|
|
|
|
- else
|
|
|
|
- $LDAPADD -h $LDAPHOST -D "$LDAP_BINDDN" -w "$LDAP_BINDCRED" -f $DB
|
|
|
|
- fi
|
|
|
|
+if [ `basename $LDAPADD` = "slapadd" ]; then
|
2004-09-09 09:28:57 +00:00
|
|
|
+ $LDAPADD -h $LDAPHOST -D "$LDAP_BINDDN" -w "$LDAP_BINDCRED" $@ -f $DB
|
2004-09-09 09:28:35 +00:00
|
|
|
+else
|
2004-09-09 09:28:57 +00:00
|
|
|
+ $LDAPADD -x -h $LDAPHOST -D "$LDAP_BINDDN" -w "$LDAP_BINDCRED" $@ -f $DB
|
2004-09-09 09:28:35 +00:00
|
|
|
+fi
|
|
|
|
|
|
|
|
if [ $? -ne 0 ]; then
|
|
|
|
echo "$LDAPADD: returned non-zero exit status"
|
2004-09-09 09:28:57 +00:00
|
|
|
--- MigrationTools-27/migrate_all_nis_online.sh Tue Oct 31 17:01:24 2000
|
2004-09-09 09:28:35 +00:00
|
|
|
+++ MigrationTools-27/migrate_all_nis_online.sh Tue Oct 31 17:02:51 2000
|
|
|
|
@@ -71,7 +71,7 @@
|
|
|
|
ypcat $DOMFLAG networks > $ETC_NETWORKS
|
|
|
|
#ypcat $DOMFLAG -k aliases > $ETC_ALIASES
|
|
|
|
|
|
|
|
-. ${INSTDIR}migrate_all_online.sh
|
2004-09-09 09:28:57 +00:00
|
|
|
+. ${INSTDIR}migrate_all_online.sh $@
|
2004-09-09 09:28:35 +00:00
|
|
|
|
|
|
|
rm -f $ETC_PASSWD
|
|
|
|
rm -f $ETC_GROUP
|
2004-09-09 09:28:57 +00:00
|
|
|
--- MigrationTools-27/migrate_all_offline.sh Tue Oct 31 17:02:00 2000
|
2004-09-09 09:28:35 +00:00
|
|
|
+++ MigrationTools-27/migrate_all_offline.sh Tue Oct 31 17:03:12 2000
|
|
|
|
@@ -137,9 +137,9 @@
|
|
|
|
$PERL -I${INSTDIR} ${INSTDIR}migrate_netgroup_byhost.pl $ETC_NETGROUP >> $DB
|
|
|
|
echo "Preparing LDAP database..."
|
|
|
|
if [ "X$SLAPADD" = "X" ]; then
|
|
|
|
- $LDIF2LDBM -i $DB
|
2004-09-09 09:28:57 +00:00
|
|
|
+ $LDIF2LDBM -i $DB $@
|
2004-09-09 09:28:35 +00:00
|
|
|
else
|
|
|
|
- $SLAPADD -l $DB
|
2004-09-09 09:28:57 +00:00
|
|
|
+ $SLAPADD -l $DB $@
|
2004-09-09 09:28:35 +00:00
|
|
|
fi
|
|
|
|
EXITCODE=$?
|
|
|
|
|
2004-09-09 09:28:57 +00:00
|
|
|
--- MigrationTools-27/migrate_all_nis_offline.sh Tue Oct 31 17:02:05 2000
|
2004-09-09 09:28:35 +00:00
|
|
|
+++ MigrationTools-27/migrate_all_nis_offline.sh Tue Oct 31 17:02:49 2000
|
|
|
|
@@ -71,7 +71,7 @@
|
|
|
|
ypcat $DOMFLAG networks > $ETC_NETWORKS
|
|
|
|
#ypcat $DOMFLAG -k aliases > $ETC_ALIASES
|
|
|
|
|
|
|
|
-. ${INSTDIR}migrate_all_offline.sh
|
2004-09-09 09:28:57 +00:00
|
|
|
+. ${INSTDIR}migrate_all_offline.sh $@
|
2004-09-09 09:28:35 +00:00
|
|
|
|
|
|
|
rm -f $ETC_PASSWD
|
|
|
|
rm -f $ETC_GROUP
|
2004-09-09 09:28:57 +00:00
|
|
|
--- MigrationTools-27/migrate_all_nisplus_online.sh Tue Oct 31 17:02:11 2000
|
2004-09-09 09:28:35 +00:00
|
|
|
+++ MigrationTools-27/migrate_all_nisplus_online.sh Tue Oct 31 17:02:59 2000
|
|
|
|
@@ -62,7 +62,7 @@
|
|
|
|
niscat networks.org_dir > $ETC_NETWORKS
|
|
|
|
niscat mail_aliases.org_dir > $ETC_ALIASES
|
|
|
|
|
|
|
|
-. ${INSTDIR}migrate_all_online.sh
|
2004-09-09 09:28:57 +00:00
|
|
|
+. ${INSTDIR}migrate_all_online.sh $@
|
2004-09-09 09:28:35 +00:00
|
|
|
|
|
|
|
rm -f $ETC_PASSWD
|
|
|
|
rm -f $ETC_GROUP
|
2004-09-09 09:28:57 +00:00
|
|
|
--- MigrationTools-27/migrate_all_netinfo_online.sh Tue Oct 31 17:02:17 2000
|
2004-09-09 09:28:35 +00:00
|
|
|
+++ MigrationTools-27/migrate_all_netinfo_online.sh Tue Oct 31 17:02:46 2000
|
|
|
|
@@ -69,7 +69,7 @@
|
|
|
|
nidump networks $DOM > $ETC_NETWORKS
|
|
|
|
nidump aliases $DOM > $ETC_ALIASES
|
|
|
|
|
|
|
|
-. ${INSTDIR}migrate_all_online.sh
|
2004-09-09 09:28:57 +00:00
|
|
|
+. ${INSTDIR}migrate_all_online.sh $@
|
2004-09-09 09:28:35 +00:00
|
|
|
|
|
|
|
rm -f $ETC_PASSWD
|
|
|
|
rm -f $ETC_GROUP
|
2004-09-09 09:28:57 +00:00
|
|
|
--- MigrationTools-27/migrate_all_netinfo_offline.sh Tue Oct 31 17:02:22 2000
|
2004-09-09 09:28:35 +00:00
|
|
|
+++ MigrationTools-27/migrate_all_netinfo_offline.sh Tue Oct 31 17:02:43 2000
|
|
|
|
@@ -69,7 +69,7 @@
|
|
|
|
nidump networks $DOM > $ETC_NETWORKS
|
|
|
|
nidump aliases $DOM > $ETC_ALIASES
|
|
|
|
|
|
|
|
-. ${INSTDIR}migrate_all_offline.sh
|
2004-09-09 09:28:57 +00:00
|
|
|
+. ${INSTDIR}migrate_all_offline.sh $@
|
2004-09-09 09:28:35 +00:00
|
|
|
|
|
|
|
rm -f $ETC_PASSWD
|
|
|
|
rm -f $ETC_GROUP
|
2004-09-09 09:28:57 +00:00
|
|
|
--- MigrationTools-27/migrate_all_nisplus_offline.sh Tue Oct 31 17:02:27 2000
|
2004-09-09 09:28:35 +00:00
|
|
|
+++ MigrationTools-27/migrate_all_nisplus_offline.sh Tue Oct 31 17:02:56 2000
|
|
|
|
@@ -62,7 +62,7 @@
|
|
|
|
niscat networks.org_dir > $ETC_NETWORKS
|
|
|
|
niscat mail_aliases.org_dir > $ETC_ALIASES
|
|
|
|
|
|
|
|
-. ${INSTDIR}migrate_all_offline.sh
|
2004-09-09 09:28:57 +00:00
|
|
|
+. ${INSTDIR}migrate_all_offline.sh $@
|
2004-09-09 09:28:35 +00:00
|
|
|
|
|
|
|
rm -f $ETC_PASSWD
|
|
|
|
rm -f $ETC_GROUP
|