Net::LDAP::Class::User - base class for LDAP user objects


Net-LDAP-Class documentation  | view source Contained in the Net-LDAP-Class distribution.

Index


NAME

Top

Net::LDAP::Class::User - base class for LDAP user objects

SYNOPSIS

Top

 package MyUser;
 use strict;
 use base qw( Net::LDAP::Class::User );

 # define action_for_* methods for your LDAP schema

 1;

DESCRIPTION

Top

Net::LDAP::Class::User is a simple base class intended to be subclassed by schema-specific Net::LDAP::Class::User::* classes.

METHODS

Top

init

Overrides base method to check that group_class() is defined.

add_to_group( group_object )

Adds group_object via the groups() method. A convenience method.

Must call update() to actually write the changes to the LDAP database.

remove_from_group( group_object )

Removes group_object using the groups() method. A convenience method.

Must call update() to actually write the changes to the LDAP database.

init_group_class

Default is to croak indicating you must override this method in your subclass.

stringify

Aliased to username().

username

Get/set the value of the first unique attribute.

random_string([len])

Returns a random alphanumeric string of length len (default: 10).

AUTHOR

Top

Peter Karman, <karman at cpan.org>

BUGS

Top

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

SUPPORT

Top

You can find documentation for this module with the perldoc command.

    perldoc Net::LDAP::Class

You can also look for information at:

* AnnoCPAN: Annotated CPAN documentation

http://annocpan.org/dist/Net-LDAP-Class

* CPAN Ratings

http://cpanratings.perl.org/d/Net-LDAP-Class

* RT: CPAN's request tracker

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

* Search CPAN

http://search.cpan.org/dist/Net-LDAP-Class

ACKNOWLEDGEMENTS

Top

The Minnesota Supercomputing Institute http://www.msi.umn.edu/ sponsored the development of this software.

COPYRIGHT

Top

SEE ALSO

Top

Net::LDAP


Net-LDAP-Class documentation  | view source Contained in the Net-LDAP-Class distribution.