by Emma Richardson.
Both - the commands initialize the php module that has to be installed on the server.
The moodle ldap module then uses the php module to talk to the ldap server.