fyafighter / pysphere

Automatically exported from code.google.com/p/pysphere
0 stars 0 forks source link

AD user not recognized when using domain #44

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
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 maxleo...@gmail.com on 1 Oct 2013 at 9:55

GoogleCodeExporter commented 9 years ago
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 argo...@gmail.com on 2 Oct 2013 at 2:06

GoogleCodeExporter commented 9 years ago
You are right, a typo. I did escape the backslash.

I just cannot connect using the DOMAIN account.

Original comment by maxleo...@gmail.com on 2 Oct 2013 at 4:14

GoogleCodeExporter commented 9 years ago
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 maxleo...@gmail.com on 2 Oct 2013 at 8:32

GoogleCodeExporter commented 9 years ago
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 Rogerw...@gmail.com on 18 Nov 2013 at 4:08