Skip to Content
0
Former Member
Dec 02, 2005 at 12:53 AM

authenticating a user using JCO

39 Views

Hi,

I was authenticating a user in SAP using the following code:

System.out.println("\n\nVersion of the JCO-library:\n" + "----


\n"

+ JCO.getMiddlewareVersion());

Properties props = new Properties();

props.put("jco.client.client", "800");

props.put("jco.client.user", "gk1");

props.put("jco.client.passwd", "password");

props.put("jco.client.lang", "EN");

props.put("jco.client.sysnr", "01");

props.put("jco.client.ashost", "172...*");

client = JCO.createClient(props);

// Open the connection

client.connect();

Here, the password for the "gk1" user is "password". Now if I update the password to be "password1" in the code - the user is still authenticated. No matter how many times I add digits towards the end of the password for this user, it still gets authenticated. Any ideas?

Thanks