user.rb
528 Bytes
class SdAdmin::Model::User
attr_accessor :name, :pass, :uid, :gid, :shell, :home
def initialize(args={}, backend=nil)
super(backend)
@backend.base_dn = 'ou=user,o=system,dc=weird-web-workers,dc=org'
@backend.filter = '(objectClass=posixAccount)'
@name = args[:name]
@pass = args[:pass]
@uid = args[:uid]
@gid = args[:gid]
@shell = args[:shell]
@home = args[:home]
@shadowmax = args[:shadowmax]
@shadowwarning = args[:shadowwarning]
end
end