Samba::LDAP::Config

Samba::LDAP::Config is a Perl module to config file related tasks for Samba::LDAP.
Download

Samba::LDAP::Config 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::Config Tags


Samba::LDAP::Config Description

Samba::LDAP::Config is a Perl module to config file related tasks for Samba::LDAP. Samba::LDAP::Config is a Perl module to config file related tasks for Samba::LDAP.SYNOPSIS use Samba::LDAP::Config; my $config = Samba::LDAP::Config->new() or die "Can't create objectn"; # Returns where smbldap.conf, smbldap_bind.conf and # smb.conf are located my $smbldap_conf = $config->find_smbldap(); my $smbldap_bind_conf = $config->find_smbldap_bind(); my $samba_conf = $config->find_samba();Various methods to find where the related Samba configuration files are saved, read them in and write them out etc. Subclasses Config::Tiny.INTERFACEnewCreate a new Samba::LDAP::Config objectfind_smbldapSearches in usual places for smbldap.conf and returns location found. my $smbldap_conf = $config->find_smbldap();Returns the smbldap.conf in the scripts, if nothing found.find_smbldap_bindSearches in usual places for smbldap_bind.conf and returns location found. my $smbldap_bind_conf = $config->find_smbldap_bind();Returns the smbldap_bind.conf in the scripts, if nothing found.find_sambaSearches in usual places for smb.conf and returns location found. my $smb_conf = $config->find_samba();Returns the smb.conf in the scripts, if nothing found.read_confWrapper to provide an instant error message as returned by the native Config::Tiny read method my $conf = $config->read_conf( $filename );read_stringOverrides Config::Tiny's read_string to exclude the " " marks found in smbldap.conf and smbldap_bind.conf and remove section handling, as we don't have any in either of these files.Also substitutes the suffix hash ( ${suffix} ) with its value.Need to fix the smb.conf reading. Will use File::Samba or Config::Auto for it instead. Requirements: · Perl · Config::Tiny · Regexp::DefaultFlags · Readonly


Samba::LDAP::Config Related Software