Please look at the info below
http://www.cpanel.net/documentation/easyapache/ea3custom_flags.html
insert --with-ldap=shared,/usr on all_php5
and
http://c**.r*.net/index.php?action=DetailView&module=HelpDesk&record=2942
Before that, you have to install freetds for mssql
Just do yum install freetds-devel
or install openldap-devel for ldap
yum install openldap-devel
If for some reason, cpanel is trying to give error about looking for libtds.so,
go to /usr/lib
then type
ln -s /usr/lib64/libtds.so
ln -s /usr/lib64/libtds.so.5
ln -s /usr/lib64/libtds.so.5.0.0
Another site to look at
http://forums.cpanel.net/showthread.php?t=88561
That's all.