cancel
Showing results for 
Search instead for 
Did you mean: 

authenticating a user using JCO

Former Member
0 Kudos
73

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

View Entire Topic
Former Member
0 Kudos

Hi Gaurav,

In SAP R/3 system, it takes only 8 digit password for any user. So, it checks upto 8 characters only. No metter how much digits or characters you have appended.

Try to give some other password instead of just appending digits or characters behing "password".

Regards,

Bhavik