initialized and will fill in these fields later (such as from a
netr_SamInfo3 structure) */
- if ( create && !pdb_rid_algorithm() ) {
+ if ( create && (pdb_capabilities() & PDB_CAP_STORE_RIDS)) {
uint32 user_rid;
DOM_SID user_sid;
*pp_msg_str = NULL;
tosctx = talloc_tos();
- if (!tosctx) {
- return NT_STATUS_NO_MEMORY;
- }
sam_pass = samu_new(tosctx);
if (!sam_pass) {