System.setProperty in Zend Java Bridge

General discussion forum for the Zend Server
Post Reply
translateg2
Posts: 1
Joined: Tue Jan 08, 2013 11:25 am

System.setProperty in Zend Java Bridge

Post by translateg2 » Tue Jan 08, 2013 11:26 am

I'm using GSS API to implement custom authentication scheme and I need to apply "java.security.auth.login.config" settings from config file as follows:

Code: Select all

System.setProperty("java.security.auth.login.config", jgssConfigFile);
The file contents is:

Code: Select all

com.sun.security.jgss.accept {
  com.sun.security.auth.module.Krb5LoginModule required
    debug=true
    useKeyTab=true
    storeKey=true
    keyTab=test2.keytab
    principal="HTTP/iis.mycomapny.local@MYCOMPANY.LOCAL"
    isInitiator=false;
};
But I'm facing some problems with Zend Java Bridge... Once config was applied, it becomes global and it's not possible to reload it until system restart. Even if I delete config file, the previous settings still remain for all next method calls.
It seems to me that this behavior is caused by Zend Java Bridge design (all code is executed within single Java Machine).
Is it any possibility to force new system property on every execution?

Post Reply