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 himself except that he cannot withdraw the property otherwise than as a pledgor for himself might; and if he receives from the debtor a consideration for the pledge, he cannot withdraw it without his consent.
SDCL 44-10-5