'If self.dn does not exist, returns a callable that will add it.'

def add(self):

    def _add():
        self.connection.add_s(self.dn, modlist)
    if (not self._is_entry_present()):
        modlist = ldap.modlist.addModlist(self.attrs)
        action = _add
    else:
        action = None
    return action
