Changing Google domain passwords with ColdFusion and Dito GAM

For a recent project, I was tasked with creating a service that could synchronously change the Google domain password for any of our domain users. I struggled with the OAuth 2.0 handshake business for a good bit (https://developers.google.com/identity/protocols/OAuth2ServiceAccount), created some badass JWT signatures, I believe got very close to having the authentication setup, but then figured out this other, much simpler way of doing this. So here is a blog post on my findings. Environment: Adobe ColdFusion 11 running on a Windows 2012 R2 server with IIS 8.5. Dito GAM (http://www.ditoweb.com/partner-products/gam-by-dito/) is this great free, open source command line tool to efficiently manage Google domain & user settings. So I…
Read More

Changing LDAP passwords with ColdFusion

Took me a WHILE to figure out how to do this, but finally have it working so I figured I would blog about it. Environment: Adobe ColdFusion 11 running on a Windows 2012 R2 server with IIS 8.5. To begin with, make sure that your server has a SSL certificate installed for the domain that will be making requests to the LDAP server. Here is the code that you need: [java] <cfscript> new_pwd = "NewPwd9!"; new_pwd_quotes = '"' & "#new_pwd#" & '"'; unicode_pwd = new_pwd_quotes.getBytes("UTF-16LE"); adminName = "CN=ADMIN_USER, OU=Special Privileges OU, OU=Users OU, dc=org, dc=com"; adminPwd = "admin"; userToReset = "CN=TEST_USER, OU=Staff, OU=Users OU, dc=org, dc=com"; // Retrieve this info…
Read More

Changing Google domain passwords with ColdFusion and Dito GAM

For a recent project, I was tasked with creating a service that could synchronously change the Google domain password for any of our domain users. I struggled with the OAuth 2.0 handshake business for a good bit (https://developers.google.com/identity/protocols/OAuth2ServiceAccount), created some badass JWT signatures, I believe got very close to having the authentication setup, but then figured out this other, much simpler way of doing this. So here is a blog post on my findings. Environment: Adobe ColdFusion 11 running on a Windows 2012 R2 server with IIS 8.5. Dito GAM (http://www.ditoweb.com/partner-products/gam-by-dito/) is this great free, open source command line tool to efficiently manage Google domain & user settings. So I…
Read More

Changing LDAP passwords with ColdFusion

Took me a WHILE to figure out how to do this, but finally have it working so I figured I would blog about it. Environment: Adobe ColdFusion 11 running on a Windows 2012 R2 server with IIS 8.5. To begin with, make sure that your server has a SSL certificate installed for the domain that will be making requests to the LDAP server. Here is the code that you need: [java] <cfscript> new_pwd = "NewPwd9!"; new_pwd_quotes = '"' & "#new_pwd#" & '"'; unicode_pwd = new_pwd_quotes.getBytes("UTF-16LE"); adminName = "CN=ADMIN_USER, OU=Special Privileges OU, OU=Users OU, dc=org, dc=com"; adminPwd = "admin"; userToReset = "CN=TEST_USER, OU=Staff, OU=Users OU, dc=org, dc=com"; // Retrieve this info…
Read More