mirror of
https://github.com/samba-team/samba.git
synced 2025-01-13 13:18:06 +03:00
s4:samdb_create_foreign_security_principal - proof error code of "samdb_msg_add_string"
This commit is contained in:
parent
9e69b22e70
commit
9310da1e2b
@ -2344,9 +2344,12 @@ NTSTATUS samdb_create_foreign_security_principal(struct ldb_context *sam_ctx, TA
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
samdb_msg_add_string(sam_ctx, msg, msg,
|
||||
"objectClass",
|
||||
"foreignSecurityPrincipal");
|
||||
ret = samdb_msg_add_string(sam_ctx, msg, msg,
|
||||
"objectClass", "foreignSecurityPrincipal");
|
||||
if (ret != LDB_SUCCESS) {
|
||||
talloc_free(sidstr);
|
||||
return NT_STATUS_NO_MEMORY;
|
||||
}
|
||||
|
||||
/* create the alias */
|
||||
ret = ldb_add(sam_ctx, msg);
|
||||
|
Loading…
Reference in New Issue
Block a user