return NULL;
req = talloc_zero(NULL, struct ldb_request);
+ if (req == NULL) {
+ PyErr_NoMemory();
+ return NULL;
+ }
req->operation = LDB_ADD;
req->op.add.message = pyldb_Message_AsMessage(py_message);
return NULL;
req = talloc_zero(NULL, struct ldb_request);
+ if (req == NULL) {
+ PyErr_NoMemory();
+ return NULL;
+ }
+
req->operation = LDB_MODIFY;
req->op.mod.message = pyldb_Message_AsMessage(py_message);
return NULL;
req = talloc_zero(NULL, struct ldb_request);
+ if (req == NULL) {
+ PyErr_NoMemory();
+ return NULL;
+ }
req->operation = LDB_DELETE;
req->op.del.dn = pyldb_Dn_AS_DN(py_dn);
return NULL;
req = talloc_zero(NULL, struct ldb_request);
+ if (req == NULL) {
+ PyErr_NoMemory();
+ return NULL;
+ }
req->operation = LDB_RENAME;
req->op.rename.olddn = pyldb_Dn_AS_DN(py_dn1);