Samba::LDAP::User

Samba::LDAP::User is a Perl module to manipulate a Samba LDAP User.
Download

Samba::LDAP::User Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Gavin Henry
  • Publisher web site:
  • http://search.cpan.org/~ghenry/Catalyst-Plugin-Email-Page-0.26/lib/Catalyst/Plugin/Email/Page.pm

Samba::LDAP::User Tags


Samba::LDAP::User Description

Samba::LDAP::User is a Perl module to manipulate a Samba LDAP User. Samba::LDAP::User is a Perl module to manipulate a Samba LDAP User.SYNOPSIS use Carp; use Samba::LDAP::User; # create Template object my $user = Samba::LDAP::User->new() or croak "Can't create objectn";Various methods to manipulate a Samba LDAP user. Add, delete, modify, show and change a users password.INTERFACEnewCreate a new Samba::LDAP::User objectadd_userTakes many options. For example: user => oldpass => newpass => workstation => ou => user_uid => group => windows_user => trust_account => homedir => shell => gecos => skeleton_dir => surname => family_name => local_mail_address => mail_to_address => time_to_wait => aix => groups => ox => can_change_pass => must_change_pass => account_flags => logon_script => home_path => home_drive => user_profile => aix_user =>The above options are only needed if you don't want to use the defaults that are set in /etc/smbldap/smbldap.confdelete_userdisable_useris_valid_useris_samba_useris_unix_useris_nonldap_unix_userget_homedirmake_hashchange_password change_password( user => 'ghenry', oldpass => "$oldpass", newpass => "$newpass", samba => '1', # Update only Samba pass, can be # unix => '1' for unix pass only );Change user password in LDAP DirectoryChecks the users exists first, then changes the password If user doesn't exist, returns the error etc.If no oldpass arg is passed, binds as rootdn and sets a passwordDefault is set to change/add a Samba "and" Unix password. If you don't want this, pass in unix => '0', or samba => '0', etc. Requirements: · Perl · Carp · Regexp::DefaultFlags · Readonly · Crypt::SmbHash · Digest::MD5 · Digest::SHA1 · MIME::Base64 · List::MoreUtils · Unicode::MapUTF8


Samba::LDAP::User Related Software