I am learning ruby and have a background in perl.
As my first project and to help me get my head around ruby I want to
create
a useradmin script that will let me do the following.
- Remotely create a domain user on a windows 2000 server
- Remotely create a user on a sco openserver box
- Remotely create a directory on Linux
- remotely create a user on Linux
- remotely append to the smb.conf on Linux
- Login into or webmail admin page and create a new email user
- Remotely add mac address to a squid access list
- remotely restart squid
From input(gui at a later time, from command line switches now):
user’s full name
user’s password
username
switch for add and a switch for remove
New hire starts at company type one command from their new workstation
and
have it set them up with all of their accounts.
Obviously having some kind of decent directory service in place and
single
sign on would help elevate this problem but on my task list it seems to
never get to the top. PLUS I think this will be a great exercise in
learning
a lot about ruby.
So what I would like from you is not to tell me how but to point on some
of
the modules(if that’s what they are called in ruby) that will help me
get
this task done. Help me get past the hurdle of what ruby tools I should
use
so that I can dig into the documents for those modules and code it on my
own.
New to OO thinking so I am going to be fighting a desire to write this
procedurally but the idea is to have some kind of user object that would
handle all of this.
Maybe a basic user object and then a sub class of user for accounts.
shurg
I have no idea like I said I am just jumping into the deep end here.
Your thoughts are always appreciated.
Paul Kraus
OH yeah the script (at least how i see it) would be sitting out on a
samba
share on a Linux machine but being run on the actual workstation that
the
new hire will be using.