Programmatically write rmi.policy not working

Hello there,
I am trying to write rmi.policy programatically in my server class. I tried these options,
System.setProperty("java.security.policy","C:\\Program Files\\eclipse\\security\\rmi.policy"); also
Properties p = System.getProperties();
p.setProperty("java.security.policy","C:\\Program Files\\eclipse\\security\\rmi.policy"); but it is giving me this error,
java.security.AccessControlException: access denied (java.net.SocketPermission 127.0.0.1:1099 connect,resolve)my propeties file is
grant {
    permission java.net.SocketPermission "*:1024-65535",
        "connect,accept";
    permission java.net.SocketPermission "*:80", "connect";
};Could you please let me know the solution for this?
Actually I dont want to write any rmi.policy file how can I hardcode all security permissions in my server class itself?
Thnaks
Sat'n

You don't need to write a security policy at all. I didn't want to bother with a policy file, so I just extended the java.lang.SecurityManager class. It allows much more control
Here's a sample class:
public class MySecurityManager extends SecurityManager {
public void checkPermission(Permission perm) {
   if (perm instanceof ReflectPermission)  return;
   if (perm instanceof SerializablePermission) return;
    if (perm instanceof FilePermission) {
          FilePermission fileperm=(FilePermission) perm;
          String filename=fileperm.getName();
          String test = fileperm.getActions();
                //don't allow files to be deleted
         if (test.indexOf("delete")==-1) return;
     //throw a security exception for anything you don't want to allow
     throw new SecurityException("access?"+perm.getClass().toString()+":"+ perm.getName());
public void checkRead(FileDescriptor fd) {
    public void checkRead(String file, Object context) {
}You basically want to have empty methods for anything you want to allow (in the security manager class, the default is to throw a security exception). Take a look at the javadoc for SecurityManager & decide what methods you want to allow. The class above allows all read access to a file. It doesn't allow files to be deleted. There are certain permissions, like reflect permission, that you have to allow in order for program to run!
Play around with it, by setting the security Manager equal to an instance of the MySecurityManager.

Similar Messages

  • Why my RMI is not Working in Linux???

    Hiii how ru?
    I am Rahul here
    Well I have a problem that my RMI in not working on Linux.. so can u tell me the solution to my problem???
    When i am typing following command i am getting exception as RmiNotBoundException
    java -Djava.security.policy=my.policy ChaClient&
    however my Server is Starting normally but client is not connection to server.
    so please tell me the solution to this problem
    U can contact me at
    [email protected]
    [email protected]
    Thank u Very much...

    i ran into the same issue dealing with RMI and Linux. My issue was the the stub that linux was giving you gave in the host field the ip number of "127.0.0.1" which tried to make the client connect to itself. this is how i got around it:
    java -Djava.rmi.server.hostname=<ip that other clients will connect to>
    so, for instance, if on a client you connect to the server with an IP of 10.5.0.1, then when starting up the java vm, you start it
    java -Djava.rmi.server.hostname=10.5.0.1
    hopefully that helps

  • Import/removal policy not working javax.naming.NameNotFound

    Hi, i am experiencing some problems with my import/removal policy...more so the removal workstation policy not working.
    When the policy schedule time initiates - the following shows up on the zenworks removal workstation removal screen:
    30-Oct-2009 17:35:39 javax.naming.NameNotFoundException [Root exception is com.novell.service.jncp.NDSException: ccode = -601 (0xfffffda7)]
    I keep seeing this on the screen and in the zenwsrem.log file.
    I am running:
    Zenworks 6.5 sp2
    Netware 6.5 sp5
    Can anyone help as i want to keep my tree clean from all the thousands of workstation objects that are generating and are mostly redundant.
    Any help with this would be very helpful.
    I do not know why this is happening...i have read a few tids, but the naming of my container does not use any special characters, just "Workstations".
    regards
    Dennis

    Did any of the removals succeed?
    i.e.
    20-Sep-2009 23:00:31 Removed workstation:T82715.Workstations.BilletRd.WF
    20-Sep-2009 23:00:32 Removed workstation:T87490.Workstations.BuxtonRd.WF
    20-Sep-2009 23:00:32 Removed workstation:T87810.Workstations.BuxtonRd.WF
    Are they still in eDir?
    I'm assuming that edir is clean.. so the only other thing that would come to
    mind is that the server/workstation policy doesn't have rights to delete
    from the OU's your workstations are in?
    I didn't go thru the log exactly line by line, but it looks like its always
    bombing on workstations in
    your BuxtonRd.WF and CecilRd.WF containers.
    >>> On 11/5/2009 at 10:26 AM, in message
    <[email protected]>,
    dchitolie<[email protected]> wrote:
    > In relation to the tid, i do not have any / in my containers?
    > Here is my Zenwsrem.log:
    >
    > NameNotFoundException [Root exception
    > iscom.novell.service.jncp.NDSException: ccode = -601 (0xfffffda7)]
    > 27-Dec-2008 23:00:04 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 03-Jan-2009 23:00:03 Removed
    workstation:T87306.Workstations.BuxtonRd.WF
    > 03-Jan-2009 23:00:04 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 10-Jan-2009 23:00:50 Removed
    workstation:T84740.Workstations.BilletRd.WF
    > 10-Jan-2009 23:00:50 Removed
    workstation:T87424.Workstations.BilletRd.WF
    > 10-Jan-2009 23:00:50 Removed
    workstation:T87324.Workstations.BuxtonRd.WF
    > 10-Jan-2009 23:00:51 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 17-Jan-2009 23:00:16 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 31-Jan-2009 23:00:07 Removed
    workstation:T85290.Workstations.BilletRd.WF
    > 31-Jan-2009 23:00:08 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    >
    > 14-Mar-2009 23:00:36 Removed
    workstation:T87327.Workstations.BuxtonRd.WF
    > 14-Mar-2009 23:00:37 Removed
    workstation:T87484.Workstations.BuxtonRd.WF
    > 14-Mar-2009 23:00:39 Removed workstation:T93380.Workstations.CecilRd.WF
    > 14-Mar-2009 23:00:39 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 22-Mar-2009 23:00:04 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 28-Mar-2009 23:00:48 Removed workstation:T88849.Workstations.CecilRd.WF
    > 28-Mar-2009 23:00:49 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 29-Mar-2009 23:00:27 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 02-Apr-2009 17:51:08 Could not authenticate as policy:
    > 05-Apr-2009 23:00:31 Removed workstation:T8102T.Workstations.CecilRd.WF
    > 05-Apr-2009 23:00:32 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 12-Apr-2009 23:00:23 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 17-Apr-2009 11:12:04 Could not authenticate as policy:
    > 19-Apr-2009 23:00:23 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 26-Apr-2009 23:00:21 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 03-May-2009 22:59:55 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 10-May-2009 23:00:04 Removed workstation:T88842.Workstations.CecilRd.WF
    > 10-May-2009 23:00:04 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 17-May-2009 23:00:22 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 24-May-2009 22:59:47 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 31-May-2009 23:00:15 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 07-Jun-2009 23:00:49 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 14-Jun-2009 23:00:04 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 21-Jun-2009 23:00:38 Removed workstation:T88834.Workstations.CecilRd.WF
    > 21-Jun-2009 23:00:38 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 28-Jun-2009 08:09:11 No removal policy found.
    > 28-Jun-2009 09:08:54 No removal policy found.
    > 28-Jun-2009 10:08:37 No removal policy found.
    > 28-Jun-2009 11:08:20 No removal policy found.
    > 28-Jun-2009 12:08:03 No removal policy found.
    > 28-Jun-2009 13:07:45 No removal policy found.
    > 28-Jun-2009 14:07:28 No removal policy found.
    > 28-Jun-2009 15:07:11 No removal policy found.
    > 28-Jun-2009 16:06:55 No removal policy found.
    > 28-Jun-2009 17:06:37 No removal policy found.
    > 28-Jun-2009 18:06:20 No removal policy found.
    > 28-Jun-2009 19:06:03 No removal policy found.
    > 28-Jun-2009 20:05:46 No removal policy found.
    > 28-Jun-2009 21:05:29 No removal policy found.
    > 28-Jun-2009 22:05:12 No removal policy found.
    > 28-Jun-2009 22:55:58 No removal policy found.
    > 28-Jun-2009 23:04:55 No removal policy found.
    > 29-Jun-2009 00:04:38 No removal policy found.
    > 29-Jun-2009 01:04:21 No removal policy found.
    > 29-Jun-2009 02:04:04 No removal policy found.
    > 29-Jun-2009 03:03:47 No removal policy found.
    > 29-Jun-2009 04:03:30 No removal policy found.
    > 29-Jun-2009 05:03:13 No removal policy found.
    > 29-Jun-2009 06:02:56 No removal policy found.
    > 29-Jun-2009 07:02:38 No removal policy found.
    > 29-Jun-2009 08:02:22 No removal policy found.
    > 29-Jun-2009 09:02:05 No removal policy found.
    > 05-Jul-2009 23:00:30 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 12-Jul-2009 23:00:44 Removed workstation:T82363.Workstations.CecilRd.WF
    > 12-Jul-2009 23:00:44 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 19-Jul-2009 23:00:28 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 26-Jul-2009 23:00:19 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 02-Aug-2009 23:00:41 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 09-Aug-2009 23:00:22 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 16-Aug-2009 23:00:22 Removed
    workstation:T85264.Workstations.BuxtonRd.WF
    > 16-Aug-2009 23:00:22 Removed
    workstation:T85266.Workstations.BuxtonRd.WF
    > 16-Aug-2009 23:00:24 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 23-Aug-2009 23:00:20 Removed
    workstation:T85261.Workstations.BuxtonRd.WF
    > 23-Aug-2009 23:00:21 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 30-Aug-2009 23:00:02 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 06-Sep-2009 23:00:19 Removed workstation:T82722.Workstations.CecilRd.WF
    > 06-Sep-2009 23:00:20 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 13-Sep-2009 23:00:13 Removed
    workstation:T85336.Workstations.BilletRd.WF
    > 13-Sep-2009 23:00:15 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 20-Sep-2009 23:00:31 Removed
    workstation:T82715.Workstations.BilletRd.WF
    > 20-Sep-2009 23:00:32 Removed
    workstation:T87490.Workstations.BuxtonRd.WF
    > 20-Sep-2009 23:00:32 Removed
    workstation:T87810.Workstations.BuxtonRd.WF
    > 20-Sep-2009 23:00:33 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 27-Sep-2009 23:00:03 Removed
    workstation:T85179.Workstations.BilletRd.WF
    > 27-Sep-2009 23:00:04 Removed
    workstation:T87494.Workstations.BuxtonRd.WF
    > 27-Sep-2009 23:00:05 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 04-Oct-2009 23:00:22 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 11-Oct-2009 23:00:03 javax.naming.NamingException [Root exception
    > iscom.novell.service.jncp.NDSException: ccode = -637
    > (0xfffffd83)];remaining name 'T87395'
    > 11-Oct-2009 23:00:04 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 18-Oct-2009 23:00:35 Removed
    workstation:T87395.Workstations.BuxtonRd.WF
    > 18-Oct-2009 23:00:36 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 30-Oct-2009 17:30:31 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    > 30-Oct-2009 17:35:39 javax.naming.NameNotFoundException [Rootexception
    > is com.novell.service.jncp.NDSException: ccode = -601(0xfffffda7)]
    >
    > Any ideas.....
    > thanks
    > regards
    >
    > Dennis--
    dchitolie-------------------------------------------------------------------
    -----dchitolie's Profile:
    > http://forums.novell.com/member.php?userid=4304View this thread:
    > http://forums.novell.com/showthread.php?t=391202

  • Throttling policy not working on Exchange 2013 CU6

    Hi,
    We have a test throttling policy to restrict a mailbox to send at most 2 messages
    per minute in our live Exchange 2013 CU6 enviroment. It was associated to a test mailbox. We have separated installed 2 mailboxe and 2 cas server roles in our enviroment. I have checked latest CU-s (7 & 8) but these are
    not fixing any related bugs.
    We tried lots of workaround (see below list) and solutions to fix this but it is still not working with outlook MAPI and OWA client.
    Throttling policy not working
    smtp service restart
    RPC Client Acces service restart
    The policy details:
    Get-ThrottlingPolicy  low_rate_limit |fl *limit*
    MessageRateLimit   : 2
    RecipientRateLimit : 1000
    Get-mailbox [email protected] | fl ThrottlingPolicy
    ThrottlingPolicy           : low_rate_limit
    Do you have any idea what is the problem?
    Thank you in advance.
    br,
    Zoltan

    Hi Zoltan,
    Base on my research, you need to configure the MessageRateLimit parameter on receive connector also.
    The MessageRateLimit parameter specifies the maximum number of messages that can be sent by a single client IP address per minute. The default value for a Receive connector configured in the Transport service on a Mailbox server is
    unlimited. The default value for a Receive connector configured on an Edge server is 600 messages per minute. The valid input range for this parameter is 1 to 2147483647. To remove the message rate limit on a Receive connector, enter a value of
    unlimited.
    https://technet.microsoft.com/en-us/library/bb125140(v=exchg.150).aspx
    Best regards,
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact [email protected]
    Niko Cheng
    TechNet Community Support

  • Retention Policy not working for OWA accounts

    I have Exchange 2010 running, with 100% of users using OWA, not Outlook as their mail client.
    I have one use that wants to have messages in all his folders deleted at the end of each day.  Specifically, these folders are under the Inbox, but are subfolders in the Inbox, not the Inbox itself.
    I set up a retention policy tag with the Tag Type "All other Folders in the Mailbox", with age limit for retention for 1 day, and the action to delete and allow recovery.
    Then I applied the Retention policy just to that one users.
    The next morning, all the messages from the day before were still there.  Did I miss something in the setup?
    Does the "1 day" retention delete messages after 24 hours of the message being there, or at the end of each day can I have it delete all the previous messages?
    Does this have something to do with the fact that we are running OWA, not Outlook?  I can right click on the folders and view retention policy...it just says "Use Parent Folder Policy"...nowhere can I find the parent folders policy.
    Any advice would be appreciated.

    Hi,
    For your retention policy not working issue, we can try the following troubleshooting:
    1. Please check whether it has Event ID 9017 and 9018, to make sure the MRM working well.
    2. Please check the Managed Folder Assistant service is working well.
    3. Please use MFCMAPI Tool to check the "PR_MESSAGE_DELIVERY_TIME" and "PR_CREATION_TIME" properties on the items that should be removed.
    If you have any question, please feel free to let me know.
    Thanks,
    Angela 
    Angela Shi
    TechNet Community Support

  • RMI service not working only inside desktop application creatd in netbeans

    Actually I have made an RMI service which works just fine inside a normal java application which I have created in netbeans 6.1, now the problem aries when I put this code inside a desktop application creatd in netbeans 6.1, see the code below, when I use this code in desktop application creatd in netbeans 6.1 the application hangs at the line as shown below;
    String[] list = registry.list();
    well I do not no why it just hangs there and after three or for minutes it returns with some error, I have shown the error in the end. What it seems to me that inside desktop application creatd in netbeans 6.1 the application can not get registry.list() or registry list.
    try
    registry = LocateRegistry.getRegistry(serverAddress, 1099);
    String[] list = registry.list();
    if( list == null )
                        throw new RemoteException( "list == null" );
    else
    for (int k=0; k < list.length; k++)
    System.out.println("registry" + k + ": " + list[k].toString());
    System.getProperties().setProperty("java.security.policy", "wideopen.policy");
    // Create and install a security manager
    if(System.getSecurityManager() == null)
    System.setSecurityManager(new RMISecurityManager());
    rmiServer = (ReceiveNodeInterface)(registry.lookup("RMIServiceToSendNodesHierarchy"));
    String text = "Please, send us the root node.";
    rootNode = rmiServer.getRootNode(text);
    treeModel = new DefaultTreeModel( rootNode );
    jTreeOPCservers.setModel(treeModel);
    catch(RemoteException e){
    e.printStackTrace();
    catch(NotBoundException e){
    e.printStackTrace();
    the error is ;
    java.rmi.ConnectIOException: Exception creating connection to: 192.168.1.142; nested exception is:
    java.net.SocketException: Connection reset
    at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:614)
    at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:198)
    at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:184)
    at sun.rmi.server.UnicastRef.newCall(UnicastRef.java:322)
    at sun.rmi.registry.RegistryImpl_Stub.list(Unknown Source)
    at tagbrowser.TagBrowser.getRootNodeIntoTree(TagBrowser.java:198)
    at tagbrowser.TagBrowser.<init>(TagBrowser.java:83)
    at desktopapplication1.DesktopApplication1View.MyAction(DesktopApplication1View.java:217)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)

    No I am sure that I am not starting the RMI Registry with socket factories at the server. Next I am sure that the RMI Registry is running. Infect as I have said in the start that I have made an RMI service which works just fine inside a normal java application which I have created in netbeans 6.0.1 the problem aries when I put this code inside a desktop application creatd in netbeans 6.0.1 or 6.5 both.

  • GPP Delete policy not working on Windows Server 2008 R2 RDS when deleting shared printers with status access denied.

    Hi!
    I Have one AD Security group for each shared printer, I have one GPP that map the printer if the user is in the security group that belong to the printer. And one GPP to delete the printer if the user is NOT member of the security group. The security group
    is also applied in “Security” tab on the printsrv with PRINT rights  and “everyone” is removed. This works 100 % on Windows 7 clients and Windows 2003 Terminal Servers. But on Windows 2008 R2 RDS this dont work.The Delete Policy will not delete the shared
    printer. No warning in any logs, and the gpresult shows that the gpo setting applyed sucessfully. The only way I can make the Delete policy work is if i give the user print rights on the printer on the printsrv. Looks like for the policy to work on 2008
    R2 the user must have print rights on the printer object on the printserver. The GPP Delete Policy will not delete printers that have status : access denied. Anyone else had this problem?

    Hi,
    Based on your description, it seems that we need to give users appropriate permissions, for the error
    Access is denied is more or less related to permissions.
    However, we can avoid deploying the GPP printer delete policy. As far as I know, we can use Item-Lvel Targeting of GPP to push the shared printers
    to the targeted users or groups.
    Regarding ILT, the following articles can be referred to for more information.
    Preference Item-Level Targeting
    http://technet.microsoft.com/en-us/library/cc733022.aspx
    Security Group Targeting
    http://technet.microsoft.com/en-us/library/cc772471.aspx
    Best regards,
    Frank Shen

  • Group Policy not work in some client machine.

    Hello All,
    Existing environment is AD 2012. gpupdate /force command does not working in some client machine. And it's occur randomly. Error shown about 15-20% of client machine. Please suggest. Hopefully this time get reply from community.
    The Error:
    User policy could not be updated successfully. The following errors were encount
    ered:
    The processing of Group Policy failed. Windows attempted to read the file \\example.net\sysvol\example.net\Policies\{31B2F340-016D-11D2-945F-00C04FB
    984F9}\gpt.ini from a domain controller and was not successful. Group Policy set
    tings may not be applied until this event is resolved. This issue may be transie
    nt and could be caused by one or more of the following:
    a) Name Resolution/Network Connectivity to the current domain controller.
    b) File Replication Service Latency (a file created on another domain controller
     has not replicated to the current domain controller).
    c) The Distributed File System (DFS) client has been disabled.
    Computer policy could not be updated successfully. The following errors were enc
    ountered:
    The processing of Group Policy failed. Windows attempted to read the file \\example.net\sysvol\example.net\Policies\{31B2F340-016D-11D2-945F-00C04FB
    984F9}\gpt.ini from a domain controller and was not successful. Group Policy set
    tings may not be applied until this event is resolved. This issue may be transie
    nt and could be caused by one or more of the following:
    a) Name Resolution/Network Connectivity to the current domain controller.

    Thanks for your reply. basically this error occurs with in same location as well as branch location. i have check event log in AD but not got any specific error. AD health status is ok. AD to AD synchronization also working well. All the client machine running
    on windows 7 64 bit and few of them are windows 8. 
    Please suggest. if you need any event log for analysis i can send you.
    Thanks
    I recommend you examine the event logs upon an affected client machine. Specifically, look for the surrounding events on that machine (both System, and Application logs), for the hours previous and the hour after.
    The time period may vary according to your environment (e.g. what is expected/normal for your environment, your configured GP refresh cycle-time).
    e.g., are there network drops, or power drops, or system crashes, restarts at the similar time.
    if it's a laptop, is it wireless? Was there a transition from wireless to wired operation?
    Is there VPN in use?
    If you are able to compare with another machine (I would encourage that), to understand what "normal" looks like in the logs, so that you have some kind of baseline data for comparison.
    Other checks, maybe confirm that the machines are updating as required (have the relevant WindowsUpdates etc), and consider if some security/protection/firewall software might be interfering with normal Windows operations.
    Also the potential for malware or virus, which can disturb many basic services (ensure a scan is performed and returns clean).
    If you have the opportunity for an affected user to contact you urgently when the symptom occurs, check that the gpt.ini file is accessible from their PC.
    e.g.: \\example.net\sysvol\example.net\Policies\{31B2F340-016D-11D2-945F-00C04FB
    984F9}\gpt.ini
    This file is hosted within the replicated SYSVOL share on your DC's, so check that it is accessible.
    You might also validate the particular GPO this refers to, and check each of your DC's holds the correct copy of the files for that GPO GUID.
    If you open that GPO, and perform a minor change to it (e.g. add a comment), then click Apply, OK, this should cause the GPO contents to replicate an updated version (be cautious, depending upon the nature of that GPO !!!)
    Don
    (Please take a moment to "Vote as Helpful" and/or "Mark as Answer", where applicable.
    This helps the community, keeps the forums tidy, and recognises useful contributions. Thanks!)

  • OAM 11g "Failure URL" in Authoriztion policy not working?

    Hi,
    Per the subject, I am running OAM server 11g (11.1.1.3), with an OAM 10g Apache webgate.
    In the OAM Authorization policy (protected), I have specified a full URL for the "Failure URL", to get the browser to redirect when an authorization failure occurs.
    However, when I test with a user that does not have access (user authenticates ok, but doesn't have right to access the protected resource), instead of the browser being redirected, I am getting an "Oracle Access Manager Operations Error" page.
    I've been trying to figure this out, and have found several threads about this, e.g.:
    OAM 11g authz redirect URL not working?
    But, as I said, I am using OAM 11g server, and there is no "Inconclusive URL" in the policy settings (I guess there was in 10g, but not in 11g).
    I have trace logging enabled on the OAM server, and I can clearly see that the request is getting "results DENY", but there's no indication in the logs that OAM server is aware of any failure redirection URL.
    I've also got a header trace, and I can see that the browser is simply being re-directed to the "/oberr.cgi...." URL, so it' not going "somewhere else".
    So, does anyone know why the "Failure URL" is not working in OAM 11g in Authorization policies?
    Thanks,
    Jim
    P.S. The URL that it's suppose to be re-directing the browser to is in the Public resources under Authorization, and as I said, I don't see the browser even attempting to go to the failure URL, either via header traces or the OAM server logs.
    Edited by: jimcpl on Nov 5, 2011 8:53 PM

    Hi,
    Per the subject, I am running OAM server 11g (11.1.1.3), with an OAM 10g Apache webgate.
    In the OAM Authorization policy (protected), I have specified a full URL for the "Failure URL", to get the browser to redirect when an authorization failure occurs.
    However, when I test with a user that does not have access (user authenticates ok, but doesn't have right to access the protected resource), instead of the browser being redirected, I am getting an "Oracle Access Manager Operations Error" page.
    I've been trying to figure this out, and have found several threads about this, e.g.:
    OAM 11g authz redirect URL not working?
    But, as I said, I am using OAM 11g server, and there is no "Inconclusive URL" in the policy settings (I guess there was in 10g, but not in 11g).
    I have trace logging enabled on the OAM server, and I can clearly see that the request is getting "results DENY", but there's no indication in the logs that OAM server is aware of any failure redirection URL.
    I've also got a header trace, and I can see that the browser is simply being re-directed to the "/oberr.cgi...." URL, so it' not going "somewhere else".
    So, does anyone know why the "Failure URL" is not working in OAM 11g in Authorization policies?
    Thanks,
    Jim
    P.S. The URL that it's suppose to be re-directing the browser to is in the Public resources under Authorization, and as I said, I don't see the browser even attempting to go to the failure URL, either via header traces or the OAM server logs.
    Edited by: jimcpl on Nov 5, 2011 8:53 PM

  • Windows 2008 Group Policy not working in Windows 8.1

    Hi ,
    We found that the GPO settings created in Windows 2008 is not working in a Windows 8.1 machine.
    One example is the proxy settings.
    We confirmed from gpresult that the GPO is in the list but checking the actual proxy settings, it is not applied.
    Regards,
    Jhun

    Hi,
    How did we configure the proxy settings, using Internet Explorer Maintenance? If it is this case, just as Martin suggested, we can’t use IEM to manage
    IE 10 and IE 11.  However, we can configure the proxy setting via Group Policy Preferences (GPP).
    Regarding this point, the following blog can be referred to for more information.
    Configuring Internet Explorer 10′s
    Proxy Via Group Policy
    http://johnfail.wordpress.com/2013/06/15/configuring-internet-explorer-10s-proxy-via-group-policy/
    In addition, when we use this GPP extension, pay attention to GPP F5-F8 keys.
    Regarding this point, the following blog can be referred to for more information.
    Group Policy Preferences F5 F6 F7 F8 “documentation”
    http://msitpros.com/?p=1014
    Please Note: Since the above two websites are not hosted by Microsoft, the link may change without notice. Microsoft does not guarantee the accuracy
    of this information.
    In addition, regarding the deprecation of IEM, the following article can be referred to for more information.
    Appendix B: Replacements for Internet Explorer Maintenance
    http://technet.microsoft.com/en-us/library/jj890998.aspx
    Best regards,
    Frank Shen

  • Software restriction policy not working correctly

    Ladies and Gents,
    we run a windows server 2008r2 environment.
    we have a software restriction policy in place for quite some time now and it's been working fine until about a week ago. here's how we have it setup:
    Enforce = All Software files except libraries (such as DLLs). + All Users.
    Security Level = Disallowed
    Designated File Types= 
    Defaults
    Additional Rules:
    C:\* = Disallow.
    The rest of the rules are paths for files and folders that we have set as Unrestricted.
    Since about a week ago, our security team discovered that they can open any allowed file type such as text file, and then go to file and click on open. In the open dialog box they would type
    in C:\Windows\System32\drivers\etc\hosts and then click and open it would actually open the hosts file.
    I even tried adding a path rule for C:\Windows\System32\drivers\etc\hosts with Disallow, and it’s still allows opening this file for non admins.
    Any ideas as to why is software restriction policy not blocking access to any files or folders that are not explicitly allowed via a path rule?
    Any help or comments are much appreciated.
    Mohsen Almassud

    You are moving in a wrong way. Software Restriction Policies are designed to prevent users to launch executables/applications. It cannot prevent you from opening TXT file, because it is not an executable. In order to prevent TXT files, you have to block
    notepad.exe executable. It is very different technology.
    You must move to a permission configuration. If there are folders users should not access, remove them from respective folder's ACL. You must be careful with restricting user access to system folders (%systemroot%), because you may block critical applications
    and eventually no one will be able to log on to server, because logon-dependant paths are not accessible due to restrictions in the ACL.
    My weblog: http://en-us.sysadmins.lv
    PowerShell PKI Module: http://pspki.codeplex.com
    Check out new:
    PowerShell FCIV tool.

  • ISE authorization Policy not working

    Hi ,
    I have configured the ISE as per the belwo link 
    https://supportforums.cisco.com/document/110031/central-web-authentication-cwa-guests-ise
    but my authorization policy is not working as when user get connected to guest wlan it get authneticated but when it look for authorization
    it going to default policy it should hit on above policy created screen shot as below

    What version of ISE + patch are you running?. Could you please send an screenshot of AUTH policies including the default --- > USE part?. Are you using customized portal for the first authentication process?
    CWA is pretty straightforward. Only issues I faced was multiple VM (ISE Personas) running on one single server was not replicating properly the AUTHZ policies so I added the PSN persona into the PAN Node and everything worked fine immediately. In addition to that, I realized that I needed at least ONE ENTRY into the ISE PAN Internal Endpoints DB so I could hit the AUTH Policy for MAB & user not found condition which sent me to the AUTHZ = User Unknown + Redirect. Once I authenticated the user using the Default Portal that meant I hit the GUEST FLOW policy. If you are using customized portals for the first authentication process, check: web portal mgmt. --- > Guest --- > MultiPortal Configurations --- > Customized Portal -- > Authentication part.

  • Write-caching policy not restored after reboot.

    The problem I've been experiencing is very similar to this old one from server 2000:
    http://support.microsoft.com/kb/290757
    After a system restart, the write-caching policy is not being saved on the server and the settings are not persistent.
    The system hardware is an Intel RST express chipset, and the Intel Raid 5 Volume (Microsoft version) driver is 6.2.9200.16384 (win3_rtm.120725-1247)
    are there any hotfixes available for this driver to correct the problem on server 2012?

    ya, I can give that a try.. why not.
    Do you have any hints on the registry paths for those values, or is there a quick cmdlet for the cache policy?
    Of course you can. See:
    Enable or Disable Disk Cache
    http://blogs.msdn.com/b/winsdk/archive/2009/10/09/enable-or-disable-enable-write-caching-on-disk-behavior-on-disk.aspx
    You can write a tiny app in C or C# enabling / disabling disk cache settings and use PowerShell to spawn it, handle scripting and scheduling.
    StarWind VSAN [Virtual SAN] clusters Hyper-V without SAS, Fibre Channel, SMB 3.0 or iSCSI, uses Ethernet to mirror internally mounted SATA disks between hosts.

  • Write Back Funtionality not working.

    Hi All,
    I am trying write back functionality which is not working for me...Here is what I did..followed
    oraclebizint.wordpress.com/.../oracle-bi-ee-101332-write-back-option-budgetingplanning/ -
    1) Connection Pool settings default
    2) Created a report which has 4 columns s_no, s_name, marks, remarks from a DB Table "test_write_back"
    3) In the properties of column 4 Remarks, I have selected write Back.
    4) For Administrator i have given permission.
    5) My XML is below
    <?xml version="1.0" encoding="utf-8"?>
    <WebMessageTables xmlns:sawm="com.siebel.analytics.web/message/v1">
    <WebMessageTable lang="en-us" system="WriteBack" table="Messages">
    <WebMessage name="SHNEW">
    <XML>
    <WriteBack connectionpool="Connection Pool">
    <insert>INSERT INTO test_write_back (s_no, s_name, marks, remarks)VALUES (@{c0},@{c1},@{C2},@{C4}) </insert>
    <Update> </Update>
    </WriteBack>
    </XML>
    </WebMessage>
    </WebMessageTable>
    </WebMessageTables>
    6) I have placed XML in C:\OracleBI\web\msgdb\l_en\messages
    7) I am getting button in UI report, when I click on that I am getting error
    "The system is unable to read the Write Back Template 'SHNEW'. Please contact your system administrator."
    I read blogs and few other notes I understood there is some issue with my XML, I tried all possible is there anything missing here...
    A) I created or enabled Write back in only one column "Remarks" and I want only that column to be updated from UI
    What changes required if any in XML?
    and Is there any permissions checking
    Thanks in Advance.
    Please help
    Cheers

    Hi Goran,
    Thanks for the reply...
    -->I tried to place the file in the correct folder.
    --> And also corrected the Insert statment with ' ' for character fields
    --> My "Remarks" column in DB was null, i have updated with some text initially...
    Still I am getting same error....
    I guess there is some issue with XML...
    Can you anybody help me pls..
    Thanks!

  • Retention Policy not working

    Hello
    I have read through multiple Q&A on this subject, but don't really see a solution or understand it
    Exchange 2010 SP3 RU 5
    RPT
    Tag Type - Deleted Items
    Age Limit 21 days
    Action Permanently Delete
    RP - Added to 3 users
    Users have deleted email going back 3 years. If I check the deleted Items Policy tab, says policy is applied delete trash older that 21 days.
    I set this policy 5 days ago, nothing being deleted.
    Is it true I have to wait 21 days for the policy to take effect, I have seen a few people state that, which makes no sense.
    Or is it simply not working
    Thanks

    Hi,
    Could you please run the start-managedfolderassistant command against these users to check the result? Is it the same issue?
    Did you run Outlook in cached mode? If so, please change to online mode to check if you still see these old emails in the Deleted Items folder.
    Theoretically, in Microsoft Exchange Server 2010, the retention age for items in the Deleted Items default folder is calculated based on the date of delivery unless the item was moved or deleted from a folder that doesn't have an inherited or implicit retention
    tag. If you need more information, please refer to following article:
    How Retention Age is Calculated
    http://technet.microsoft.com/en-us/library/bb430780(v=exchg.141).aspx
    Thank you for your time. If you have any questions, please feel free to let me know.
    Best regards,
    Belinda
    Belinda Ma
    TechNet Community Support

Maybe you are looking for