This is actually a harder question than it might appear. The problem is, you have to make assumptions about the nature of the way the ladder is placed on the wall.
Suppose you start the ladder close to vertical and resting on the ground. Then you ever so gently and slowly lean it over until it touches the wall. At this point, there will be very little vertical force at the contact point with the wall. The contact point with the ground has to provide all the friction required to prevent sliding.
Now, let a painter climb up the ladder. He will bend the ladder slightly so the upper end moves down the wall slightly. So there will be frictional force involved, and it will of course point in the direction opposite to the motion. But as to how big this force is, it depends on how big the guy is and how springy the ladder is. And the coefficient of static and dynamic friction of the wall and the ladder. And probably a couple other things I'm not thinking of just now. But it will resist the bowing of the ladder to some degree.
Now let the guy get off the ladder again. The bowing will spring back. And the upper end of the ladder will move up the wall. And there will be friction force in the other direction. This friction will resist the "springing back" of the ladder to some degree.
It's an interesting question to think about. How much "bow" can the friction with the wall sustain? Some interesting geometry in there to resolve the forces.