Steps for getting the Directory Server Gateway (DSGW) running under apache: Note that DSGW must still be installed at the same location in the filesystem as the directory server. It will not work if you try to do /local/app/dsgw and /local/app/ldap (since the DSGW binaries access files in the LDAP tree using relative paths). Step 1: Allow apache to write into the slapd/authck directory (this assumes that Apache is running as 'nobody'): The Directory Server Gateway documentation incorrectly gives the location of the authck directory as: /dsgw/authck The documentation should say that the directory is located at: /bin/slapd/authck In /bin/slapd: mila{root}331: chmod 775 authck mila{root}331: chgrp nobody authck In /bin/slapd/authck: mila{root}331: chmod 775 * mila{root}334: chgrp nobody * mila{root}336: ls -l total 6 -rwxrwxr-x 1 root nobody 134 Jul 17 16:05 cookies.ccis* -rwxrwxr-x 1 root nobody 109 Jul 10 14:12 cookies.dsgw* -rwxrwxr-x 1 root nobody 32 May 15 17:59 cookies.pb* Step 2: Copy slapd.key into dsgw tree: 1.Make a copy of slapd.key. By default, this file is located in: /bin/slapd/server/ 2.Save the copy in the following directory: /dsgw/bin Step 3: Configure Apache If you want to use the Directory Server Gateway with Apache, you must set the SERVER_URL and LD_LIBRARY_PATH environment variables in httpd.conf to the web server on which the gateway runs. For example: DocumentRoot /usr/local/netscape/server4/ ServerName ccistest.speedtrak.com ScriptAlias /dsgw/bin/ "/usr/local/netscape/server4/dsgw/bin/" Alias /dsgw/ "/usr/local/netscape/server4/dsgw/" DirectoryIndex /dsgw/bin/lang?context=ccis SetEnv SERVER_URL http://ccistest.speedtrak.com SetEnv LD_LIBRARY_PATH /usr/local/netscape/server4/lib/:/usr/local/netscape/server4/bin/slapd/lib $Header: /h/jwasilko/ccis/RCS/dsgw-apache.txt,v 1.2 2001/07/20 18:30:07 jwasilko Exp $