Tag Cloud
Currently Reading
Latest Book Reviews
- Rancher Deep Dive Posted on March 31, 2023
- Leveraging Kustomize for Kubernetes Manifests Posted on March 24, 2023
- Automating Workflows with GitHub Actions Posted on October 13, 2022
- Deep-Dive Terraform on Azure Posted on August 30, 2022
- Effective DevOps Posted on January 5, 2022 All Book Reviews
Latest Posts
- Kerberos - Kadmin issue NTP Posted on September 23, 2012
- Kerberos - kadmin connection issue Posted on September 1, 2012
- Sendmail domain masquerade problem Posted on June 11, 2012
- 301 URL redirect on Ruby on Rails Posted on May 5, 2012
- Enabling Terminal Coloring in Mac OS X Snow Leopard Posted on April 20, 2012
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
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
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
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
ruby
]
April 20, 2012
Enabling Terminal Coloring in Mac OS X Snow Leopard
by Alpha01
File ~/.bash_profile
.
export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
macos
]