I just wrote a CGI script that allows adding users to Fedora Directory
Server (FDS) very easily. The script is attached to this email. Future
revisions can be downloaded from:
The license is GPL. So feel free to add it to other projects.
* Simple to use and to install
* E-Mail is sent to the user that was created (templated) and CC to
* Uses readily available Perl modules: Net::LDAP, CGI, Net::SMTP
automagically populated as you type)
copy cgi script to your cgi-bin dir:
cp adduser-ldap.cgi /var/www/cgi-bin/
make sure it's executable:
chmod ugo+rx /var/www/cgi-bin/adduser-ldap.cgi
create a "secret" file:
echo "password" > /etc/adduser-ldap.secret
chmod 0400 /etc/adduser-ldap.secret
chown apache /etc/adduser-ldap.secret
make sure that the needed Perl modules are installed (hint: perl
modify the variables on top of the script to taste.
The script assumes that you will be using "admin" as your bind dn:
my $LDAPADMINCN =
TLS is supported, but can be easily turned off if you are using it in
the same box as the server is running. (Just comment out the
Feel free to post this script to the wiki page. (I couldn't figure out
how to do that ;-))
I made this script to allow creating accounts by non-technical
personnel to the LDAP directory (used by Wildfire Jabber Server).
Everything works like a charm!
"We think basically you watch television to turn your brain off, and
you work on your computer when you want to turn your brain on" --
Steve Jobs in an interview for MacWorld Magazine 2004-Feb
No .doc: http://www.gnu.org/philosophy/no-word-attachments.es.html