GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages
Net::LDAP::posixAccount(3) User Contributed Perl Documentation Net::LDAP::posixAccount(3)

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

Version 0.0.2

Quick summary of what the module does.

Perhaps a little code snippet.

    use Net::LDAP::posixAccount;

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

    #creates a new entry with the minimum requirements
    my $entry = $foo->create({name=>'vvelox', gid=>'404', uid=>'404'});

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

This initiates the module. It accepts one arguement, a hash. Please See below for accepted values.

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.

name

The name of the user.

cn

What the common name should be for a user. This defaults to the username if it is not defined.

uid

This is the UID number of a user. If set to 'AUTO', 'Sys::User::UIDhelper' will be used.

gid

This is GID number of a user. If set to 'AUTO', 'Sys::Group::GIDhelper' will be used.

gecos

This is the GECOS field for a user. If it is not defined, the name is used.

loginShell

This is the login shell for the user. If it is not defined, it is set to '/sbin/nologin'.

home

This is the home directory of a user. If it is not defined, it is set to '/home/<name>'.

primary

This is the attribute that will be used for when creating the entry. 'uid', 'uidNumber', or 'cn' are the accepted value. The default is 'uid'.

description

This is the LDAP description field. If it is not defined, it is set to gecos.

minUID

This is the min UID that will be used if 'uid' is set to 'AUTO'. The default is '1001'.

maxUID

This is the max UID that will be used if 'uid' is set to 'AUTO'. The default is '64000'.

minGID

This is the min GID that will be used if 'gid' is set to 'AUTO'. The default is '1001'.

maxGID

This is the max GID that will be used if 'gid' is set to 'AUTO'. The default is '64000'.

A internal function user for clearing an error.

Missing baseDN.

'name' not defined.

'uid' not defined.

'gid' not defined.

The primary value is a invalid value.

Zane C. Bowers, "<vvelox at vvelox.net>"

Please report any bugs or feature requests to "bug-net-ldap-posixaccount at rt.cpan.org", or through the web interface at <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Net-LDAP-posixAccount>. 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 Net::LDAP::posixAccount

You can also look for information at:

  • RT: CPAN's request tracker

    <http://rt.cpan.org/NoAuth/Bugs.html?Dist=Net-LDAP-posixAccount>

  • AnnoCPAN: Annotated CPAN documentation

    <http://annocpan.org/dist/Net-LDAP-posixAccount>

  • CPAN Ratings

    <http://cpanratings.perl.org/d/Net-LDAP-posixAccount>

  • Search CPAN

    <http://search.cpan.org/dist/Net-LDAP-posixAccount>

Copyright 2008 Zane C. Bowers, all rights reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

2009-10-21 perl v5.32.1

Search for    or go to Top of page |  Section 3 |  Main Index

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with ManDoc.