proxy

Steve Dalton's picture

Grails set-proxy and authenticated proxy servers

Quick tip.

If your company uses an authenticating NTLM proxy server and your login includes your domain name, eg:

internal\joebloggs

The \ in the username will cause some trouble for "grails set-proxy". Once set this way you will then get

Error executing script SetProxy: org.codehaus.groovy.control.MultipleCompilationErrorsException: startup failed, Script1.groovy: 2: unexpected char: '\' @ line 2, column 66.

If you try and set it again (you'll have to remove the proxy script in your .grails directory to be able to set it again)

Simple solution - just make sure you use a \\ in the username and it will all work

internal\\joebloggs

Wasted a bit of time for me - so just wanted to share in case it helps others.

Syndicate content