def blockIndentation(block):
            text = block.text()
            return text[:len(text) - len(text.lstrip())]
def _find_user(self, dn):
        return next(i for (i, d) in enumerate(self.directory) if d["dn"] == dn)