Mauri Sahlberg - 2004-06-27

1) Either you give read perssion to anonymous for your directory or set the LDAP_AUTH_USER to user that has a read access

2) You might need to edit the WikiNewUser.php to check existence of ldap_connect instead of ldap_open. Fedora Core 2 installation of php 4.3.7 does not have ldap_open but has ldap_connect. The code does not use ldap_open for anything so it probably is safe change to make.

I like the way the WikiNewUser.php is designed and partly I like the implementation as well. There are some things that I would have found helpfull:
- Check if the bind fails before trying to do a search and give user/administrator an error message
- When the check for the existence of ldap in php installation fails give an error message
- Do not check existence of a user before you try to authenticate him. This would remove the need of read access and just leave requirement for anonymous authentication.