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
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
switch for add and a switch for remove
New hire starts at company type one command from their new workstation
have it set them up with all of their accounts.
Obviously having some kind of decent directory service in place and
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
a lot about ruby.
So what I would like from you is not to tell me how but to point on some
the modules(if that’s what they are called in ruby) that will help me
this task done. Help me get past the hurdle of what ruby tools I should
so that I can dig into the documents for those modules and code it on my
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.
I have no idea like I said I am just jumping into the deep end here.
Your thoughts are always appreciated.
OH yeah the script (at least how i see it) would be sitting out on a
share on a Linux machine but being run on the actual workstation that
new hire will be using.