I’d like to say thank you to SAS Italian Support who gave the correct answer. As long as we do not know the way SAS encrypts passwords, we can use a different interface to do that. Here you can find the documentation: http://support.sas.com/documentation/cdl/en/omaref/63063/PDF/default/omaref.pdf And here it is some sample code: MdFactoryImpl _factory = new MdFactoryImpl(false); MdObjectStore objectStore = _factory.createObjectStore(); Person person = (Person) _factory.createComplexMetadataObject(objectStore, "mike", MetadataObjects.PERSON, shortReposID); /* Won’t work, for we do not know the way SAS will encrypt password */ InternalLogin internalLogin = (InternalLogin) _factory.createComplexMetadataObject(objectStore, "InternalLogin_Object", MetadataObjects.INTERNALLOGIN, shortReposID); internalLogin.setSalt(salt); internalLogin.setPasswordHash("?????????????"); person.setInternalLoginInfo(internalLogin); /* */ /* This will work instead */ MdOMRConnection connection = _factory.getConnection(); ISecurity_1_1 is = connection.MakeISecurityConnection(); is.SetInternalPassword("mike", "SASpw1"); /* */ person.updateMetadataAll(); Thank you all.
... View more