Hello
I have a few problems and questions:
- I delegate a credential to my webservice with String identity =
SecurityManager.getManager().getCaller(); I can print out the identity of the
caller. I was of the opinion that if the webservice creates a file e.g in /tmp
the file would have the owner of the Caller but the owner is globus (under
globus the container runs). How can I create a file with the callers identity -
So that it has the rights of the caller? If i run a job the job runs under the
callers identity and creates files with the callers identity.
- If i want to start a job within my webservice I get the following exception
java.io.IOException: Job request error:
org.globus.gsi.GlobusCredentialException: Proxy file (/tmp/x509up_u1001) not
found.
What is this 1001 ProxyFile? Should this be the delegated credential from the
caller? The credential must be delegated correctly to the service because I can
print out the caller with SecurityManager.getManager().getCaller(). So I dont
know why I cant execute the job?
- What happens with the credential that is delegated to the webservice. How can
I get access to it as a variable? e.g GSSCredential cred = ???
getDelegatedCred? within the my storeFile function?
public void storeFile(byte[] file) throws IOException, GSSException{
SecurityManager.getManager().setServiceOwnerFromContext();
GSSCredential delegatedCred = ???
String identity = SecurityManager.getManager().getCaller();
}
thank you very much!
--
Ist Ihr Browser Vista-kompatibel? Jetzt die neuesten
Browser-Versionen downloaden: http://www.gmx.net/de/go/browser