Zane C. Bowers-Hadley

NAME

Plugtools::Plugins::HomeOU - Creates the home OU for a user.

VERSION

Version 0.0.0

SYNOPSIS

This creates the home OU a user has access to.

Functions

plugin

The function that will be called by Plugtools.

    use Plugtools::Plugins::HomeOU;
    %returned=Plugtools::Plugins::HomeOU->plugin(\%opts, \%args);
    
    if($returned{error}){
        print "Error!\n";
    }

ERROR CODES

1

The variable "homebase" in the section "HomeOU" is undefined.

2

$args{user} is not defined

3

Failed to add the new entry.

4

The search to check if it exists failed.

5

The home OU already exists.

PLUGTOOLS CONFIG

    pluginAddUser=Plugtools::Plugins::HomeOU
    [HomeOU]
    homebase=ou=home,dc=foo,dc=bar
    errorIfExists=0

homebase

This is the DB to create the home OU under.

errorIfExists

This controls if it it should error or not if it already exists. If this is defined, it will check if it already exists.

If this is not defined, it defaults to false.

LDAP CONFIG

A rule like the one below will need setup for this to be useful.

    access to dn.regex="^(.+,)?ou=([^,]+),ou=home,dc=foo,dc=bar$"
       by dn.exact,expand="uid=$2,ou=users,dc=foo,dc=bar" write
       by * none

AUTHOR

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

BUGS

Please report any bugs or feature requests to bug-plugtools at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Plugtools-Plugins-HomeOU. 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 Plugtools::Plugins::HomeOU
    perldoc Plugtools

You can also look for information at:

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2009 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.