Hello every1 i'm davy_sard, i'm new to the forums and i'm atm studying for various redhat certs, in my free time sometimes i have fun scripting.
As the title says i developed this morning a small script for settupping and config of a simple ldap client in RHEL, specificly it was tested on rhel 6.
I thought it was worth the attention as you do not setup and config ldaps everyday i figure some1 could forget how to do it precisly so i made this script to make it faster than looking on google to the hundreds of guides. thanks again for the attention, and for the admins, please move my thread if I created it in the wrong forum section.

please give as much feedback as possible for this, and bare the poor scripting as it is probably my 1st script ever

Code:
echo "WARINING!!!! YOU MUST BE ROOT TO RUN PROPERLY!!!!!"
echo This script will help you setup LDAP on a client
echo before starting you will need the following informartion:
echo Hostname, Path that will be accessed, if you are using tls certificates
sleep 3
echo do you wish to continue?
read yn
if [[ $yn == "n" || $yn == "N" ]]
then
echo Aborted
exit
else
echo will now start installing necessary packets for LDAP
sleep 2
yum groupinstall directory-client -y --quiet
sleep 2
echo accessising sys-config-auth modify it to your needs
system-config-authentication
sleep 2
echo creating auto.guests file... I will be Promting for info
sleep 2
echo what is the host of the LDAP server? eg. station1.example.com
read host
echo ok, what is the path of the directory you will be able to access?
read path
echo Modifing master.auto file
echo "$path	  /etc/auto.guests" >> /etc/auto.master
echo DONE!
sleep 1
echo creating auto.guests file..
sleep 1
echo "* -rw $host:$path/&" > /etc/auto.guests
echo DONE!
sleep 1
echo Restarting autofs service!
service autofs stop
service autofs start
echo All done!
fi
as you can notice it is a pretty simple bin/bash script, hope you all like it, 1st time i actually contribute to the linux community. Hoping for some constructive feedback, bye!

Davide aka davy_sard

EDIT: may i add that I have no programming background XP so bare with me please =)