Active directory integration

Hello all, I need to develop an application that use active directory users to validate login and passwords, I like the security module that scriptcase have, but this module store credentials using md5 in the db.

Is there a easy way to validate against ad and Linux ldap?

Thanks.

Gonzaloaraujoc