Posts Tagged ‘software’

Releasing ldaptool 0.1

Friday, December 19th, 2008

So I have finally released ldaptool as version 0.1!

ldaptool

ldaptool is a collection of utilities to ease the maintainance of an LDAP tree from the command line. It supports common unix operations such as useradd, passwd and the like. I wrote ldaptool as part of my job at the Linux Cluster of the University of Bern (UBELIX) and the Computer Services Deparment kindly gave me the permission to release ldaptool as an opensource project.

Ldaptool is invoked using a main command (ldaptool) and set of subcommands similar to the way you use subversion. For example, to add a new user jdoe you would enter the following:

ldaptool useradd jdoe

The commands take similar options as their linux/unix equivalents. For example, to specify groups for the aforementioned user we can type:

ldaptool useradd -g users -G admins,backup jdoe

Which will give jdoe the primary group users and the secondary groups admins and backup.

There is still a lot of work left with ldaptool. I have currently not yet created any usermod and groupmod commands. Also, ldaptool will support hooks to create directories and launch other actions when users are created or other commands are executed. I find the -m command of useradd a little limiting.

That’s all for now, I am a little tired from all the coding today and looking forward to sitting down with a beer, having a good dinner and to watch a movie. Please check out the ldaptool project page and the documentation. Feel free to drop me a comment if you have any.