We have done some testing of web authentication using LDAP through LIMS. Specifically, we were interested in how a relatively large number of user accounts would affect response time. A short summary of our configuration and method follows, with a preliminary conclusion.
| LDAP library and server: |
OpenLDAP 2.0.23
|
| Apache authentication module: |
Auth_ldap 1.6.0 A few modifications has been made to the function ldap_authenticate_basic_user():
Note: There is a problem with the modified source/patch and TLS. An updated source will be made available soon. |
| Web server: |
Apache 1.3.23
|
The following servers are involved:
| LDAP: | ldap://klungset.uninett.no/ |
| LIMS: | ldap://ldap.uninett.no:1389/ |
| Web: | http://klungset.uninett.no/ |
dn: uid=usrn,dc=uninett,dc=no objectClass: posixAccount cn: Test User n gidNumber: -1 homeDirectory: n/a loginShell: n/a userPassword: pwdnwhere n goes from 0 to 499999. This results in approx. 88MB LDIF.
A number of test pages can be found on http://klungset.uninett.no/~cato/, using both authentication directly towards LDAP and through LIMS.
| Authentication directly towards LDAP: | http://klungset.uninett.no/~cato/valid-user/ http://klungset.uninett.no/~cato/user/ |
| Authentication through LIMS: | http://klungset.uninett.no/~cato/indexed/ |
AuthType basic AuthName "Authorization: require valid-user" AuthLDAPUrl ldap://ldap.uninett.no:1389/dc=no?uid?sub?(objectClass=posixAccount) require valid-userNote that we explicitly specify some default values here, for clarity.
We have done preliminary testing using the above setup and sets of 1, 100000 and 500000 test users. So far we have not found any noticeable difference in response time given different sized user sets. Although the results are preliminary and none too accurate, they should provide a certain idea as to how the software performs given a low-load situation.
Another observation we make is that generating a LIMS index appears to be relatively time consuming.
Finally, we note the need to modify the auth_ldap module in order to work properly with the LIMS server, and suspect that this may also hold true for other LDAP authentication clients, such as the pam_ldap module.Following up the testing outlined here, we plan to:
| cato.olsen@uninett.no | 2003-05-09 |