pysphere
pysphere copied to clipboard
AD user not recognized when using domain
What steps will reproduce the problem?
1. server.connect("vmhost","DOMAIN\user","passsword")
What is the expected output? What do you see instead?
No expected output.
pysphere.resources.vi_exception.VIApiException: [InvalidLoginFault]: Cannot
complete login due to an incorrect user name or password.
What version of the product are you using? On what operating system?
0.1.8 on CentOS 6 64 and Cygwin64, currently the VMWare version is 5.1
Please provide any additional information below.
pysphere works well with non DOMAIN accounts, tested on 5.1 and 4.1 versions of
VMWare
Original issue reported on code.google.com by [email protected]
on 1 Oct 2013 at 9:55
Is there any chance you have passed the user string as:
"DOMAIN\user"
instead of
r"DOMAIN\user" or "DOMAIN\\user"
Notice that "\" is a escape character. And you are not escaping it in the
provided steps to reproduce.
Does the user/password work alright when provided to the vSphere Client?
Original comment by [email protected]
on 2 Oct 2013 at 2:06
You are right, a typo. I did escape the backslash.
I just cannot connect using the DOMAIN account.
Original comment by [email protected]
on 2 Oct 2013 at 4:14
Hello again,
Sorry I cannot get back to you sooner, actually I tried with r"DOMAIN\user"
and it does indeed work, oddly enough "DOMAIN\\user" does not.
Again with cygwin and Centos 6.4
Anyway, thank you for your very quickly response and for your solution.
And most of all KUDOS for a terrific work.
Original comment by [email protected]
on 2 Oct 2013 at 8:32
Hello,
neither r"DOMAIN\user" nor "DOMAIN\\user" works for me. But, pysphere works
well with non DOMAIN accounts. waht am I missing?
0.1.8 on CentOS 6 64 and VMware version is 5.0
Thanks,
Roger
Original comment by [email protected]
on 18 Nov 2013 at 4:08