System.setProperty in Zend Java Bridge

General discussion forum for the Zend Server

System.setProperty in Zend Java Bridge

Postby translateg2 on 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?
translateg2
 
Posts: 1
Joined: Tue Jan 08, 2013 11:25 am

Return to Zend Server

Who is online

Users browsing this forum: No registered users and 6 guests