credentials: Revert "credentials: Fix CID 1414796 Explicit null dereferenced"
[metze/samba/wip.git] / auth / credentials / credentials_secrets.c
index 2ae384fdb189fb93c06e576c0172bdaa7e714ad0..58a87ac9fdb9d21f8fca771fc216f0876a39b464 100644 (file)
@@ -106,11 +106,6 @@ static NTSTATUS cli_credentials_set_secrets_lct(struct cli_credentials *cred,
        }
 
        password = ldb_msg_find_attr_as_string(msg, "secret", NULL);
-       if (password == NULL) {
-               /* This attribute is mandatory */
-               talloc_free(mem_ctx);
-               return NT_STATUS_NOT_FOUND;
-       }
 
        whenChanged = ldb_msg_find_ldb_val(msg, "whenChanged");
        if (!whenChanged || ldb_val_to_time(whenChanged, &lct) != LDB_SUCCESS) {