create keytab for webserver

before, you should install kstart

[root@chat kstart-3.13]# ./configure KRB5_CONFIG=/etc/krb5.conf –with-aklog=/usr/bin/aklog –enable-setpag
[root@chat kstart-3.13]# make
[root@chat kstart-3.13]# make install

modify /etc/rc.d/init.d/httpd file:

from :

start() {
echo -n $”Starting $prog: ”
check13 || exit 1
LANG=$HTTPD_LANG daemon $httpd $OPTIONS
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch ${lockfile}
return $RETVAL
}

to :

start() {
echo -n $”Starting $prog: ”
check13 || exit 1
/usr/local/bin/k5start -b -l 1d -tUf /etc/httpd/conf/http.keytab — \
env LANG=$HTTPD_LANG $httpd $OPTIONS

#        LANG=$HTTPD_LANG daemon $httpd $OPTIONS
RETVAL=$?
echo
[ $RETVAL = 0 ] && touch ${lockfile}
return $RETVAL
}

Leave a Reply

Your email address will not be published. Required fields are marked *

 

This site uses Akismet to reduce spam. Learn how your comment data is processed.