Lines Matching defs:self
111 static struct tools_ctx *init_ctx(PySssLocalObject *self)
116 tctx = talloc_zero(self->mem_ctx, struct tools_ctx);
121 tctx->confdb = self->confdb;
122 tctx->sysdb = self->sysdb;
123 tctx->local = self->local;
132 octx->domain = self->local;
156 static PyObject *py_sss_useradd(PySssLocalObject *self,
195 tctx = init_ctx(self);
222 self->confdb,
311 static PyObject *py_sss_userdel(PySssLocalObject *self,
334 tctx = init_ctx(self);
377 ret = userdel(tctx, self->sysdb, tctx->octx);
421 static PyObject *py_sss_usermod(PySssLocalObject *self,
458 tctx = init_ctx(self);
542 static PyObject *py_sss_groupadd(PySssLocalObject *self,
561 tctx = init_ctx(self);
613 static PyObject *py_sss_groupdel(PySssLocalObject *self,
625 tctx = init_ctx(self);
634 ret = groupdel(tctx, self->sysdb, tctx->octx);
660 static PyObject *py_sss_groupmod(PySssLocalObject *self,
686 tctx = init_ctx(self);
758 static PyObject *py_sss_getgrouplist(PyObject *self, PyObject *args)
836 static void PySssLocalObject_dealloc(PySssLocalObject *self)
838 talloc_free(self->mem_ctx);
839 Py_TYPE(self)->tp_free((PyObject *)self);
850 PySssLocalObject *self;
860 self = (PySssLocalObject *) type->tp_alloc(type, 0);
861 if (self == NULL) {
866 self->mem_ctx = mem_ctx;
868 confdb_path = talloc_asprintf(self->mem_ctx, "%s/%s", DB_PATH, CONFDB_FILE);
875 ret = confdb_init(self->mem_ctx, &self->confdb, confdb_path);
882 ret = sssd_domain_init(self->mem_ctx, self->confdb, "local",
883 DB_PATH, &self->local);
889 self->sysdb = self->local->sysdb;
891 self->lock = DO_LOCK;
892 self->unlock = DO_UNLOCK;
894 return (PyObject *) self;
897 Py_DECREF(self);
965 static PyObject *py_sss_encrypt(PySssPasswordObject *self,
1010 static PyObject *py_sss_decrypt(PySssPasswordObject *self,
1052 static void PySssPasswordObject_dealloc(PySssPasswordObject *self)
1054 Py_TYPE(self)->tp_free((PyObject*) self);
1064 PySssPasswordObject *self;
1066 self = (PySssPasswordObject *) type->tp_alloc(type, 0);
1067 if (self == NULL) {
1072 self->aes_256 = AES_256;
1074 return (PyObject *) self;