I don't object. However, the landlord wants a deposit from both of us. He is already holding one from me. It seems excessive that the landlord is entitled to hold two 1 month security deposits from two people to cover the same period of time, for the same apartment.
In rereading your answer, I think that I was unclear.
I am the tenant, looking to sublet my apartment to another person. My landlord wants to collect and hold a security deposit from both of us. Is that permitted by law?