s4:dsdb: Explicitly return success error code
authorJo Sutton <josutton@catalyst.net.nz>
Tue, 16 Apr 2024 04:28:55 +0000 (16:28 +1200)
committerJo Sutton <jsutton@samba.org>
Sun, 21 Apr 2024 22:10:36 +0000 (22:10 +0000)
Signed-off-by: Jo Sutton <josutton@catalyst.net.nz>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
source4/dsdb/samdb/ldb_modules/managed_pwd.c

index cb3fffc0143d3229e17282d6055f0a45c124dbf8..735e58b65c62b7048a9d16ee072a26480b21d10d 100644 (file)
@@ -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;
                }
        }