Article
A colleague and I put this script together to help with our server builds that use cloned DIB sets from an existing tree and require a temporary instance of eDirectory running.
Some of the switches were hard to find so I thought I would share it here. Feel free to use this as a template for your own environments.
The following script will create an eDirectory Tree with an instance under /eDir/$HOSTNAME path.
As the Notes say just include your installer paths in the variables and modify the instance to be relevant for your environment.
#!/bin/bash #ndsinstall unattended v1.0 #Date: 13/12/08 #Authors: Milan Bochin, Luke Meijer #Notes: Use variables at beginning of script to point to your installation source paths #Security Services Installer Path ################################## SSPATH=/eDir/utils #eDirectory Installer Path ########################### EDPATH=/eDir/eDirectory/setup #dsrmenu.sh Path ################# DMPATH=/eDir/utils echo ". /opt/novell/eDirectory/bin/ndspath" > /etc/bash.bashrc.local cp $DMPATH/dsrmenu.sh /root/bin ln -s /root/bin/dsrmenu.sh /root/bin/dsrepair $EDPATH/nds-install -u -c server -c admutils mkdir /eDir/$HOSTNAME /opt/novell/eDirectory/bin/ndsconfig new -t $HOSTNAME-TREE -S $HOSTNAME -n ou=itb.o=det -a cn=admin.o=det -w password -b 524 -D /eDir/$HOSTNAME -d /eDir/$HOSTNAME/data/dib --config-file /etc/opt/novell/eDirectory/conf/nds.conf /etc/init.d/ndsd stop $SSPATH/install.sh -q /etc/init.d/ndsd start ln -s /etc/opt/novell/nici.cfg /etc/nici.cfg
If anyone has information on how to script IDM installation on Linux please comment, we are having problems finding the syntax for the installer.properties file that the -? help switch refers to.
| Attachment | Size |
|---|---|
| installnds.txt | 974 bytes |
Disclaimer: As with everything else at Cool Solutions, this content is definitely not supported by Novell (so don't even think of calling Support if you try something and it blows up).
It was contributed by a community member and is published "as is." It seems to have worked for at least one person, and might work for you. But please be sure to test, test, test before you do anything drastic with it.
Related Articles
User Comments
- Be the first to comment! To leave a comment you need to Login or Register
- 3592 reads


0