I am able to do this at the work-place using ruby net/ldap library. If
LDAP bind succeeds, one is authenticated user...

Hope this helps,

Vlad

PS: The net/ldap can also do this over SSL...