Class DirAclAuthz

    • Field Detail

      • logger

        public static org.slf4j.Logger logger
      • PROP_SEARCHBASE

        protected static final java.lang.String PROP_SEARCHBASE
        See Also:
        Constant Field Values
    • Constructor Detail

      • DirAclAuthz

        public DirAclAuthz()
        Default constructor
    • Method Detail

      • init

        public void init​(java.lang.String name,
                         java.lang.String implName,
                         AuthzManagerConfig config)
                  throws EBaseException
        Description copied from class: AAclAuthz
        Initializes
        Specified by:
        init in interface IAuthzManager
        Overrides:
        init in class AAclAuthz
        Parameters:
        name - The name of this authorization manager instance.
        implName - The name of the authorization manager plugin.
        config - The configuration store for this authorization manager.
        Throws:
        EBaseException - If an initialization error occurred.
      • updateACLs

        public void updateACLs​(java.lang.String id,
                               java.lang.String rights,
                               java.lang.String strACLs,
                               java.lang.String desc)
                        throws EACLsException
        update acls. when memory update is done, flush to ldap.

        Currently, it is possible that when the memory is updated successfully, and the ldap isn't, the memory upates lingers. The result is that the changes will only be done on ldap at the next update, or when the system shuts down, another flush will be attempted.

        Specified by:
        updateACLs in interface IAuthzManager
        Overrides:
        updateACLs in class AAclAuthz
        Parameters:
        id - is the resource id
        rights - The allowable rights for this resource
        strACLs - has the same format as a resourceACLs entry acis on the ldap server
        desc - The description for this resource
        Throws:
        EACLsException - when update fails.