You are correct; Dahl only wrote the screenplay. I remembered that the book was written by someone surprising, but forgot that it was Ian Fleming.