Jail: ldap-mgr

one time

create jail
export JAIL=ldap-mgr
export JAILHOSTNAME=ldap-mgr
export JAILDOMAIN=ahlawat.com
export JAILIP=14
export JAILUSER=X
export JAILUSERID=1000
export JAILUSERVNC=false

/root/FreeBSD/jails/create.sh $JAIL $JAILHOSTNAME $JAILDOMAIN $JAILIP $JAILUSER $JAILUSERID $JAILUSERVNC

iocage exec $JAIL "pkg install -y apache24 mod_php82 ldap-account-manager self-service-password-php82 phpldapadmin-php82"

iocage exec $JAIL "sysrc apache24_enable=YES"
iocage exec $JAIL "cp /mnt/config/httpd.conf /usr/local/etc/apache24/"
iocage exec $JAIL "cp /mnt/config/020_mod_ssl.conf /usr/local/etc/apache24/modules.d/"
iocage exec $JAIL "cp /mnt/config/php.ini /usr/local/etc/php.ini"
iocage exec $JAIL "service apache24 restart"

iocage exec $JAIL "cp /mnt/config/config.php.phpldapadmin.github /mnt/phpLDAPadmin/config/config.php"
iocage exec $JAIL "cp /mnt/config/index.html /usr/local/www/apache24/data/"
iocage exec $JAIL "cp /mnt/config/secret/config.inc.local.php /usr/local/www/self-service-password/conf/"
iocage exec $JAIL "ln -s /usr/loca/www/phpldapadmin /usr/local/www/apache24/data/pla"
iocage exec $JAIL "ln -s /usr/local/www/lam /usr/local/www/apache24/data/lam"

Notes:

Showcased here is a capital and operational cost effective approach, using minimal server and networking hardware with multiple virtualized applications for Home and Business. This solution template can be easily scaled out and adapted for larger Enterprise deployments.
drop by the diyIT Matrix public room at #diyit:matrix.ahlawat.com
if you have any IT questions/feedback or to request pro bono consulting for a nonprofit

message me privately at @sharad:matrix.ahlawat.com
or email me at - sharad@ahlawat.com - pgpkey: 68DD6B89
Networking and Security Technologist.
EngineerĀ andĀ an avid Programmer.

https://sharad.ahlawat.com
strive to learn and pass on the knowledge to the next generation
one day humanity will understand the meaning of life and hopefully it will be more than ASCII 42 = "*" regex for whatever you want it to be,
and destiny is more than just a roll of a pair of dice with 42 dots (Lets nail down Quantum Entanglement)

May you Live Long (Intelligently) and Prosper and work on technology that matters.
© 2024 Sharad Ahlawat

No personal identifying data is collected or any form of analytics/metrics reported to a third-party by this website.