Domain Value for ClientLogin authentication -- Where does it go?

35 views
Skip to first unread message

Glen Holcomb

unread,
Jan 12, 2012, 11:36:32 AM1/12/12
to google-app...@googlegroups.com
I'm looking at the ClientLogin Protocol section of the Provisioning API and it claims that the domain is needed yet it doesn't give any information on how to pass that data.

Using what is provided I get a 403 claiming BadAuthentication.  I'm using the same username and password that I log into the web interface with.  I'm hoping I just need to figure out how to specify the domain.

Any help would be most appreciated.

Gunjan Sharma

unread,
Jan 12, 2012, 11:58:50 AM1/12/12
to google-app...@googlegroups.com
Hello Glen

The Provisioning API works only for Google Apps domains. It will not work for Gmail accounts. With the help of the Provisioning API domain administrators can access control over the domain's users, organization unit and groups.

Thanks
Gunjan Sharma

Glen Holcomb

unread,
Jan 12, 2012, 12:09:23 PM1/12/12
to google-app...@googlegroups.com
Right, I'm not trying to use it for Gmail.  I'm trying to use it to create accounts in our Google Apps domain.

Glen Holcomb

unread,
Jan 12, 2012, 12:21:53 PM1/12/12
to google-app...@googlegroups.com
This is the documentation I'm looking at.  I'm working with the Protocol tab as I'm not using Java, Python, PHP or .NET.
Message has been deleted

Gunjan Sharma

unread,
Jan 12, 2012, 12:29:33 PM1/12/12
to google-app...@googlegroups.com
Hello Glen

When doing client Login and obtaining a auth token you do not need to pass the domain name. It is mainly needed when you are making calls to the API. For example you can obtain auth token using cURL. Can you try authenticating using cURL and let me know if you still get the same error?

Thanks
Gunjan Sharma

Glen Holcomb

unread,
Jan 12, 2012, 2:49:49 PM1/12/12
to google-app...@googlegroups.com
Exactly what I was thinking.  I tried just before I left for lunch and got the same error.  Here is my curl command:

curl --header "Content-Type:application/x-www-form-urlencoded" -X POST -d "&Email=lholcomb2%40cnm.edu&Password=password&accountType=HOSTED&service=apps" https://www.google.com/accounts/ClientLogin

I still get Error=BadAuthentication

The account I'm using has a "Super Administrator" Status in the Organization & users panel.  My actual password is not password but is a combo of lower and upper case with a couple of numbers, nothing that needs escaping.

Glen Holcomb

unread,
Jan 12, 2012, 4:14:00 PM1/12/12
to google-app...@googlegroups.com
Wow, so that is embarrassing.  I had a major reading comprehension failure.  I was passing a Password value rather than a Passwd value.  All is right with the world now.
Reply all
Reply to author
Forward
0 new messages