Property may be pledged as security for the obligation of a person other than the owner and in so doing the owner has all the rights of a pledgor for the owner except that one who pledges property as security for the obligation of another cannot withdraw the property pledged otherwise than as a pledgor might, and if the owner receives from the debtor a consideration for the pledge, the owner cannot withdraw it without the debtor's consent.
N.D.C.C. § 35-06-06