NAME

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

SYNOPSIS

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

# define action_for_* methods for your LDAP schema

1;

DESCRIPTION

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

METHODS

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

Peter Karman, <karman at cpan.org>

BUGS

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

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

perldoc Net::LDAP::Class

You can also look for information at:

ACKNOWLEDGEMENTS

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

COPYRIGHT

Copyright 2008 by the Regents of the University of Minnesota. All rights reserved.

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

SEE ALSO

Net::LDAP