fix not member to conform restdoc and report error instead of list of missing variables
use proper status code in case credentials missing
fix variable scope
Merge pull request #61 from webyast/fix_AD_to_conform_restdoc

Fix ad to conform restdoc