= SBS2003Contacts

* http://rubyforge.org/projects/uwruby/
* http://urwuby.rubyforge.org/sbs2003_contacts/

== DESCRIPTION:

* A small utiltity library to help alleviate the tedium of managing the contacts and e-mail lists from a Small Business Server 2003 Active Directory.

== FEATURES/PROBLEMS:

* Query AD and find out user info ( email, which lists they belong to )
* Query AD and find out e-mail list info ( list member e-mails )
* Manage lists ( add/remove e-mails )
* TODO: Reverse engineer SBS2003 AD schema's and figure out proper way to add new users/lists

== SYNOPSIS:

#!/usr/bin/env ruby -w

require 'rubygems'
require 'sbs2003_contacts'

# new(username, password, base_dn, server, port)
# assumes dc=com, localhost, 389
contact = SBS2003Contacts.new("username", "password", "dc=sbs2003,dc=local")

contact.find_user_dn_by_name("Some User")
# => CN=Some User,OU=...

contact.list_user_lists("Some User")
# => [ "CN=List One,OU=...." ]

contact.list_lists_member_emails("[email protected]")
# => [ [ "CN=User One,OU=...", "[email protected]" ], ... ]

== REQUIREMENTS:

* ruby-net-ldap >= 0.0.4

== INSTALL:

* sudo gem install sbs2003_contacts

== LICENSE:

(The MIT License)

Copyright (c) 2008 FIX

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
'Software'), to deal in the Software without restriction, including
without limitation the rights to use, copy, modify, merge, publish,
distribute, sublicense, and/or sell copies of the Software, and to
permit persons to whom the Software is furnished to do so, subject to
the following conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.