faq

weblogin officially using LDAP over SSL

| | | |

[phpwiki]
weblogin.ac.uab.edu is now using ldaps to access the LDAP service for authentication. Serveral problems existed which had prevented this from working. The default libldap2 binary on debian woody 2.4 is not built with tls enabled. This was the main problem. The fix was to rebuild the openssl source package on the debian build box:

apt-get source libldap2
cd openldap-2.0.23
dpkg-buildpackage -uc -b

and then install resluting libldap2.deb file on weblogin

dpkg -i libldap2-2.0.23.deb

The next step is to tell libldap where to find the trust definition for the UAB ldap SSL interface. This requires the Equifax root. Put that in /usr/lib/ssl/cert/ca-bundle.crt. The location is defined in /etc/ldap/ldap.conf with the values TLS_CACERT (for the bundle file) and TLS_CACERT_DIR (for the hash based files). While I prefer the later only the TLS_CACERT file option seemed to work.

Why do I get the error "ImportError: No module named neo_cgi" while installing Trac?

| |

[phpwiki]
I get this error while installing trac:

Trac detected an internal error:

No module named neo_cgi

Traceback (most recent call last):
File "/var/sites/myers.name/bob/cgi-bin/trac.cgi", line 25, in ?
trac.core.cgi_start()
File "/usr/lib/python2.3/site-packages/trac/core.py", line 477, in cgi_start
send_pretty_error(e, None)
File "/usr/lib/python2.3/site-packages/trac/core.py", line 412, in send_pretty_error
req.init_request()
File "/usr/lib/python2.3/site-packages/trac/core.py", line 312, in init_request
Request.init_request(self)
File "/usr/lib/python2.3/site-packages/trac/core.py", line 243, in init_request

Why do I get "ImportError: No module named trac" error while using trac-admin commands?

| |

You might come across this error while using trac-admin

trac-admin /opt/tracdb/uabgrid initenv
Traceback (most recent call last):
  File "/usr/local/bin/trac-admin", line 33, in ?
    from trac import util
ImportError: No module named trac

This error is caused because the python path for site-packages is not found. Set the environment variable PYTHONPATH

for example:

export PYTHONPATH=/usr/local/lib/python2.3/site-packages

How to enable ssl namespace while rewriting URLs?

| |

Enable the RewriteEngine and set the inherit option of the RewriteOptions in your ssl virtual host conf file.

Include the following in the ssl.conf file:

RewriteEngine on
RewriteOptions inherit

By default, rewrite configurations are not inherited. This means that you need to have a RewriteEngine on directive for each virtual host in which you wish to use it.

The option inherit forces the current configuration to inherit the configuration of the parent. In per-virtual-server context this means that the maps, conditions and rules of the main server are inherited. In per-directory context this means that conditions and rules of the parent directory's .htaccess configuration are inherited.

How to create and use a patch in Linux

(Copy from http://www.cpqlinux.com/patch.html)

Creating a Patch File:


diff -Naur olddir newdir > new-patch

- or -

diff -Naur oldfile newfile >new-patch



A Note concerning Patch and the number of Directory Levels used:


Try to make sure when creating a patchfile that you have the same number of directories levels for both the olddir path and newdir path. For Ex:

--- old/modules/pcitable	Mon Sep 27 11:03:56 1999
+++ new/modules/pcitable	Tue Dec 19 20:05:41 2000

The above diff would work ok as a patch.

--- old/try1/other/modules/pcitable	Mon Sep 27 11:03:56 1999

How do I build software for the @lab

[phpwiki]
This covers some of the basics for building software in the lab. For now just a quick list of recommendations.

# Don't build as root! Your software should be built as a non-root user. Most often, your software can be built directly in your home directory. If your software is to be installed on the system, you should only need to be root for the "make install" step.
# Set your environment correctly. Before begining the build of your software (especially before the "configure" step) make sure your environment is set to the most basic required values. Most often this means setting "PATH=/bin:/usr/bin" and "unset LD_LIBRARY_PATH". Inclusion of special path dependencies should be done via compiler switches as describided in the build notes for the software package.

Resetting mysql root password

| |

In MySQL manual: http://dev.mysql.com/doc/mysql/en/resetting-permissions.html


  1. stop mysql server; they recommend locating the .pid file for the process and using 'kill' command.

  2. create text file and save:

    SET PASSWORD FOR 'root'@'localhost' = PASSWORD('MyNewPassword');

    command all on one line.

  3. restart msql server as follows:
    mysqld_safe --init-file=~/path/fname &

    where fname is the file you just created & enough path info for the server to locate this.

  4. this time, write the password down :0

  5. delete the file fname

txt db error number 2

|

this error is vague message that indicates the attempt to create a
certificate for a signing request is for a dn that already exists in the
CA's assigned certificate, i.e. it's been signed before.

http://saintaardvarkthecarpeted.com/wiki/index.php/TxtDbErrorNumber2

Why do my site's logo and style-sheet show up as broken links?

| |

This problem is fixed by specifying a PubcookieAppID for the cookies to use. once the app id is in place all the requests successfully use the this as the "tag" for all sub-tree requests and don't go hopping over to the login server for individual authentication which tends to compete and break other threaded get requests from the client.

Why don't I get an email when I make a change to a bug I assigned to myself?

| |

[phpwiki]
If you trying to test the bugzilla system to see how it works and play with assigning bugs to yourself and tracking changes but you're not getting an email alerts (as you would when others assign bugs to you or update bugs assigned to you) you probably need to check your account email preferences.

* Click on your account "Prefs" link in Bugzilla pages.
* Choose the "Email Settings" tab
* Make sure the ''Only email me reports of changes made by other people '' setting is unchecked.
* Save your changes

You should now receive bug reports and modifications you make to bugs assi

Syndicate content