fixed ldap/ad integration, fixed build decl wrappers
james | changing the behavior of the wrapper so they know what arguments to pass to their wrapped functions.