<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-26740132</id><updated>2011-04-21T16:03:08.618-07:00</updated><title type='text'>SiNotes-Grid</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://synewgrid.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://synewgrid.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Synew</name><uri>http://www.blogger.com/profile/08294543115153942885</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>13</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-26740132.post-115162939735764284</id><published>2006-06-29T17:58:00.000-07:00</published><updated>2006-06-29T18:03:17.370-07:00</updated><title type='text'>Deploy Myproxy</title><content type='html'>suppose you have already installed GT4 and sorted out all the security stuff.&lt;br /&gt;1) copy  GLOBUS_LOCATION/share/myproxy/myproxy-server.config to GLOBUS_LOCATION/etc/, uncomment these lines:&lt;br /&gt;&lt;pre class="screen"&gt;accepted_credentials  "*"&lt;br /&gt;authorized_retrievers "*"&lt;br /&gt;default_retrievers    "*"&lt;br /&gt;authorized_renewers   "*"&lt;br /&gt;default_renewers      "none"&lt;/pre&gt;2)&lt;span&gt;&lt;strong class="command"&gt;source $GLOBUS_LOCATION/etc/globus-user-env.csh&lt;br /&gt;3)&lt;/strong&gt;&lt;/span&gt;run &lt;span&gt;&lt;strong class="command"&gt;$GLOBUS_LOCATION/sbin/myproxy-server -d&lt;br /&gt;&lt;br /&gt;If no errors found, restart myproxy-server without "-d" parameters&lt;br /&gt;&lt;/strong&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26740132-115162939735764284?l=synewgrid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synewgrid.blogspot.com/feeds/115162939735764284/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=26740132&amp;postID=115162939735764284' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/115162939735764284'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/115162939735764284'/><link rel='alternate' type='text/html' href='http://synewgrid.blogspot.com/2006/06/deploy-myproxy.html' title='Deploy Myproxy'/><author><name>Synew</name><uri>http://www.blogger.com/profile/08294543115153942885</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26740132.post-114840527771958290</id><published>2006-05-23T10:26:00.000-07:00</published><updated>2006-05-24T03:42:08.733-07:00</updated><title type='text'>globus Toolkit 4 Installation on SL4</title><content type='html'>Reference:&lt;br /&gt;http://www.globus.org/toolkit/docs/4.0/admin/docbook/ch04.html&lt;br /&gt;http://www-unix.globus.org/toolkit/docs/4.0/admin/docbook/ch03.html#s-platform-redhat&lt;br /&gt;http://www-unix.globus.org/toolkit/docs/4.0/security/myproxy/admin-index.html#s-myproxy-admin-installing&lt;br /&gt;http://gdp.globus.org/gt4-tutorial/singlehtml/progtutorial_0.2.1.html&lt;br /&gt;&lt;br /&gt;*N.B.* One thing should be pointed out is that, the installation precedure  doesn't seems like totally "standard". Normally you can use whatever user to "configure" and "make " the source code, and only su to root when you "make install". But the "make" in globus toolkit already start to copy files to your installation directory!!! Make sure you have wirte access when u run "make"!&lt;br /&gt;&lt;br /&gt;1./configure --prefix=/usr/local/globus-4.0.2 --with-buildopts="--verbose"&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26740132-114840527771958290?l=synewgrid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synewgrid.blogspot.com/feeds/114840527771958290/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=26740132&amp;postID=114840527771958290' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114840527771958290'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114840527771958290'/><link rel='alternate' type='text/html' href='http://synewgrid.blogspot.com/2006/05/globus-toolkit-4-installation-on-sl4.html' title='globus Toolkit 4 Installation on SL4'/><author><name>Synew</name><uri>http://www.blogger.com/profile/08294543115153942885</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26740132.post-114829416489634869</id><published>2006-05-22T03:35:00.000-07:00</published><updated>2006-05-31T02:58:53.173-07:00</updated><title type='text'>WebAuth Installation &amp; Configuraiton</title><content type='html'>Suppose you already have&lt;br /&gt;&lt;br /&gt;1.Download the src from  http://webauthv3.stanford.edu/download.html&lt;br /&gt;2.Configure the src using,&lt;br /&gt;./configure --with-apache=/usr/local/apache20 --with-apxs=/usr/local/apache20/bin/apxs --with-kerberos=/usr/local/kerberos5 --with-ldap=/usr/local/openLDAP&lt;br /&gt;3. make&lt;br /&gt;4. make check&lt;br /&gt;5. make install&lt;br /&gt;&lt;br /&gt;*N.B.*&lt;br /&gt;1) If you doesn't specify the ininstalltion dir using prefix, the shared lib files will be installed in /usr/local/lib&lt;br /&gt;2)The kerberos and ldap config parameters are required for me, otherwise make cant find the approprate lib files. After the installation, you may still find errors when try to load mod_webauth.so in apache, sth like " cant find libwebauth.so ", that's because mod_webauth depends on this lib files, you can either copy them from /usr/local/lib/* and /usr/local/kerberos5/lib to "/usr/lib" or "httpd20/lib ".&lt;br /&gt;3) If you see "Segmentation fault" error when you try to start apache and it failed, make sure your apache process have write access to keyring and other cache files defined in your mod_webauth.conf!! (Be sure to create the directory if you havn't !!)You can switch on debug for webauth module in mod_webauth.conf and check http20/logs/error_log.&lt;br /&gt;4) If you can start apache but fail to access the desired webpage,check your httpd20/logs/ssl8080_error_log&lt;br /&gt;5) If you see error messages like" fail to checking webAuth's certificate" it's  because the webKDC is using a self-signed certificate.(http://webauth.stanford.edu/manual/mod/mod_webauth.html) You can swith off the certificate checking during test/development stage  by using:&lt;br /&gt;&lt;code&gt; WebAuthWebKdcSSLCertCheck off&lt;br /&gt;&lt;/code&gt;Or, you can also use &lt;code&gt;&lt;br /&gt;WebAuthWebKdcSSLCertFile conf/webauth/webkdc.cert&lt;br /&gt;&lt;/code&gt; to specify the cert file.&lt;br /&gt;&lt;br /&gt;6) &lt;span style="font-weight: bold;"&gt;*IMPORTANT*&lt;/span&gt; When you startup apache as root, you can set the user &amp; group you want this httpd process to run as in your httpd.conf. Actually in apache2.0.58, it's set to "nobody" by default.&lt;br /&gt;Which means the apache process might have difficulty to read your webKDC keytab file if they dont have correct access right.  A recommended way is to modify your httpd.conf and change the default "nobody" user to the user who have read access to webKDC keytab file.&lt;br /&gt;&lt;br /&gt;&lt;code&gt;&lt;br /&gt;&lt;/code&gt;&lt;br /&gt;The minimul configration of webAuth with detailed explaination can be learned from:&lt;br /&gt;http://webauth.stanford.edu/conf-basic.html&lt;br /&gt;&lt;br /&gt;An Oxford specific configration is available at :&lt;br /&gt;http://www.oucs.ox.ac.uk/webauth/index.xml?style=printable&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26740132-114829416489634869?l=synewgrid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synewgrid.blogspot.com/feeds/114829416489634869/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=26740132&amp;postID=114829416489634869' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114829416489634869'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114829416489634869'/><link rel='alternate' type='text/html' href='http://synewgrid.blogspot.com/2006/05/webauth-installation-configuraiton.html' title='WebAuth Installation &amp; Configuraiton'/><author><name>Synew</name><uri>http://www.blogger.com/profile/08294543115153942885</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26740132.post-114794941411110880</id><published>2006-05-18T03:32:00.000-07:00</published><updated>2006-05-18T03:56:39.076-07:00</updated><title type='text'>Use mod_proxy to connect Apache 2.0 and Tomcat</title><content type='html'>Refererced instructions :&lt;br /&gt;http://tomcat.apache.org/tomcat-4.1-doc/proxy-howto.html&lt;br /&gt;&lt;br /&gt;1.  Make sure you  have already configured apache with "--enable-proxy --enable-proxy-http" parameters.&lt;br /&gt;2. If you have done step1, apache 2.0.58 will automatically load mod_proxy for you when startup.(if not, load mod_proxy in your httpd.conf)&lt;br /&gt;3. In the "Location" directory of httpd.conf,  which you want to be forwarded to tomcat, add two lines:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ProxyPass http://ktang.oerc.ox.ac.uk:8081/shibboleth2/sample.jsp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ProxyPassReverse http://ktang.oerc.ox.ac.uk:8081/shibboleth2/sample.jsp&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*N.B.* use "http" or "https" aproprately. In my case, tomcat and apache reside on same machine, so I chosed to let tomcat listen on port 8081 without enabling ssl.&lt;br /&gt;&lt;br /&gt;4.In the server.xml of your tomcat, add a http connector. You don't have to remove your existing AJP13 connector if you do have one.They can function simutinously, each of which serves some of your web applications. Just put your new connector under the same "service " directory with your AJP connector":&lt;br /&gt;&lt;br /&gt;  &amp;lt;Connector port="8081" className="org.apache.catalina.connector.http.HttpConnector"&lt;br /&gt;    maxHttpHeaderSize="81920" maxThreads="150" minSpareThreads="25" maxSpareThreads="75"&lt;br /&gt;    enableLookups="false" redirectPort="443" acceptCount="100"&lt;br /&gt;    connectionTimeout="20000" disableUploadTimeout="true"&lt;br /&gt;    proxyName="ktang.oerc.ox.ac.uk"&lt;br /&gt;    proxyPort="8080"/&amp;gt;&lt;br /&gt;&lt;br /&gt;*N.B* There's an attribute used to limit the max header size, default is also around 8K!!(just like AJP13). The only reason I changed to mod_proxy from AJP13 is to forward bigger HTTP header size(packet), therefore change this value if you need.&lt;br /&gt;&lt;br /&gt;4. Make sure to use filer/firewall/whatever to restrict the access to your tomcat server:8081 port for security considerations.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26740132-114794941411110880?l=synewgrid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synewgrid.blogspot.com/feeds/114794941411110880/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=26740132&amp;postID=114794941411110880' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114794941411110880'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114794941411110880'/><link rel='alternate' type='text/html' href='http://synewgrid.blogspot.com/2006/05/use-modproxy-to-connect-apache-20-and.html' title='Use mod_proxy to connect Apache 2.0 and Tomcat'/><author><name>Synew</name><uri>http://www.blogger.com/profile/08294543115153942885</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26740132.post-114722287900129924</id><published>2006-05-09T17:50:00.000-07:00</published><updated>2006-05-11T17:31:20.670-07:00</updated><title type='text'>Installation and configuration of idP</title><content type='html'>&lt;pre&gt;After the configuration of idP, use following command to test it:&lt;br /&gt;&lt;br /&gt;./resolvertest --idpXml=file:///usr/local/shibboleth-idp/etc/idp.xml --requester=https://ktang.oerc.ox.ac.uk/shibboleth --user=David.Wallom        &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;* Sometime you may find tomcat has problem to load Idp servlet, some information like:&lt;br /&gt;Idp servlet is not available will be displayed when user browser is directed to idp.&lt;br /&gt;Make sure you start tomcat process as root, otherwise some privlige issues might be the reasons!!&lt;br /&gt;&lt;br /&gt;* Some code of Shibboleth-idp need to be modifed before installation, otherwise.........&lt;br /&gt;&lt;/pre&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26740132-114722287900129924?l=synewgrid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synewgrid.blogspot.com/feeds/114722287900129924/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=26740132&amp;postID=114722287900129924' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114722287900129924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114722287900129924'/><link rel='alternate' type='text/html' href='http://synewgrid.blogspot.com/2006/05/installation-and-configuration-of-idp.html' title='Installation and configuration of idP'/><author><name>Synew</name><uri>http://www.blogger.com/profile/08294543115153942885</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26740132.post-114713241037778912</id><published>2006-05-08T16:38:00.000-07:00</published><updated>2006-05-17T08:12:27.290-07:00</updated><title type='text'>Installation &amp; configuration of SP under EL4</title><content type='html'>&lt;dl&gt;&lt;dt&gt;Reference:&lt;/dt&gt;&lt;dt style="font-style: italic;"&gt;http://www.switch.ch/aai/docs/shibboleth/SWITCH/1.3/sp/install-sp-1.3-debian.html&lt;/dt&gt;&lt;dt&gt;&lt;span style="font-style: italic;"&gt;https://authdev.it.ohio-state.edu/twiki/bin/view/Shibboleth/LinuxNotes&lt;/span&gt;&lt;br /&gt;&lt;/dt&gt;&lt;/dl&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;N.B.  Shibboleth 1.3(sp) require apache2.0.x , compiling error will occur if using apache2.2.x!!!&lt;/span&gt;&lt;br /&gt;&lt;dl&gt;&lt;dt&gt;&lt;br /&gt;&lt;/dt&gt;&lt;dt&gt;1)OpenSSL &lt;/dt&gt;&lt;dd&gt; not needed, just use what comes with your Linux &lt;/dd&gt;&lt;dt&gt;2)libcurl&lt;/dt&gt;&lt;dd&gt;(Downloaded from &lt;a href="http://curl.haxx.se/libcurl" target="libcurl"&gt;http://curl.haxx.se/libcurl&lt;/a&gt;)&lt;/dd&gt;&lt;dd&gt; usually not needed, or use &lt;code&gt;./configure --disable-static --without-ca-bundle --enable-thread --prefix=/usr/local/shibboleth-sp&lt;/code&gt; &lt;/dd&gt;&lt;dt&gt;3)log4cpp&lt;/dt&gt;&lt;dd&gt;(*Must* download from http://shibboleth.internet2.edu/downloads/log4cpp-0.3.5rc1.tar.gz)&lt;/dd&gt;&lt;dd&gt; &lt;code&gt;./configure --disable-static --disable-doxygen --prefix=/usr/local/shibboleth-sp&lt;/code&gt; &lt;/dd&gt;&lt;dt&gt;4)Xerces-C&lt;/dt&gt;&lt;dd&gt;(*Must* download from&lt;br /&gt;&lt;pre class="console"&gt;http://shibboleth.internet2.edu/downloads/xerces-c-src_2_6_1.tar.gz)&lt;/pre&gt;&lt;/dd&gt;&lt;dt&gt;     (*Must* export  XERCESCROOT=/home/synew/download/shibboleth-sp/xerces-c-src_2_6_1)&lt;/dt&gt;&lt;/dl&gt;&lt;dl&gt;&lt;dd&gt; &lt;code&gt;./runConfigure -p linux -c gcc -x g++ -r pthread -b 32 -P /usr/local/shibboleth-sp&lt;/code&gt; &lt;/dd&gt;&lt;dt&gt;5) XML-Security-C&lt;/dt&gt;&lt;dd&gt;(*Must* download from&lt;br /&gt;&lt;pre class="console"&gt;http://xml.apache.org/dist/security/c-library/xml-security-c-1.2.1.tar.gz)&lt;/pre&gt;&lt;/dd&gt;&lt;dt&gt;(*Must* export  XERCESCROOT=/home/synew/download/shibboleth-sp/xerces-c-src_2_6_1)&lt;/dt&gt;&lt;dd&gt; &lt;code&gt;./configure --without-xalan --prefix=/usr/local/shibboleth-sp&lt;/code&gt; &lt;/dd&gt;&lt;dt&gt; &lt;a class="twikiLink" href="https://authdev.it.ohio-state.edu/twiki/bin/view/Shibboleth/OpenSAML"&gt;6)OpenSAML&lt;/a&gt;&lt;/dt&gt;&lt;dd&gt;(*Must* download from&lt;br /&gt;&lt;/dd&gt;&lt;/dl&gt;&lt;pre class="console"&gt;http://shibboleth.internet2.edu/downloads/opensaml-1.1a.tar.gz)&lt;br /&gt;&lt;code&gt;&lt;br /&gt;./configure --with-curl=/usr/local/shibboleth-sp --with-log4cpp=/usr/local/shibboleth-sp --prefix=/usr/local/shibboleth-sp -C&lt;/code&gt;&lt;/pre&gt;7) build shibboleth 1.3:&lt;br /&gt;./configure --with-saml=/usr/local/shibboleth-sp --with-log4cpp=/usr/local/shibboleth-sp --enable-apache-20 --with-apxs2=/usr/local/apache20/bin/apxs  --with-apr=/usr/local/apache20/bin/apr-config --prefix=/usr/local/shibboleth-sp -C&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;#########Post Configuration of SP #################################&lt;br /&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;Ref:https://authdev.it.ohio-state.edu/twiki/bin/view/Shibboleth/SPApacheConfiguration&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;Suppose apache2.0.x with mod_ssl is already successfully installed in /usr/local/apache20&lt;br /&gt;&lt;br /&gt;1) Add the following line to the end of  /usr/local/apache20/conf/httpd.conf(*Not* in any VirtualHost!!):&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Include  /usr/local/shibboleth-sp/etc/shibboleth/apache2.config&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;2)In /usr/local/apache20/conf/httpd.conf, set:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;UseCanonicalName    on&lt;/span&gt;&lt;br /&gt;And uncomment ServerName:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ServerName   ktang.oerc.ox.ac.uk:8080&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;3)To start shibboleth daemon,use&lt;br /&gt;/usr/local/shibboleth-sp/sbin/shibd &amp;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26740132-114713241037778912?l=synewgrid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synewgrid.blogspot.com/feeds/114713241037778912/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=26740132&amp;postID=114713241037778912' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114713241037778912'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114713241037778912'/><link rel='alternate' type='text/html' href='http://synewgrid.blogspot.com/2006/05/installation-configuration-of-sp-under.html' title='Installation &amp; configuration of SP under EL4'/><author><name>Synew</name><uri>http://www.blogger.com/profile/08294543115153942885</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26740132.post-114679327855561952</id><published>2006-05-04T18:36:00.000-07:00</published><updated>2006-05-04T18:54:35.040-07:00</updated><title type='text'>SPIE</title><content type='html'>is the LDAP server dedicately create for SPIE project and maintained by SPIEs?&lt;br /&gt;if yes, how  did they populate the  LDAP server?&lt;br /&gt;To be authenticate through webAuth is not hard, and if we dont have access to centre LDAP&lt;br /&gt;directory(if we have one), I would like create one myself for testing purpose.&lt;br /&gt;&lt;br /&gt;Then no point to use the idP from SPIE, create my own will be more flexiable.&lt;br /&gt;&lt;br /&gt;Q: When users are redirected to SSO handle for authencation, a handle will be generated and sent to SP within SAML assertion.Then SP daemon use this handle as a temporary reference to&lt;br /&gt;query the attributes from AA handler of idP. The questions is, the SSO authZ is performed through Kerberos database, while attributes are stored in LDAP directory, how can the handler map them together so that we can find the desired attr from right person?&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26740132-114679327855561952?l=synewgrid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synewgrid.blogspot.com/feeds/114679327855561952/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=26740132&amp;postID=114679327855561952' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114679327855561952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114679327855561952'/><link rel='alternate' type='text/html' href='http://synewgrid.blogspot.com/2006/05/spie.html' title='SPIE'/><author><name>Synew</name><uri>http://www.blogger.com/profile/08294543115153942885</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26740132.post-114657535860480611</id><published>2006-05-02T05:54:00.000-07:00</published><updated>2006-05-03T16:16:04.186-07:00</updated><title type='text'>Prepare Tomcat/mod_jk for shibboleth idP 1.3</title><content type='html'>HOWTO use JK1.2.15 to connect Tomcat5.5 and Apache2.2&lt;br /&gt;&lt;br /&gt;1. Set up Apache 2.2 ,Tomcat 5.5 and JK1.2.15 seperately, following the instructions in&lt;br /&gt;http://johnturner.com/howto/apache2-tomcat4127-jk-rh9-howto.html&lt;br /&gt;&lt;br /&gt;a. install apache&lt;br /&gt;b. install tomcat5.5&lt;br /&gt;c.install mod_jk&lt;br /&gt;a)download the src code of mod_jk1.2.15 from:&lt;br /&gt;http://apache.rmplc.co.uk/tomcat/tomcat-connectors/jk/source/jk-1.2.15/jakarta-tomcat-connectors-1.2.15-src.tar.gz&lt;br /&gt;b)cd jakarta-tomcat-connectors-1.2.15-src/jk/native&lt;br /&gt;c)./buildconf.sh&lt;br /&gt;d)./configure --with-apxs=/usr/local/apache/bin/apxs&lt;br /&gt;e)make&lt;br /&gt;f)make install&lt;br /&gt;check apache2/modules, you should see mod_jk with 755 in this directory now.&lt;br /&gt;2. In tomcat5/conf/,&lt;br /&gt;mv server-minimul.xml server.xml&lt;br /&gt;then edit server.xml:&lt;br /&gt;delete the line:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Connector port="8080"&lt;/span&gt;&lt;br /&gt;And change the port 8009 line to:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;connector port="8009" protocol="AJP/1.3" address="127.0.0.1"&lt;br /&gt;enableLookups="false" redirectPort="443"&lt;br /&gt;tomcatAuthentication="false"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3. create a file "workers.properties" in /opt/tomcat/conf/jk/", include the following in it:&lt;br /&gt;&lt;pre&gt;# /etc/tomcat/workers.properties&lt;br /&gt;# define a worker using ajp13&lt;br /&gt;worker.list=ajp13&lt;br /&gt;worker.ajp13.type=ajp13&lt;br /&gt;worker.ajp13.host=localhost&lt;br /&gt;worker.ajp13.port=8009&lt;br /&gt;worker.ajp13.lbfactor=50&lt;br /&gt;worker.ajp13.cachesize=10&lt;br /&gt;worker.ajp13.cache_timeout=600&lt;br /&gt;worker.ajp13.socket_keepalive=1&lt;br /&gt;worker.ajp13.recycle_timeout=300&lt;br /&gt;&lt;br /&gt;&lt;/pre&gt;4. Enable ssl in your apache/tomcat configuration, details see other articles&lt;br /&gt;&lt;br /&gt;5.Enable mod_jk:&lt;br /&gt;In your httpd.conf, add the following line:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Include conf/extra/mod_jk.conf&lt;/span&gt;&lt;br /&gt;Then create a file" mod_jk.conf "in conf/extra/, including the following in it:&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;LoadModule jk_module modules/mod_jk.so&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;&lt;ifmodule&gt;&lt;/ifmodule&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;        JkWorkersFile   /opt/tomcat/conf/jk/workers.properties&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;        JkLogFile       /var/log/httpd/mod_jk.log&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;        JkLogLevel      emerg&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;        JkMount         /shibboleth-idp/*       ajp13&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;        JkMount         /jsp-examples/*         ajp13&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic; font-weight: bold;"&gt;#       JkMount         /cas/*                 ajp13&lt;/span&gt;&lt;span class="cmd"&gt;&lt;br /&gt;&lt;br /&gt;Make sure the directory for log files exist already.&lt;br /&gt;&lt;/span&gt;&lt;span class="cmd"&gt;&lt;br /&gt;6. Start Tomcat5 first, after the auto genereated file is ready, start apache2. then try to access&lt;br /&gt;https://ktang.oerc.ox.ac.uk/jsp-examples&lt;br /&gt;to test the setup&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;7. To provide kerberos users authentication to apache web server, mod_auth_kerb is required&lt;/span&gt;&lt;br /&gt;(http://modauthkerb.sourceforge.net/install.html).&lt;br /&gt;1) suppose you already have an working kerberos server, download the source code, untar it.&lt;br /&gt;2)./configure --prefix=/usr/local/mod_auth_krb5 --with-krb4=no --with-krb5=/usr/local/kerberos5/ --with-apache=/usr/local/apache2/&lt;br /&gt;3) make&lt;br /&gt;4) make install&lt;br /&gt;5) don't forget to load the new installed module in your httpd.conf!&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;LoadModule auth_kerb_module modules/mod_auth_kerb.so&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;8. Auth_kerb_module Configuration &amp; Test&lt;br /&gt;Firstly, create a service instance( and user instance if you don't have one) in KDC:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;kadmin.local&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ank -randky HTTP/ktang.oerc.ox.ac.uk&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;ktadd -k /etc/keytabs/apache.HTTP.keytab&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;It's recommanded to put the server key in a seperated file from other keys, and&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;make sure&lt;/span&gt; the file can be read by apache process!!&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;Suppose we wanna set web resources in "shibboleth-idp/SSO" (/usr/local/tomcat/webapps/shibboleth-idp/SSO) to be protected by kerberos. Users are&lt;br /&gt;required to authenticate by kerberos when they try to access this dir.&lt;br /&gt;The followings are added to httpd.conf for this purpose:&lt;br /&gt;&lt;br /&gt;&amp;lt;Location /shibboleth-idp/SSO&amp;gt;&lt;br /&gt;  AuthType Kerberos&lt;br /&gt;  AuthName "Kerberos Login"&lt;br /&gt;  KrbSaveCredentials On&lt;br /&gt;  KrbMethodK5Passwd On&lt;br /&gt;  KrbMethodNegotiate On&lt;br /&gt;  Krb5Keytab "/etc/keytabs/apache.HTTP.keytab"&lt;br /&gt;  KrbServiceName HTTP&lt;br /&gt;  KrbAuthoritative On&lt;br /&gt;  SSLVerifyClient none&lt;br /&gt;  require valid-user&lt;br /&gt;&amp;lt;/Location&amp;gt;&lt;br /&gt;&lt;br /&gt;*Detailed implication available in http://modauthkerb.sourceforge.net/&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26740132-114657535860480611?l=synewgrid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synewgrid.blogspot.com/feeds/114657535860480611/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=26740132&amp;postID=114657535860480611' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114657535860480611'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114657535860480611'/><link rel='alternate' type='text/html' href='http://synewgrid.blogspot.com/2006/05/prepare-tomcatmodjk-for-shibboleth-idp.html' title='Prepare Tomcat/mod_jk for shibboleth idP 1.3'/><author><name>Synew</name><uri>http://www.blogger.com/profile/08294543115153942885</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26740132.post-114622561549098881</id><published>2006-04-28T04:45:00.000-07:00</published><updated>2006-05-07T09:00:49.580-07:00</updated><title type='text'>Use SASL(GSSAPI) in openLDAP</title><content type='html'>1.#&lt;span style="font-weight: bold;"&gt;ldapsearch -h localhost -p 389 -x -b "" -s base -LLL supportedSASLMechanisms &lt;/span&gt;&lt;br /&gt;dn:&lt;br /&gt;supportedSASLMechanisms: GSSAPI&lt;br /&gt;&lt;br /&gt;*Because I have already disable other auth mechanisms when building Cyrus-SASL, only GSSAPI available here.&lt;br /&gt;&lt;br /&gt;2.#&lt;span style="font-weight: bold;"&gt;ldapsearch -h localhost -p 389 -I -b "" -s base -LLL supportedSASLMechanisms&lt;/span&gt;&lt;br /&gt;SASL/GSSAPI authentication started&lt;br /&gt;SASL Interaction&lt;br /&gt;Please enter your authorization name:&lt;br /&gt;SASL username: ktang/admin@IERC.OX.AC.UK&lt;br /&gt;SASL SSF: 56&lt;br /&gt;SASL installing layers&lt;br /&gt;dn:&lt;br /&gt;supportedSASLMechanisms: GSSAPI&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;* Note*&lt;/span&gt;: &lt;span style="font-weight: bold;"&gt;Don't enter anything when promoted to enter username!!! just press "Enter"!&lt;/span&gt;&lt;br /&gt;otherwise errors will occur:&lt;br /&gt;ldap_sasl_interactive_bind_s: Insufficient access (50)&lt;br /&gt;    additional info: SASL(-14): authorization failure: Inappropriate authentication&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;*Of course you need to use "kinit ktang/admin" first to get the ticket.&lt;br /&gt;&lt;/span&gt;Alternatively, you can use:&lt;br /&gt;./ldapsearch -h localhost -p 389 -U 'ktang/admin@IERC.OX.AC.UK' -b "" -s base -LLL supportedSASLMechanisms&lt;br /&gt;Then no need to input username.&lt;br /&gt;&lt;br /&gt;3. Any user authenticaited by Kerberos will be mapped to an authentication request DN in LDAP server in form of :&lt;span style="font-family:monospace;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;uid=username&lt;username&gt;,cn=realm&lt;realm&gt;,cn=&lt;mechanism&gt;gssapi,cn=auth&lt;/mechanism&gt;&lt;/realm&gt;&lt;/username&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;To check your authentication request DN, use "/usr/local/openLDAP/bin/ldapwhoami" command. In my case, I was authenciated as  "ktang/admin@IERC.OX.AC.UK" in kerberos server, then my authentication request DN in LDAP is:&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;uid=ktang/admin,cn=ierc.ox.ac.uk,cn=gssapi,cn=auth&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;4. You can configure ACL in slapd.conf to give read/write access to the authentication request DN above, this might be the simplest way, for example, add following in slapd.conf will make I have write priviledge to all entries in LDAP server after I was authenticatied as ktang/admin by&lt;br /&gt;kerberos:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;access to *&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        by self write&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        by dn="uid=synew,cn=ierc.ox.ac.uk,cn=gssapi,cn=auth" write&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;by users read&lt;br /&gt;by anonymous auth&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;        by * none&lt;/span&gt;&lt;br /&gt;However, usually we already has all entries  for all the users who wanna access it in Ldap server,&lt;br /&gt;but not in the authencation request format(e.g. not under auth subtree ). What we need is &lt;span style="font-weight: bold;"&gt;authentication identities mapping&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;5. Wherever possbile, direct mapping is recommanded,which has the following format:&lt;br /&gt;&lt;span style="font-style: italic;"&gt;authz-regexp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; uid=([^,]*),cn=oerc.ox.ac.uk,cn=gssapi,cn=auth&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; uid=$1,dc=oerc,dc=ox,dc=ac,dc=uk&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;*N.B. &lt;/span&gt;Don't use the following format, it doesn't work for me, although it should.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;authz-regexp&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; uid=([^,]*),cn=[^,]*,cn=auth&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt; uid=$1,dc=oerc,dc=ox,dc=ac,dc=uk&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;*N.B.&lt;/span&gt; With this mapping added, the ACL we just made will *NOT* work for the super user "synew"!!  The reason is your authencation quest DN is no longer "&lt;span style="font-style: italic;"&gt;uid=synew,cn=ierc.ox.ac.uk,cn=gssapi,cn=auth", &lt;/span&gt;&lt;font&gt;but is&lt;br /&gt;mapped to "&lt;span style="font-style: italic;"&gt;uid=synew,dc=oerc,dc=ox,dc=ac,dc=uk" &lt;/span&gt;&lt;font&gt;!!! Therefore we need to use the following&lt;br /&gt;ACL policy instead:&lt;br /&gt;access to *&lt;br /&gt;       by self write&lt;br /&gt;       by dn="uid=synew,dc=oerc,dc=ox,dc=ac,dc=uk" write&lt;br /&gt;       by users read&lt;br /&gt;       by anonymous auth&lt;br /&gt;       by * none&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26740132-114622561549098881?l=synewgrid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synewgrid.blogspot.com/feeds/114622561549098881/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=26740132&amp;postID=114622561549098881' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114622561549098881'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114622561549098881'/><link rel='alternate' type='text/html' href='http://synewgrid.blogspot.com/2006/04/use-saslgssapi-in-openldap.html' title='Use SASL(GSSAPI) in openLDAP'/><author><name>Synew</name><uri>http://www.blogger.com/profile/08294543115153942885</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26740132.post-114595531683813429</id><published>2006-04-25T01:51:00.000-07:00</published><updated>2006-04-25T10:14:37.413-07:00</updated><title type='text'>SAML,shibboleth,SSO,GSSAPI,Kerberos and webAuth</title><content type='html'>&lt;font&gt;1.&lt;font&gt;The single most important problem that SAML is trying to solve is the web &lt;a href="http://en.wikipedia.org/wiki/Single_sign-on" title="Single sign-on"&gt;single sign-on&lt;/a&gt;&lt;font&gt; (SSO) problem. SSO solutions at the &lt;a href="http://en.wikipedia.org/wiki/Intranet" title="Intranet"&gt;intranet&lt;/a&gt;&lt;font&gt; level abound (using &lt;a href="http://en.wikipedia.org/wiki/HTTP_cookie" title="HTTP cookie"&gt;cookies&lt;/a&gt;&lt;font&gt;, e.g.) but extending these solutions beyond the intranet has been problematic and has led to the proliferation of &lt;a href="http://en.wikipedia.org/wiki/Proprietary" title="Proprietary"&gt;proprietary&lt;/a&gt; technologies that do not interoperate. SAML has become the definitive standard underlying many web SSO solutions in the &lt;a href="http://en.wikipedia.org/wiki/Identity_management" title="Identity management"&gt;identity management&lt;/a&gt;&lt;font&gt; problem space.&lt;br /&gt;&lt;br /&gt;2. The GSSAPI is a generic API for doing client-server authentication. The motivation behind it is that every security system has it's own API, and the  effort involved with adding different security systems to applications is&lt;span style="font-family:monospace;"&gt; &lt;/span&gt;extremely difficult with the variance between security APIs. However, with a&lt;span style="font-family:monospace;"&gt; &lt;/span&gt;common API, application vendors could write to the generic API and it could&lt;span style="font-family:monospace;"&gt; &lt;/span&gt;work with any number of security systems. Most major Kerberos 5&lt;span style="font-family:monospace;"&gt; &lt;/span&gt;distributions is a GSSAPI implementation. Thus, if a particular application&lt;span style="font-family:monospace;"&gt; &lt;/span&gt;or protocol says that it supports the GSSAPI, then that means that it&lt;span style="font-family:monospace;"&gt; &lt;/span&gt;supports Kerberos.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26740132-114595531683813429?l=synewgrid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synewgrid.blogspot.com/feeds/114595531683813429/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=26740132&amp;postID=114595531683813429' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114595531683813429'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114595531683813429'/><link rel='alternate' type='text/html' href='http://synewgrid.blogspot.com/2006/04/samlshibbolethssogssapikerberos-and.html' title='SAML,shibboleth,SSO,GSSAPI,Kerberos and webAuth'/><author><name>Synew</name><uri>http://www.blogger.com/profile/08294543115153942885</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26740132.post-114587281398051121</id><published>2006-04-24T01:57:00.000-07:00</published><updated>2006-04-25T09:15:48.510-07:00</updated><title type='text'>openLDAP installation &amp; Configuration</title><content type='html'>1.Prepare the prequired softwares:&lt;br /&gt;2.After BerkeleyDB is installed. *Make sure * create the runtime links to BerkeleyDB's dynamic link library files by:&lt;br /&gt;1) In EL4, create a new file "BerkeleyDB.conf" in /etc/ld.so.conf.d, add this line to it:&lt;br /&gt;/usr/local/BerkeleyDB.4.4/lib, otherwise the later configure procedure will complain "BerkeleyDB version mismatched".&lt;br /&gt;2) run " ldconfig" to load the config&lt;br /&gt;&lt;br /&gt;3. To configure openLDAP, using:&lt;br /&gt;1)env CPPFLAGS="-I/usr/local/BerkeleyDB.4.4/include" LDFLAGS="-L/usr/local/BerkeleyDB.4.4/lib" ./configure --with-cyrus-sasl --enable-slapd --enable-crypt --with-tls --enable-spasswd --enable-wrappers --prefix=/usr/local/openLDAP&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;*Note*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;a. &lt;/span&gt;&lt;font&gt;IMPORTANT If you use --disable-cleartext paraments when configure the code, the "test002-populate" later will fail! So better dont use it unless u dont wanna do the tests.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;b. &lt;/span&gt;The env variables in this command will only be valid for this single process.)&lt;br /&gt;&lt;br /&gt;4. make depend&lt;br /&gt;5.make&lt;br /&gt;6.make test&lt;br /&gt;If no errors found during the tests procedure, you can start to configure the openldap now.&lt;br /&gt;The configration file of slapd is located in /usr/local/openLDAP/etc/openldap/slapd.conf&lt;br /&gt;Sightly modifications are required on the configuration file before you can start slapd service, my&lt;br /&gt;slapd.conf is like:&lt;br /&gt;###################start of slapd.conf##########################&lt;br /&gt;#&lt;br /&gt;# See slapd.conf(5) for details on configuration options.&lt;br /&gt;# This file should NOT be world readable.&lt;br /&gt;#&lt;br /&gt;include         /usr/local/openLDAP/etc/openldap/schema/core.schema&lt;br /&gt;include         /usr/local/openLDAP/etc/openldap/schema/corba.schema&lt;br /&gt;include         /usr/local/openLDAP/etc/openldap/schema/cosine.schema&lt;br /&gt;include         /usr/local/openLDAP/etc/openldap/schema/inetorgperson.schema&lt;br /&gt;include         /usr/local/openLDAP/etc/openldap/schema/misc.schema&lt;br /&gt;include         /usr/local/openLDAP/etc/openldap/schema/openldap.schema&lt;br /&gt;include         /usr/local/openLDAP/etc/openldap/schema/nis.schema&lt;br /&gt;&lt;br /&gt;# Define global ACLs to disable default read access.&lt;br /&gt;&lt;br /&gt;# Do not enable referrals until AFTER you have a working directory&lt;br /&gt;# service AND an understanding of referrals.&lt;br /&gt;#referral       ldap://root.openldap.org&lt;br /&gt;&lt;br /&gt;pidfile         /usr/local/openLDAP/var/run/slapd.pid&lt;br /&gt;argsfile        /usr/local/openLDAP/var/run/slapd.args&lt;br /&gt;&lt;br /&gt;#Log level&lt;br /&gt;loglevel        1&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;#Backend definitions&lt;br /&gt;#######################################################################&lt;br /&gt;backend bdb&lt;br /&gt;readonly off&lt;br /&gt;&lt;br /&gt;# Load dynamic backend modules:&lt;br /&gt;# modulepath    /usr/local/openLDAP/libexec/openldap&lt;br /&gt;# moduleload    back_bdb.la&lt;br /&gt;# moduleload    back_ldap.la&lt;br /&gt;# moduleload    back_ldbm.la&lt;br /&gt;# moduleload    back_passwd.la&lt;br /&gt;# moduleload    back_shell.la&lt;br /&gt;&lt;br /&gt;# Sample security restrictions&lt;br /&gt;#       Require integrity protection (prevent hijacking)&lt;br /&gt;#       Require 112-bit (3DES or better) encryption for updates&lt;br /&gt;#       Require 63-bit encryption for simple bind&lt;br /&gt;# security ssf=1 update_ssf=112 simple_bind=64&lt;br /&gt;&lt;br /&gt;# Sample access control policy:&lt;br /&gt;#       Root DSE: allow anyone to read it&lt;br /&gt;#       Subschema (sub)entry DSE: allow anyone to read it&lt;br /&gt;#       Other DSEs:&lt;br /&gt;#               Allow self write access&lt;br /&gt;#               Allow authenticated users read access&lt;br /&gt;#               Allow anonymous users to authenticate&lt;br /&gt;#       Directives needed to implement policy:&lt;br /&gt;# access to dn.base="" by * read&lt;br /&gt;# access to dn.base="cn=Subschema" by * read&lt;br /&gt;# access to *&lt;br /&gt;#       by self write&lt;br /&gt;#       by users read&lt;br /&gt;#       by anonymous auth&lt;br /&gt;&lt;br /&gt;# if no access controls are present, the default policy&lt;br /&gt;# allows anyone and everyone to read anything but restricts&lt;br /&gt;# updates to rootdn.  (e.g., "access to * by * read")&lt;br /&gt;#&lt;br /&gt;# rootdn can always read and write EVERYTHING!&lt;br /&gt;&lt;br /&gt;#######################################################################&lt;br /&gt;# BDB database definitions&lt;br /&gt;#######################################################################&lt;br /&gt;&lt;br /&gt;database        bdb&lt;br /&gt;suffix          "dc=ierc,dc=ox,dc=ac,dc=uk"&lt;br /&gt;rootdn          "cn=Manager,dc=ierc,dc=ox,dc=ac,dc=uk"&lt;br /&gt;# Cleartext passwords, especially for the rootdn, should&lt;br /&gt;# be avoid.  See slappasswd(8) and slapd.conf(5) for details.&lt;br /&gt;# Use of strong authentication encouraged.&lt;br /&gt;rootpw          secret&lt;br /&gt;# The database directory MUST exist prior to running slapd AND&lt;br /&gt;# should only be accessible by the slapd and slap tools.&lt;br /&gt;# Mode 700 recommended.&lt;br /&gt;directory       /usr/local/openLDAP/var/openldap-data&lt;br /&gt;# Indices to maintain&lt;br /&gt;index   objectClass     eq&lt;br /&gt;&lt;br /&gt;###########################End of slapd.conf#########################&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26740132-114587281398051121?l=synewgrid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synewgrid.blogspot.com/feeds/114587281398051121/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=26740132&amp;postID=114587281398051121' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114587281398051121'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114587281398051121'/><link rel='alternate' type='text/html' href='http://synewgrid.blogspot.com/2006/04/openldap-installation-configuration.html' title='openLDAP installation &amp; Configuration'/><author><name>Synew</name><uri>http://www.blogger.com/profile/08294543115153942885</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26740132.post-114584113248212600</id><published>2006-04-23T18:11:00.000-07:00</published><updated>2006-04-27T15:20:21.513-07:00</updated><title type='text'>Cyrus SASL installation</title><content type='html'>References:&lt;br /&gt;http://www.linuxfromscratch.org/hints/downloads/files/cyrus-sasl.txt&lt;br /&gt;http://www.linuxfromscratch.org/blfs/view/stable/postlfs/cyrus-sasl.html&lt;br /&gt;http://mah.everybody.org/docs/sasl-gssapi/&lt;br /&gt;http://www.bayour.com/LDAPv3-HOWTO.html&lt;br /&gt;&lt;br /&gt;1.Download Cyrus SASL from ftp://ftp.andrew.cmu.edu/pub/cyrus-mail/&lt;br /&gt;The current release is "cyrus-sasl-2.1.21.tar.gz"&lt;br /&gt;2.Unpack the downloaded file. Because I only wanna use gssapi(Kerberos V5) mechanism,so it's good idea to disable other mechnisams. Config it using,&lt;br /&gt;./configure --prefix=/usr/local/cyrus-SASL --enable-gssapi --with-gss_impl=mit --disable-cram --disable-digest --disable-otp&lt;br /&gt;&lt;br /&gt;3. make&lt;br /&gt;4.make install&lt;br /&gt;&lt;br /&gt;At the end of installation, you will see following message:&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-style: italic;"&gt;* WARNING:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;* Plugins are being installed into /usr/local/cyrus-SASL/lib/sasl2,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;* but the library will look for them in /usr/lib/sasl2.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;* You need to make sure that the plugins will eventually&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;* be in /usr/lib/sasl2 -- the easiest way is to make a&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;* symbolic link from /usr/lib/sasl2 to /usr/local/cyrus-SASL/lib/sasl2,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;* but this may not be appropriate for your site, so this&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;* installation procedure won't do it for you.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;* If you don't want to do this for some reason, you can&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;* set the location where the library will look for plugins&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;* by setting the environment variable SASL_PATH to the path&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;* the library should use.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Cyrus-SASL will look for the lib files in /usr/lib/sasl2 by defualt, therefore it's important to copy lib files from /usr/local/cyrus-SASL/lib/sasl2 to /usr/lib/sasl2. The simplest way is create a link in /usr/lib/&lt;br /&gt;ln -s /usr/local/cyrus-SASL/lib/sasl2 .&lt;br /&gt;*If you found /usr/lib/sasl2 already exist b4 the installation, make sure to delete it!&lt;br /&gt;&lt;br /&gt;To Test the installtion of SASL, we canuse Sample-Server/Client programs, which are located in the sample directory of cyrus-SASL source code. Because they are not compiled by default, manully compiling is necesssary, in /home/synew/download/cyrus-SASL/sample/ , use&lt;br /&gt;make sample-server&lt;br /&gt;make sample-client&lt;br /&gt;&lt;br /&gt;*Important*&lt;br /&gt;Before the test, configure the /etc/hosts and /etc/sysconfig/network as follow if you havn't.&lt;br /&gt;*********/etc/hosts*************************&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;127.0.0.1       localhost.localdomain   localhost&lt;br /&gt;163.1.26.6      ktang.ierc.ox.ac.uk     ktang&lt;br /&gt;**********/etc/sysconfig/network*************&lt;br /&gt;NETWORKING=yes&lt;br /&gt;HOSTNAME=ktang.ierc.ox.ac.uk&lt;br /&gt;********************************************&lt;br /&gt;1.&lt;/span&gt; create " ktang/admin" as  a administor(or user) for kerboeros database, more details about kerberos setup is available in my another post.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. #kinit ktang/admin&lt;/span&gt;&lt;br /&gt;this will get a ticket from kerberos server for user "ktang/admin", which will be stored in your temporary credensial cache(usually /tmp). You can use "klist" to check the information of the ticket cache, and use "kdestroy" to delete all information in the cache.&lt;br /&gt;3, To use sample server/client, in addition to the user principal, a service principal is also required. Suppose we wanna add a new service named as "ldap" on host"ktang.ierc.ox.ac.uk", Use /usr/local/kerberos5/sbin/kadmin.local programm:&lt;br /&gt;#&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;kadmin.local&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;listprincs&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ank -randkey ldap/ktang.ierc.ox.ac.uk&lt;/span&gt;   (create a host principal)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;ktadd ldap/ktang.ierc.ox.ac.uk&lt;/span&gt;(generate a key for the principal and stored in /etc/krb5.keystab)&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;quit&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Now we can start sample server/client to do the test:&lt;br /&gt;In on session,&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;./sample-server -s ldap -p ../plugins/.libs&lt;/span&gt;&lt;br /&gt;In another session,&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;./sample-client -s ldap -n ktang.ierc.ox.ac.uk -u ktang/admin -p ../plugins/.libs&lt;/span&gt;&lt;br /&gt;Copy output from them around untill the "negoration complete" is displayed.&lt;br /&gt;&lt;br /&gt;*********Possbile problems********************&lt;br /&gt;&lt;br /&gt;1)DIGEST-MD5, instead of GSSAPI is selected, although GSSAPI is listed by the server.&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Because GSSAPI is stronger encrypt mechanism than DIGEST-MD5, so it should be choosed as best mechanism. This means there is&lt;/span&gt;&lt;span style="font-style: italic;"&gt; sth wrong with GSSAPI mechanism,which makes it have to choose DIGEST-MD5. If we reconfigure cyrus-sasl without other mechanisms&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;such as digest-md5, gssapi will unavoidly be selected,but you will see some errors saying GSSAPI negorations failure etc if the &lt;/span&gt;&lt;span style="font-style: italic;"&gt;server have error with it.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;(you can re-configure SASL using:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;./configure --prefix=/usr/local/cyrus-SASL --disable-cram --disable-digest --disable-otp --enable-gssapi --with-gss_impl=mit)&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;2)lt-sample-server: SASL Other: GSSAPI Error: Miscellaneous failure (key version number mismatched)&lt;br /&gt;lt-sample-server: Starting SASL negotiation: generic failure (generic failure)&lt;br /&gt;&lt;span style="font-style: italic;"&gt;* Use "klist -k /usr/krb5.keytab" and "kvno ldap/ktang.ierc.ox.ac.uk" to check whether key version numbers of the service&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;you are interested in are matched.Everytime you use kadmin(ktadd) add a new key, kvno will increase by 1.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;More details in http://www.bayour.com/LDAPv3-HOWTO.html&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;3)lt-sample-server: SASL Other: GSSAPI Error: Miscellaneous failure (No principal in keytab matches desired name)&lt;br /&gt;lt-sample-server: Starting SASL negotiation: generic failure (generic failure)&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*Make sure you have created the key to the correct keytab file. The default keytab from where KDC will look for principals is&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;/etc/krb5.keytab. Use klist -k /etc/krb5.keytab to check the keys you added.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4)lt-sample-server: SASL Other: GSSAPI Error: Miscellaneous failure (Decrypt integrity check failed)&lt;br /&gt;lt-sample-server: Starting SASL negotiation: authentication failure (authentication failure)&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*To avoid this error happen, make sure to use "kdestroy" to get rid of any old cached tickets by using kdestroy,&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;otherwise the various Kerberos programs will continue to use an old ticket encrypted with the wrong encryption key.&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;More details in http://www.faqs.org/faqs/kerberos-faq/general/section-73.html&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;5) In client side, if  see the following:&lt;br /&gt;............&lt;br /&gt;recieved 153 byte message&lt;br /&gt;C:&lt;br /&gt;Waiting for server reply...&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;*It is *NOT* an error! what you should do is copy C: to server side.Note, there's a space after C:!&lt;/span&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Reference:http://www.irbs.net/internet/cyrus-sasl/0506/0050.html&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26740132-114584113248212600?l=synewgrid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synewgrid.blogspot.com/feeds/114584113248212600/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=26740132&amp;postID=114584113248212600' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114584113248212600'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114584113248212600'/><link rel='alternate' type='text/html' href='http://synewgrid.blogspot.com/2006/04/cyrus-sasl-installation_23.html' title='Cyrus SASL installation'/><author><name>Synew</name><uri>http://www.blogger.com/profile/08294543115153942885</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-26740132.post-114579345341027853</id><published>2006-04-23T04:41:00.000-07:00</published><updated>2006-04-26T09:35:06.496-07:00</updated><title type='text'>Install &amp; Configure Kerberos V5 under SL4</title><content type='html'>Boz I need to install openLDAP for Idp installation in future,  I need to install Kerberos, which is recommanded by openLDAP.&lt;br /&gt;Either Heimdal or MIT Kerberos V5 are free implementation of Kerberos v5 protocol, you can choose the one u like, I have picked the latter.&lt;br /&gt;&lt;br /&gt;1.Download the src code from MIT kerberos site&lt;br /&gt;http://web.mit.edu/kerberos/dist/krb5/1.4/krb5-1.4.3-signed.tar&lt;br /&gt;&lt;br /&gt;2. tar -xvf krb5-1.4.3-signed.tar&lt;br /&gt;then u get krb5-1.4.3.tar.gz, unpack it by,&lt;br /&gt;tar -zxvf krb5-1.4.3.tar.gz&lt;br /&gt;&lt;br /&gt;3. cd krb5-1.4.3/src&lt;br /&gt;*IMPORTANT* If you configure the code without any parameters, some tcl related error will usually occur  when build the code .&lt;br /&gt;After some googling, some guy said tcl is only used to perform some tests when u run "make check", therefore can be considered not necessary. So you can configure the code using,&lt;br /&gt;./configure --prefix=/usr/local/kerberos5 --without-krb4 --without-tcl&lt;br /&gt;&lt;br /&gt;Everything should be fine, but what if i want to do the unit tests depending on tcl to make sure my installation is all right? I searched my system and found tcl binary is already installed, but we need tcl.h and&lt;br /&gt;tcl lib to build with tcl support. Therefore we need to install tcl-devel package.&lt;br /&gt;yum install tcl-devel.i386&lt;br /&gt;The "tcl.h" is located in /usr/include/, lib files in /usr/lib&lt;br /&gt;Now we can configure the code using:&lt;br /&gt;./configure --prefix=/usr/local/kerberos5 --without-krb4 &lt;span style="font-weight: bold;"&gt;--with-tcl=/usr&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;4, make&lt;br /&gt;5, make install&lt;br /&gt;6, make check&lt;br /&gt;You should see no errors&lt;br /&gt;&lt;br /&gt;7, configure /etc/krb5.conf and kdc.conf, instructions can be found at&lt;br /&gt;http://web.mit.edu/kerberos/krb5-1.4/krb5-1.4.3/doc/krb5-install/Install-the-Master-KDC.html#Install%20the%20Master%20KDC&lt;br /&gt;*Make sure to change the default var files directory to your installation dir&lt;br /&gt;#krb5.conf#######################################&lt;br /&gt;[logging]&lt;br /&gt;default = FILE:/var/log/krb5libs.log&lt;br /&gt;kdc = FILE:/var/log/krb5kdc.log&lt;br /&gt;admin_server = FILE:/var/log/kadmind.log&lt;br /&gt;&lt;br /&gt;[libdefaults]&lt;br /&gt;default_realm = IERC.OX.AC.UK&lt;br /&gt;dns_lookup_realm = false&lt;br /&gt;dns_lookup_kdc = false&lt;br /&gt;&lt;br /&gt;[realms]&lt;br /&gt;IERC.OX.AC.UK = {&lt;br /&gt;kdc = ktang.ierc.ox.ac.uk:88&lt;br /&gt;admin_server = ktang.ierc.ox.ac.uk:749&lt;br /&gt;default_domain = ierc.ox.ac.uk&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;[domain_realm]&lt;br /&gt;.ierc.ox.ac.uk = IERC.OX.AC.UK&lt;br /&gt;ierc.ox.ac.uk = IERC.OX.AC.UK&lt;br /&gt;&lt;br /&gt;[kdc]&lt;br /&gt;profile = /usr/local/kerberos5/var/krb5kdc/kdc.conf&lt;br /&gt;&lt;br /&gt;[appdefaults]&lt;br /&gt;pam = {&lt;br /&gt;debug = false&lt;br /&gt;ticket_lifetime = 36000&lt;br /&gt;renew_lifetime = 36000&lt;br /&gt;forwardable = true&lt;br /&gt;krb4_convert = false&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;#kdc.conf#######################################&lt;br /&gt;[kdcdefaults]&lt;br /&gt;kdc_ports = 88&lt;br /&gt;&lt;br /&gt;[realms]&lt;br /&gt;IERC.OX.AC.UK = {&lt;br /&gt;       database_name = /usr/local/kerberos5/var/krb5kdc/principal&lt;br /&gt;       admin_keytab = FILE:/usr/local/kerberos5/var/krb5kdc/kadm5.keyta&lt;br /&gt;b&lt;br /&gt;       acl_file = /usr/local/kerberos5/var/krb5kdc/kadm5.acl&lt;br /&gt;       key_stash_file = /usr/local/kerberos5/var/krb5kdc/.k5.IERC.OX.AC&lt;br /&gt;.UK&lt;br /&gt;       kdc_ports = 88&lt;br /&gt;       max_life = 10h 0m 0s&lt;br /&gt;       max_renewable_life = 7d 0h 0m 0s&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[logging]&lt;br /&gt;kdc = FILE:/usr/local/kerberos5/var/krb5kdc/kdc.log&lt;br /&gt;admin_server = FILE:/usr/local/kerberos5/var/krb5kdc/kadmin.log&lt;br /&gt;#########################END####################&lt;br /&gt;&lt;br /&gt;8,Create a database on the system where KDC resides:&lt;br /&gt;&lt;span style="font-style: italic;"&gt; #/usr/local/kerberos5/sbin/kdb5_util create IERC.OX.AC.UK -s&lt;/span&gt;&lt;br /&gt;the database related information files will be generated in the var directories you configured&lt;br /&gt;kdc.conf file(/usr/local/kerberos5/var/krb5kdc/)&lt;br /&gt;* If you dont wanna stash file to be generated, don't use " -s " parameter.&lt;br /&gt;*To delete the existing database, delete all these new genenated files&lt;br /&gt;* You can costomize the name of generated files by change the kdc name in "kdc.conf", default&lt;br /&gt;name is "principal"&lt;br /&gt;&lt;br /&gt;9, Create acl file "kadm5.acl" in /usr/local/kerberos5/var/krb5kdc(the location is determined by kdc.conf)&lt;br /&gt;To understand acl, you need to understand the definition of principal and instance&lt;br /&gt;&lt;span style="font-style: italic;"&gt;http://web.mit.edu/kerberos/krb5-1.4/krb5-1.4.3/doc/krb5-user/What-is-a-Kerberos-Principal-.html&lt;/span&gt;&lt;br /&gt;Mine is like this:&lt;br /&gt;#####################&lt;br /&gt;*/admin@IERC.OX.AC.UK   *&lt;br /&gt;ktang@IERC.OX.AC.UK     ADMCIL&lt;br /&gt;###########################&lt;br /&gt;&lt;br /&gt;10. Add administrator to database, use&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;# ./kadmin.local&lt;/span&gt;&lt;br /&gt;Authenticating as principal synew/admin@IERC.OX.AC.UK with password.&lt;br /&gt;kadmin.local:  &lt;span style="font-weight: bold;"&gt;addprinc ktang/admin@IERC.OX.AC.UK&lt;/span&gt;&lt;br /&gt;WARNING: no policy specified for ktang/admin@IERC.OX.AC.UK; defaulting to no policy&lt;br /&gt;Enter password for principal "ktang/admin@IERC.OX.AC.UK":&lt;br /&gt;Re-enter password for principal "ktang/admin@IERC.OX.AC.UK":&lt;br /&gt;Principal "ktang/admin@IERC.OX.AC.UK" created.&lt;br /&gt;kadmin.local:  &lt;span style="font-weight: bold;"&gt;addprinc synew/admin@IERC.OX.AC.UK&lt;/span&gt;&lt;br /&gt;WARNING: no policy specified for synew/admin@IERC.OX.AC.UK; defaulting to no policy&lt;br /&gt;Enter password for principal "synew/admin@IERC.OX.AC.UK":&lt;br /&gt;Re-enter password for principal "synew/admin@IERC.OX.AC.UK":&lt;br /&gt;Principal "synew/admin@IERC.OX.AC.UK" created.&lt;br /&gt;kadmin.local:&lt;span style="font-weight: bold;"&gt;quit&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;11. Create keytab, use,&lt;br /&gt;&lt;span style="font-weight: bold;"&gt; ./kadmin.local&lt;/span&gt;&lt;br /&gt;Authenticating as principal synew/admin@IERC.OX.AC.UK with password.&lt;br /&gt;kadmin.local:  &lt;span style="font-weight: bold;"&gt;ktadd -k /usr/local/kerberos5/var/krb5kdc/kadm5.keytab kadmin/admin kadmin/changepw&lt;/span&gt;&lt;br /&gt;Entry for principal kadmin/admin with kvno 3, encryption type Triple DES cbc mode with HMAC/sha1 added to keytab WRFILE:/usr/local/kerberos5/var/krb5kdc/kadm5.keytab.&lt;br /&gt;Entry for principal kadmin/admin with kvno 3, encryption type DES cbc mode with CRC-32 added to keytab WRFILE:/usr/local/kerberos5/var/krb5kdc/kadm5.keytab.&lt;br /&gt;Entry for principal kadmin/changepw with kvno 3, encryption type Triple DES cbc mode with HMAC/sha1 added to keytab WRFILE:/usr/local/kerberos5/var/krb5kdc/kadm5.keytab.&lt;br /&gt;Entry for principal kadmin/changepw with kvno 3, encryption type DES cbc mode with CRC-32 added to keytab WRFILE:/usr/local/kerberos5/var/krb5kdc/kadm5.keytab.&lt;br /&gt;kadmin.local:  &lt;span style="font-weight: bold;"&gt;quit&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;font&gt;12. Start the Kerberos daemons by:&lt;br /&gt;./krb5kdc&lt;br /&gt;./kadmind&lt;span style="font-weight: bold;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/26740132-114579345341027853?l=synewgrid.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://synewgrid.blogspot.com/feeds/114579345341027853/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://www.blogger.com/comment.g?blogID=26740132&amp;postID=114579345341027853' title='4 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114579345341027853'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/26740132/posts/default/114579345341027853'/><link rel='alternate' type='text/html' href='http://synewgrid.blogspot.com/2006/04/install-configure-kerberos-v5-under.html' title='Install &amp; Configure Kerberos V5 under SL4'/><author><name>Synew</name><uri>http://www.blogger.com/profile/08294543115153942885</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>4</thr:total></entry></feed>
