242 | | An <application>LDAP</application> Storage Backend is currently under heavy work. |
243 | | You can already give a look at the LDAP schema which was defined for PyKota. |
244 | | Full support for LDAP in PyKota should be OK by the end of July 2003, if all |
245 | | continues to go well. |
| 242 | From version 1.09 on, <application>OpenLDAP</application> can be used as a Quota Storage Backend. |
| 243 | It is possible that other LDAP servers can be used, but this is currently untested. |
| 244 | </para> |
| 245 | |
| 246 | <para> |
| 247 | To use <application>OpenLDAP</application> as your Quota Storage Backend, you have to copy the |
| 248 | <filename>pykota/initscripts/ldap/pykota.schema</filename> in <application>OpenLDAP</application>'s |
| 249 | schemas directory. |
| 250 | Under Debian GNU/Linux, this is something like : |
| 251 | <screen> |
| 252 | $ cp pykota.schema /etc/ldap/schema |
| 253 | </screen> |
| 254 | </para> |
| 255 | <para> |
| 256 | Then edit <filename>/etc/ldap/slapd.conf</filename> and add a line to |
| 257 | include the PyKota schema. You should have something |
| 258 | like : |
| 259 | <screen> |
| 260 | # Schema and objectClass definitions |
| 261 | include /etc/ldap/schema/core.schema |
| 262 | include /etc/ldap/schema/cosine.schema |
| 263 | include /etc/ldap/schema/nis.schema |
| 264 | include /etc/ldap/schema/inetorgperson.schema |
| 265 | include /etc/ldap/schema/pykota.schema |
| 266 | </screen> |
| 267 | </para> |
| 268 | <para> |
| 269 | Finally, restart the <application>OpenLDAP</application> server : |
| 270 | <screen> |
| 271 | $ /etc/init.d/slapd restart |
| 272 | </screen> |
| 273 | </para> |
| 274 | |
| 275 | <para> |
| 276 | Then you have to modify PyKota's configuration file <filename>/etc/pykota.conf</filename> |
| 277 | to include LDAP specific options. You may want to give a look at |
| 278 | <filename>pykota/conf/pykota.conf.sample</filename> to see all the options that are |
| 279 | needed. Adapt the values to your own configuration, and finally initialize your |
| 280 | Quota Storage with the help of the <application>edpykota</application> command. |