Net::LDAP::posixGroup - Creates new Net::LDAP::Entry objects for a posixGroup entry.
Version 1.0.0
use Net::LDAP::posixGroup; my $foo = Net::LDAP::posixGroup->new(baseDN=>'ou=group,dc=foo'); # creates a new for the group newGroup with a GID of 404 and members of user1 and user2. my $entry = $foo->create(name=>'newGroup', gid=>'404', members=>['user1', 'user2']); print $entry->ldif;
This initiates the object.
- baseDN :: This is a required value and is the base that the entry will be created under. - topless :: This is a perl boolean value. If this is set to true, the objectClass top is not present.
Creates a new Net::LDAP::Entry object.
The following args are required.
- name :: The group name. - gid :: The numeric GID of a group.
The following are optional.
- description :: A optional LDAP desciption. - primary :: The accepted values are 'cn' and 'gidNumber'. - default :: cn
All error codes are considered fatal, allowing for easy cheacking via eval.
No group name specified.
No GID specified.
The primary is a invalid value.
Missing baseDN.
Zane C. Bowers, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-net-ldap-posixgroup at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-LDAP-posixGroup. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-net-ldap-posixgroup at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Net::LDAP::posixGroup
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-LDAP-posixGroup
Search CPAN
http://metacpan.org/dist/Net-LDAP-posixGroup
Copyright 2023 Zane C. Bowers-Hadley, all rights reserved.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Net::LDAP::posixGroup, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Net::LDAP::posixGroup
CPAN shell
perl -MCPAN -e shell install Net::LDAP::posixGroup
For more information on module installation, please visit the detailed CPAN module installation guide.