Clay Kinney
Architectural project manager and network admin for HH Architects, a small architectural firm in Dallas.
Thursday, February 13, 2014
Reset Web GUI Password for FreeNAS 9x
python /usr/local/www/freenasUI/manage.py changepassword admin
This is a repost from: http://forums.freenas.org/index.php?threads/reset-webgui-password.374/
Monday, June 24, 2013
Fixing "bdb_equality_candidates" errors on your OpenLDAP server
Repost from
http://muzso.hu/2010/04/26/fixing-bdb_equality_candidates-errors-on-your-openldap-server
OR
http://trac.zentyal.org/wiki/Documentation/Community/HowTo/LDAPoptimization
- Stop the LDAP server:
sudo stop slapd
- Open the right OpenLDAP config file with an editor:
sudo vi /etc/ldap/slapd.d/cn\=config/olcDatabase\=\{1\}hdb.ldif
- Add new lines (after the one with
olcDbIndex: objectClass eq
in it) for the missing indexes.
Eg.:olcDbIndex: cn eq
olcDbIndex: gidNumber eq
olcDbIndex: memberUid eq
olcDbIndex: uid eq
olcDbIndex: uidNumber eq
olcDbIndex: uniqueMember eq - Run the OpenLDAP indexer for your configuration:
sudo -u openldap slapindex -F /etc/ldap/slapd.d/
- Start the LDAP server:
sudo start slapd
/var/lib/ldap
) before you touch it.
Saturday, March 3, 2012
Linux Date Commands
date --date='-14 days' '+%Y/%m/%d'
Friday, December 10, 2010
Network Scan
Need to scan your network to find available ipaddress? If you are using a linux distro, then you have nmap at your service. One simple command is all it takes.
nmap –s 192.168.1.0/24
nmap has many other command switches available. Check our their website for more information.
Thursday, November 18, 2010
Motherboard failure today
We have a Zimbra mail server at work running on top of a 64bit Ubuntu 8.0.4 OS. The computer is a Dell Precision 380 and after a power outage last night, (yes it is connected to a UPS) the motherboard got fried. Luckly, I have another Precision 380 I could swap all the drives, memory and network interfaces to. When I booted up, all went as planned until I realized that my internal network card eth0 was not found. Eth0 is an on-board card, so I new it was working but Ubuntu was not finding it. I ifconfig’ed to check for eth1, eth2, eth3…etc…finally I found it…it was not eth4…weird, I thought. So then I went to /etc/network/interfaces to change eth0 to eth4 and all would be well. Correct? Not so fast. I could not get eth4 to come up with the static ipaddress that is listed in /etc/network/interfaces. What the heck…..did some more digging and found a udev rule that ties the mac address to the network card. So I had to edit the udev rule to reflect the new mac address of eth0 and then restart the udev service and what do you know…eth0 came up again. Awesome!
Rule to edit:
/etc/udev/rules.d/70-persistent-net.rules
eth0 was the first defined rule and all thast was needed was to modify the mac address to reflect the onboard nic in the new computer.
Friday, September 10, 2010
32bit ODBC Dialog In Windows 7
Ever wonder how to get the 32bit ODBC dialog box from within Windows 7?
Yea me to…..Well I found it today….Run the command below to get the 32bit ODBC dialog.
C:\Windows\SysWOW64\ODBCAD32.EXE
Wednesday, August 11, 2010
Watch errors in linux maillog fly by…
Whether you are using Postfix or Sendmail with Spamassassin, you can watch your maillogs within an ssh session by using the following code:
tail -f /var/log/maillog | egrep '(reject|error|warning|fatal|panic)'
This will help to troubleshoot rejected emails or emails rejected due to Spamassassin blocking the email as Spam.