Fixes bach in transaction scope, fixed AD authentification