diff --git a/source4/dsdb/samdb/ldb_modules/managed_pwd.c b/source4/dsdb/samdb/ldb_modules/managed_pwd.c index cb3fffc0143..735e58b65c6 100644 --- a/source4/dsdb/samdb/ldb_modules/managed_pwd.c +++ b/source4/dsdb/samdb/ldb_modules/managed_pwd.c @@ -118,6 +118,7 @@ static int gmsa_managed_password(struct ldb_context *const ldb, if (!allowed_to_view) { /* Sorry, you can’t view the password. */ + ret = LDB_SUCCESS; goto out; } }