benjarobbi / get-a-robot-vpnc

Automatically exported from code.google.com/p/get-a-robot-vpnc
1 stars 0 forks source link

Cannot specify domain name for authentication #96

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
There is no option in the GUI for specifying the DOMAIN option for vpnc.  (i.e. 
vpnc --domain DOMAIN_NAME) This makes it impossible to connect to many 
corporate VPNs.  For example, you cannot connect to a Cisco concentrator which 
uses Microsoft active directory (AD) for authentication.

Original issue reported on code.google.com by craigsyo...@gmail.com on 6 Jul 2010 at 7:57

GoogleCodeExporter commented 9 years ago
Can you enter a username as domain\username or username@domain?

Original comment by marshall...@gmail.com on 6 Jul 2010 at 10:30

GoogleCodeExporter commented 9 years ago
Using the username@domain notation, I get the following in my 
lastConnection.log (which is the same as if I simply omit the domain):
server requested domain, but none set (use "Domain ..." in config or --domain

process stderr  server requested domain, but none set (use "Domain ..." in 
config or --domain

Using the domain\username method I get:
expected xauth packet; rejected:  (ISAKMP_N_UNEQUAL_PAYLOAD_LENGTHS)(30)

process stderr  expected xauth packet; rejected:  
(ISAKMP_N_UNEQUAL_PAYLOAD_LENGTHS)(30)

However, when I run the vpnc command manually through an adb shell and add 
--domain DOMAIN, it connects and I am able to access my network:
# /data/data/org.codeandroid.vpnc_frontend/files/vpnc --script 
/data/data/org.codeandroid.vpnc_frontend/files/vpnc-script --no-detach --domain 
DOMAIN

I have checked out the trunk in an attempt to develop a patch for this myself, 
but unfortunately I am running into a Java error building the code as-is which 
I have not yet been able to overcome.  (I'm really more of a Linux kernel 
hacker than a Java dev so it may take me a little while to get my Java legs 
back.)

Original comment by craigsyo...@gmail.com on 6 Jul 2010 at 11:09

GoogleCodeExporter commented 9 years ago
After building the trunk code for this project, I noticed that it now provides 
an option to append a string to the vpnc command.  This should provide a 
workaround for the issue bur unfortunately I'm finding that I still can only 
connect when running the command at a shell rather than through the app.+

Original comment by craigsyo...@gmail.com on 7 Jul 2010 at 1:38