Creates new Net::LDAP::Entry objects for a posixAccount entry
Go to file
Zane C. B-H f73f2b3091 note the chagnes 2023-12-05 09:16:03 -06:00
lib/Net/LDAP finalize tweaks docs for the new version 2023-12-05 09:13:10 -06:00
t initial import of old code 2023-12-04 02:14:28 -06:00
.gitignore Initial commit 2023-12-04 02:09:39 -06:00
.perlcriticrc initial import of old code 2023-12-04 02:14:28 -06:00
.perltidyrc initial import of old code 2023-12-04 02:14:28 -06:00
Changes note the chagnes 2023-12-05 09:16:03 -06:00
MANIFEST initial import of old code 2023-12-04 02:14:28 -06:00
Makefile.PL update makefile 2023-12-04 02:17:38 -06:00
README.md finalize tweaks docs for the new version 2023-12-05 09:13:10 -06:00

README.md

Net-LDAP-posixAccount

Creates new Net::LDAP::Entry objects for a posixAccount entry

# Initiates the module with a base DN of 'ou=users,dc=foo'.
my $foo = Net::LDAP::posixAccount->new(baseDN=>'ou=user,dc=foo');

# create the user vvelox with a gid of 404 and a uid of 404
# see the POD for Net::LDAP::Entry for additional args supported
my $entry = $foo->create(name=>'vvelox', gid=>'404', uid=>'404');

# add it using $ldap, a previously created Net::LDAP object
$entry->update($ldap);