r12322: automatically use cmdline_credentials if the ldb object doesn't have