vaultmanager/modules/VaultManagerLDAP.py
def deleting_previous_policies(self):
        """
        Deleting policies of non existing LDAP users
        """
        self.logger.debug("Deleting policies of previously existing LDAP users")
        for file in os.listdir(self.group_policies_folder):
            policy_path = os.path.join(self.group_policies_folder, file)
            if policy_path not in self.group_policies_to_create:
                self.logger.info("Deleting group policy: " + policy_path)
                os.remove(policy_path)
        for file in os.listdir(self.user_policies_folder):
            policy_path = os.path.join(self.user_policies_folder, file)
            if policy_path not in self.user_policies_to_create:
                self.logger.info("Deleting user policy: " + policy_path)
                os.remove(policy_path)

        Deleting policies of non existing LDAP users
        
Deleting policies of non existing LDAP users
Deleting policies of non existing LDAP users
def deleting_previous_policies(self):
        self.logger.debug("Deleting policies of previously existing LDAP users")
        for file in os.listdir(self.group_policies_folder):
            policy_path = os.path.join(self.group_policies_folder, file)
            if policy_path not in self.group_policies_to_create:
                self.logger.info("Deleting group policy: " + policy_path)
                os.remove(policy_path)
        for file in os.listdir(self.user_policies_folder):
            policy_path = os.path.join(self.user_policies_folder, file)
            if policy_path not in self.user_policies_to_create:
                self.logger.info("Deleting user policy: " + policy_path)
                os.remove(policy_path)
def deleting_previous_policies ( self ) : self . logger . debug ( "Deleting policies of previously existing LDAP users" ) for file in os . listdir ( self . group_policies_folder ) : policy_path = os . path . join ( self . group_policies_folder , file ) if policy_path not in self . group_policies_to_create : self . logger . info ( "Deleting group policy: " + policy_path ) os . remove ( policy_path ) for file in os . listdir ( self . user_policies_folder ) : policy_path = os . path . join ( self . user_policies_folder , file ) if policy_path not in self . user_policies_to_create : self . logger . info ( "Deleting user policy: " + policy_path ) os . remove ( policy_path )
Deleting policies of non existing LDAP users
Deleting policies of non existing LDAP users
"""
        Deleting policies of non existing LDAP users
        """
self