rubysecurity.org

Anecdotes from a Linux Systems Administrator. /root

Home About Books Blog Portfolio Archive

Tag Cloud


Currently Reading

MCA Microsoft Certified Associate Azure Administrator Study Guide: Exam AZ-104
MCA Microsoft Certified Associate Azure Administrator Study Guide: Exam AZ-104
308 / 435 Pages


Latest Book Reviews

Latest Posts


September 23, 2012

Kerberos - Kadmin issue NTP

by Alpha01

I stumbled onto yet another Kerberos problem.

Error

[root@afs2 log]# kadmin -p kerberosadmin/[email protected]
Authenticating as principal kerberosadmin/[email protected] with password.
Password for kerberosadmin/[email protected]: 
kadmin: GSS-API (or Kerberos) error while initializing kadmin interface

Fix

Make sure the time is correct on your Kerberos client/server, ideally NTP should be enabled on the hosts to avoid things like these from happening. Until I rollout ntp on my local LAN, I just manually ran ntpdate

ntpdate us.pool.ntp.org
Tags: [ kerberos ntp ]
September 1, 2012

Kerberos - kadmin connection issue

by Alpha01

I was getting a communication error when trying to connect from a Kerberos client to the KDC, while I was still able to successfully be granted a ticket using kinit.

Error

[root@rubyninja etc]# kadmin -p kerberosadmin/[email protected]
Authenticating as principal kerberosadmin/[email protected] with password.
Password for kerberosadmin/[email protected]: 
kadmin: Communication failure with server while initializing kadmin interface

Fix

It turns out that iptables was blocking access to kadmind on the Master KDC, of which I simply had to allow the TCP Port 749 to fix the issue.

iptables -A INPUT -p tcp -m tcp --dport 749 -j ACCEPT
Tags: [ kerberos iptables ]
June 11, 2012

Sendmail domain masquerade problem

by Alpha01

Recently, I wanted to change my host outgoing domain email address. Since I’ve been getting into the habit of using bare minimal installs, it turns out that sendmail by default does not include sendmail-cf package needed by the m4 utility to generate a sendmail .cf configuration file.

Error

[root@bashninja mail]# m4 < sendmail.mc > sendmail.cf 
m4:stdin:10: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory

Fix

[root@bashninja mail]# yum install sendmail-cf
Tags: [ sendmail ]
May 5, 2012

301 URL redirect on Ruby on Rails

by Alpha01

In your respective controller, specify the method of the view in questioned that needs to be redirected.

def code
   headers["Status"] = "301 Moved Permanently"
   redirect_to "https://www.example.com/alpha01"
 end
Tags: [ ruby ]
April 20, 2012

Enabling Terminal Coloring in Mac OS X Snow Leopard

by Alpha01

File ~/.bash_profile.

export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
Tags: [ macos ]