
POSIX::Account::LDAP - LDAP posixAccount, posixGroup, netgroup, etc. management

Version 0.01

POSIX::Account::LDAP gives you an extensive API to manage POSIX accounts in a LDAP directory.
use POSIX::Account::LDAP;
my $foo = POSIX::Account::LDAP->new( { config => "mysite.cfg" } );
...

A list of functions that can be exported. You can delete this section if you don't export anything, such as for a purely object-oriented module.

Create a new object
Options:
* config : configuration file name * init : load configuration if
Initialise the object by:
* read configuration * start LDAP connection
Connect to the directory using the configuration.
Find next uid within Configured min & max uid numbers
Find next gid within Configured min & max gid numbers
Find next id in uid and gid number spaces.
Add a user.
Acceptable named options:
If present, this option will call groupadd() to create a new group having a gidNumber equal to the user account uidNumber.
Name of the user (usually less than 8 characters), ASCII only.
GECOS field (ASCII only).
Defaults to "Charlie uid".
Shell to give to the user. Defaults to /bin/sh.
Self descriptive.
uid of the user account (numeric).
gid of the user account (numeric).
The group having this gid must exist prior to creation.
More descriptive name. Will default to uid.
More descriptive name. Will default to uid.
Description of the user account (not used by POSIX, but by LDAP).
Defaults to "System User uid".
Home directory of the user account.
Defaults to "/home/uid".
Delete a user by name.
Add a group.
Acceptable named options:
gid number of the POSIX group (numeric). Fail if that gid is not available.
Defaults at next available gid starting from 1000.
LDAP relevant information, not used directly by POSIX.
Delete a group
Not to be used directly, will be called when uninstantiating a POSIX::Account::LDAP object, mainly to disconnect from the LDAP directory.

Jérôme Fenal, <jerome at fenal.org>

Please report any bugs or feature requests to bug-posix-account-ldap at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=POSIX-Account-LDAP. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

You can find documentation for this module with the perldoc command.
perldoc POSIX::Account::LDAP
You can also look for information at:

The Perl community for all those valuable tools that helped creating these module and scripts.

Copyright 2007 Jérôme Fenal, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.