Parent

Class Index [+]

Quicksearch

ActiveSambaLdap::User

Public Instance Methods

fill_default_values(options={}) click to toggle source

(Not documented)

# File lib/active_samba_ldap/user.rb, line 19
    def fill_default_values(options={})
      result = super
      return result unless samba_available?

      options = options.stringify_keys
      subst = Proc.new do |key|
        value = options[key]
        if value
          substitute_template(value)
        else
          substituted_value(key)
        end
      end

      self.samba_home_path ||= subst["user_home_unc"]
      self.samba_home_drive ||= subst["user_home_drive"].sub(/([^:])$/, "\\1:")
      self.samba_profile_path ||= subst["user_profile"]
      self.samba_logon_script ||= subst["user_logon_script"]
    end

Private Instance Methods

default_account_flags() click to toggle source

(Not documented)

# File lib/active_samba_ldap/user.rb, line 40
    def default_account_flags
      "[UH]"
    end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.