Some ruby code written to manage an ldap directory.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

19 lines
528 B

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