<?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:blogger='http://schemas.google.com/blogger/2008' 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-4796312792689375753</id><updated>2026-08-15T14:26:59.374-07:00</updated><category term="EX401"/><category term="EX436"/><title type='text'>RHCA Study Notes</title><subtitle type='html'>These are my RHCA study notes, feel free to use them but do not expect them to be 100% accurate!</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default?redirect=false'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default?start-index=26&amp;max-results=25&amp;redirect=false'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>62</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-6646472117842319421</id><published>2012-09-13T08:06:00.000-07:00</published><updated>2012-09-13T08:06:56.882-07:00</updated><title type='text'>Migrate NIS users and groups into LDAP</title><content type='html'>yum install openldap-servers&lt;br /&gt;
&lt;br /&gt;
cd /usr/share/openldap/migration&lt;br /&gt;
&lt;br /&gt;
run the migration scripts</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/6646472117842319421/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/03/migrate-nis-users-and-groups-into-ldap.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/6646472117842319421'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/6646472117842319421'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/03/migrate-nis-users-and-groups-into-ldap.html' title='Migrate NIS users and groups into LDAP'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-8240596476146207435</id><published>2012-09-12T08:52:00.001-07:00</published><updated>2012-09-12T08:53:43.788-07:00</updated><title type='text'>verify document signatures</title><content type='html'>&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;Verify the signature&lt;/span&gt;&lt;br style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot; /&gt;&lt;span style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px;&quot;&gt;#gpg --output document --decrypt document.sig&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/8240596476146207435/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/verify-document-signatures.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/8240596476146207435'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/8240596476146207435'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/verify-document-signatures.html' title='verify document signatures'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-7136216566343713797</id><published>2012-09-12T08:48:00.001-07:00</published><updated>2012-09-12T08:52:07.040-07:00</updated><title type='text'>sign documents</title><content type='html'>Sign the document&lt;br /&gt;
#gpg --output document.sig --sign document</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/7136216566343713797/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/sign-documents.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/7136216566343713797'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/7136216566343713797'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/sign-documents.html' title='sign documents'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-3181638770329723689</id><published>2012-09-12T08:42:00.001-07:00</published><updated>2012-09-12T08:44:44.996-07:00</updated><title type='text'>decrypt documents</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;post-body entry-content&quot; id=&quot;post-body-1200277058863133631&quot; itemprop=&quot;description articleBody&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 18px; position: relative; width: 760px;&quot;&gt;
&lt;div&gt;
Decrypt a document&lt;/div&gt;
&lt;div&gt;
#&lt;span style=&quot;background-color: white;&quot;&gt;gpg --output document --decrypt document.gpg&lt;/span&gt;&lt;/div&gt;
&lt;div&gt;
&lt;span style=&quot;background-color: white;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;
&lt;div style=&quot;clear: both;&quot;&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;post-footer&quot; style=&quot;background-color: white; color: #333333; font-family: Arial, Tahoma, Helvetica, FreeSans, sans-serif; font-size: 13px; line-height: 1.6; margin: 1.5em 0px 0px;&quot;&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/3181638770329723689/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/decrypt-documents.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/3181638770329723689'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/3181638770329723689'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/decrypt-documents.html' title='decrypt documents'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-1200277058863133631</id><published>2012-09-12T08:38:00.003-07:00</published><updated>2012-09-12T08:42:30.058-07:00</updated><title type='text'>encrypt documents</title><content type='html'>To encrypt you will need to have the persons public key available to you so you can import it&lt;div&gt;
#gpg --import public-key.gpg&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Encrypt a document&lt;/div&gt;
&lt;div&gt;
#&lt;span style=&quot;background-color: white;&quot;&gt;gpg --output document.gpg --encrypt --recipient username@example.com document&lt;/span&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/1200277058863133631/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/encrypt-documents_12.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/1200277058863133631'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/1200277058863133631'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/encrypt-documents_12.html' title='encrypt documents'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-4700428931768574219</id><published>2012-09-12T08:18:00.001-07:00</published><updated>2012-09-12T08:38:32.355-07:00</updated><title type='text'>generate key pairs</title><content type='html'>Generate the key pairs using the following command&lt;br /&gt;
#gpg --gen-key&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/4700428931768574219/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/generate-key-pairs.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/4700428931768574219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/4700428931768574219'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/generate-key-pairs.html' title='generate key pairs'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-4464679047208886567</id><published>2012-09-11T13:48:00.001-07:00</published><updated>2012-09-12T06:17:19.313-07:00</updated><title type='text'>use the Real-time Blackhole List (RBL) via DNS</title><content type='html'>&lt;b&gt;&lt;u&gt;Sendmail&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
Edit /etc/mail/sendmail.mc and add&lt;br /&gt;
&lt;br /&gt;
FEATURE(`dnsbl&#39;, `dnsbl.example.com&#39;, `you have been rejected mofo&#39;)dnl&lt;br /&gt;
&lt;br /&gt;
#make -C /etc/mail&lt;br /&gt;
&lt;br /&gt;
#service sendmail restart&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;Postfix&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;u&gt;&lt;br /&gt;&lt;/u&gt;&lt;/b&gt;
#postconf -e &quot;smtpd_recipient_restrictions = permit_mynetworks, reject_unauth_destination, reject_rbl_client dnsbl.example.com&quot;&lt;br /&gt;
&lt;br /&gt;
#service postfix restart</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/4464679047208886567/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/use-real-time-blackhole-list-rbl-via-dns.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/4464679047208886567'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/4464679047208886567'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/use-real-time-blackhole-list-rbl-via-dns.html' title='use the Real-time Blackhole List (RBL) via DNS'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-6665492772644209202</id><published>2012-09-11T13:40:00.001-07:00</published><updated>2012-09-11T13:47:45.441-07:00</updated><title type='text'>blackhole lists (RBL)</title><content type='html'>&lt;b&gt;&lt;u&gt;
Blackhole list&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17.316667556762695px;&quot;&gt;blackhole { address_match_list };&lt;/span&gt;&lt;br /&gt;
&lt;b style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17.316667556762695px;&quot;&gt;&lt;br /&gt;&lt;/b&gt;
&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17.316667556762695px;&quot;&gt;blackhole&lt;/span&gt;&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17.316667556762695px;&quot;&gt;&amp;nbsp;defines a&amp;nbsp;&lt;/span&gt;address_match_list&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17.316667556762695px;&quot;&gt;&amp;nbsp;of hosts that the server will NOT respond to, or answer queries for. The default is &#39;none&#39; (all hosts are responded to). This statement may only be used in a global&amp;nbsp;&lt;/span&gt;options&lt;span style=&quot;background-color: white; font-family: Verdana, Helvetica, Arial, sans-serif; font-size: 13px; line-height: 17.316667556762695px;&quot;&gt;&amp;nbsp;clause.&lt;/span&gt;&lt;br /&gt;
&lt;br /&gt;
&lt;b&gt;&lt;u&gt;
Blackhole Zone&lt;/u&gt;&lt;/b&gt;&lt;br /&gt;
&lt;br /&gt;
Create a new master zone called dnsbl.example.com and edit it so it looks like this&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
$TTL 1H&lt;br /&gt;
@ &amp;nbsp; &amp;nbsp; &amp;nbsp; SOA &amp;nbsp; &amp;nbsp; auth1.example.com. &amp;nbsp; &amp;nbsp; &amp;nbsp;root.auth1.example.com. ( &amp;nbsp; &amp;nbsp; &amp;nbsp; 2&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 3H&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1H&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1W&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 1H )&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IN &amp;nbsp; &amp;nbsp; &amp;nbsp;NS &amp;nbsp; &amp;nbsp; &amp;nbsp;auth1.example.com.&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IN &amp;nbsp; &amp;nbsp; &amp;nbsp;A &amp;nbsp; &amp;nbsp; &amp;nbsp; 172.16.118.136&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;128.25.168.192 &amp;nbsp;IN &amp;nbsp; &amp;nbsp; &amp;nbsp;A &amp;nbsp; &amp;nbsp; &amp;nbsp; 127.0.0.2&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; IN &amp;nbsp; &amp;nbsp; &amp;nbsp;TXT &amp;nbsp; &amp;nbsp; &quot;Spam MOFO&quot;&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: #cc0000;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
Add entries like the one in red for all of the spam sources</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/6665492772644209202/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/blackhole-lists-rbl.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/6665492772644209202'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/6665492772644209202'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/blackhole-lists-rbl.html' title='blackhole lists (RBL)'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-2418951200390854811</id><published>2012-09-10T13:28:00.001-07:00</published><updated>2012-09-12T06:12:59.704-07:00</updated><title type='text'>filter mail based on message characteristics</title><content type='html'>&lt;h2&gt;
Postfix&lt;/h2&gt;
The following can be used for filtering&lt;br /&gt;
/etc/postfix/access&lt;br /&gt;
/etc/postfix/header_checks&lt;br /&gt;
&lt;br /&gt;
&lt;h2&gt;
&lt;br /&gt;&lt;/h2&gt;
&lt;h2&gt;
Sendmail&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/2418951200390854811/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/filter-mail-based-on-message.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/2418951200390854811'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/2418951200390854811'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/filter-mail-based-on-message.html' title='filter mail based on message characteristics'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-2084589349460905836</id><published>2012-09-10T12:14:00.001-07:00</published><updated>2012-09-10T13:06:29.933-07:00</updated><title type='text'>use TLS for secure communication</title><content type='html'>You can use the ca created in&amp;nbsp;&lt;a href=&quot;http://rhca-study-notes.blogspot.co.uk/2012/09/configure-certificate-authority-ca-and.html&quot;&gt;configure a certificate authority (CA) and sign certificate requests&lt;/a&gt;&lt;br /&gt;
&lt;h2&gt;
Postfix&lt;/h2&gt;
&lt;div&gt;
Create the SSL directory&lt;/div&gt;
&lt;div&gt;
#mkdir /etc/postfix/ssl&lt;/div&gt;
&lt;div&gt;
##cd /etc/postfix/ssl&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Create the Key and Request&lt;/div&gt;
&lt;div&gt;
#openssl req -new -nodes -keyout client.example.com.key -out mail.example.com.csr&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Sign the Request&lt;/div&gt;
&lt;div&gt;
#cp&amp;nbsp;mail.example.com.csr /etc/pki/tls/misc/newreq.pem&lt;/div&gt;
&lt;div&gt;
#cd&amp;nbsp;/etc/pki/tls/misc/&lt;/div&gt;
&lt;div&gt;
#./CA.pl -sign&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Copy cert to SSL dir&lt;/div&gt;
&lt;div&gt;
#cp &amp;nbsp;newcert.pem /etc/postfix/ssl/mail.example.com.crt&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Copy the cacert&lt;/div&gt;
&lt;div&gt;
#cp /etc/pki/CA/cacert.pem ssl/&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Use postconf to configure TSL settings&lt;/div&gt;
&lt;div&gt;
#postconf -e &quot;smtpd_use_tls = yes&quot;&lt;/div&gt;
&lt;div&gt;
#postconf -e &quot;smtpd_tls_CAfile = /etc/postfix/ssl/cacert.pem&quot;&lt;/div&gt;
&lt;div&gt;
#postconf -e &quot;smtpd_tls_cert_file = /etc/postfix/ssl/mail.example.com.crt&quot;&lt;/div&gt;
&lt;div&gt;
#postconf -e &quot;smtpd_tls_key_file = /etc/postfix/ssl/mail.example.com.key&quot;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Restart postfix&lt;/div&gt;
&lt;div&gt;
#service postfix restart&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h2&gt;
Sendmail&lt;/h2&gt;
&lt;div&gt;
&lt;br /&gt;
&lt;div&gt;
Install sendmail-mc&lt;br /&gt;
#yum install sendmail-mc -y&lt;br /&gt;
&lt;br /&gt;
Create the SSL directory&lt;/div&gt;
&lt;div&gt;
#mkdir /etc/mail/ssl&lt;/div&gt;
&lt;div&gt;
##cd /etc/mail/ssl&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Create the Key and Request&lt;/div&gt;
&lt;div&gt;
#openssl req -new -nodes -keyout client.example.com.key -out mail.example.com.csr&lt;br /&gt;
&lt;br /&gt;
Update permissions on the key file&lt;br /&gt;
#chmod 400 mail.example.com.key&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Sign the Request&lt;/div&gt;
&lt;div&gt;
#cp&amp;nbsp;mail.example.com.csr /etc/pki/tls/misc/newreq.pem&lt;/div&gt;
&lt;div&gt;
#cd&amp;nbsp;/etc/pki/tls/misc/&lt;/div&gt;
&lt;div&gt;
#./CA.pl -sign&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Copy cert to SSL dir&lt;/div&gt;
&lt;div&gt;
#cp &amp;nbsp;newcert.pem /etc/mail/ssl/mail.example.com.crt&lt;br /&gt;
&lt;br /&gt;
Update sendmail config&lt;br /&gt;
#cd /etc/mail&lt;br /&gt;
&lt;br /&gt;
Edit sendmail.mc and add the following&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
define(`confCACERT_PATH&#39;, `/etc/mail/ssl&#39;)dnl&lt;br /&gt;
define(`confCACERT&#39;, `/etc/pki/CA/cacert.pem&#39;)dnl&lt;br /&gt;
define(`confSERVER_CERT&#39;, `/etc/mail/ssl/auth1.example.com.crt&#39;)dnl&lt;br /&gt;
define(`confSERVER_KEY&#39;, `/etc/mail/ssl/auth1.example.com.key&#39;)dnl&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Update sendmail&lt;/div&gt;
&lt;div&gt;
#make -C .&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Restart sendmail&lt;/div&gt;
&lt;div&gt;
#service sendmail restart&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/2084589349460905836/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/use-tls-for-secure-communication.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/2084589349460905836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/2084589349460905836'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/use-tls-for-secure-communication.html' title='use TLS for secure communication'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-5697115935835592596</id><published>2012-09-09T03:48:00.001-07:00</published><updated>2012-09-09T06:36:59.871-07:00</updated><title type='text'>TSIG</title><content type='html'>&lt;h3&gt;
Configure TSIG for zone transfers&lt;/h3&gt;
&lt;h4&gt;
On the master&lt;/h4&gt;
Create the key&lt;br /&gt;
#dnssec-keygen -a HMAC-MD5 -b 128 -n HOST master-slave&lt;br /&gt;
&lt;br /&gt;
Get the key value&lt;br /&gt;
#cat Kmaster-slave*key&lt;br /&gt;
master-slave. IN KEY 512 3 157 &lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;ts7byllvrX5r4Il3t177Ug==&lt;/span&gt;&lt;/b&gt;&lt;br /&gt;
&lt;b&gt;&lt;span style=&quot;color: red;&quot;&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;
Create a key file to include in named.conf&lt;br /&gt;
#vim master-slave.key&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
key master-slave {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; algorithm hmac-md5;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; secret&amp;nbsp;ts7byllvrX5r4Il3t177Ug==;&lt;br /&gt;
};&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
Change the permissions on the file&lt;br /&gt;
#chmod 640 master-slave.key&lt;br /&gt;
#chown :named master-slave.key&lt;br /&gt;
&lt;br /&gt;
Link to /etc if in chroot&lt;br /&gt;
#ln -s /var/named/chroot/etc/master-slave.key /etc/master-slave.key&lt;br /&gt;
&lt;br /&gt;
Make sure the key has the correct context&lt;br /&gt;
#chcon master-slave.key --reference rndc.key&lt;br /&gt;
&lt;br /&gt;
Update named.conf so that the key is included by adding the following&lt;br /&gt;
include &quot;/etc/master-slave.key&quot;;&lt;br /&gt;
&lt;br /&gt;
Configure the server to allow transfers using the key&lt;br /&gt;
&lt;br /&gt;
allow-transfer { key master-slave; };&lt;br /&gt;
&lt;br /&gt;
Restart the named service on the master&lt;br /&gt;
#service named restart&lt;br /&gt;
&lt;br /&gt;
&lt;h4&gt;
On the slave&lt;/h4&gt;
&lt;div&gt;
Create a key file to include in named.conf&lt;br /&gt;
#vim master-slave.key&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
key master-slave {&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; algorithm hmac-md5;&lt;br /&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; secret&amp;nbsp;ts7byllvrX5r4Il3t177Ug==;&lt;br /&gt;
};&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Change the permissions on the file&lt;br /&gt;
#chmod 640 master-slave.key&lt;br /&gt;
#chown :named master-slave.key&lt;br /&gt;
&lt;br /&gt;
Link to /etc if in chroot&lt;br /&gt;
#ln -s /var/named/chroot/etc/master-slave.key /etc/master-slave.key&lt;br /&gt;
&lt;br /&gt;
Make sure the key has the correct context&lt;br /&gt;
#chcon master-slave.key --reference rndc.key&lt;br /&gt;
&lt;br /&gt;
Update named.conf so that the key is included by adding the following&lt;br /&gt;
include &quot;/etc/master-slave.key&quot;;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Add the master server in and configure to use the required key&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
server SERVERIP {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; keys master-slave;&lt;/div&gt;
&lt;div&gt;
};&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Restart bind&lt;/div&gt;
&lt;div&gt;
#service named restart&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;h4&gt;
Testing&lt;/h4&gt;
&lt;div&gt;
You can use the dig command to test zone transfers&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Without tsig&lt;/div&gt;
&lt;div&gt;
#dig @MASTERIP example.com axfr&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
With tsig&lt;/div&gt;
&lt;div&gt;
dig -y master-slave:ts7byllvrX5r4Il3t177Ug== @MASTERIP example.com axfr&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/5697115935835592596/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/tsig.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/5697115935835592596'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/5697115935835592596'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/tsig.html' title='TSIG'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-1344323231402264478</id><published>2012-09-09T02:20:00.001-07:00</published><updated>2012-09-09T03:47:25.145-07:00</updated><title type='text'>master domain</title><content type='html'>Use&amp;nbsp;/usr/share/doc/bind-*/sample/etc/named.conf to see examples of configuration&lt;br /&gt;
&lt;br /&gt;
Install the bind packages&lt;br /&gt;
#yum install bind-chroot system-config-bind -y&lt;br /&gt;
&lt;br /&gt;
Run the bind configuration utility which will create the config files for you.&lt;br /&gt;
#system-config-bind&lt;br /&gt;
&lt;br /&gt;
Create a new master zone&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/1344323231402264478/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/master-domain.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/1344323231402264478'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/1344323231402264478'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/master-domain.html' title='master domain'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-5682863608187678687</id><published>2012-09-05T11:44:00.001-07:00</published><updated>2012-09-05T13:33:43.371-07:00</updated><title type='text'>configure httpd to use passwords and/or network location to restrict access to content</title><content type='html'>Install apache&lt;br /&gt;
#yum install httpd -y&lt;br /&gt;
&lt;br /&gt;
#######################################################################&lt;br /&gt;
USING PASSWORDS TO RESTRICT ACCESS&lt;br /&gt;
#######################################################################&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Edit the apache config&lt;/div&gt;
&lt;div&gt;
#vim /etc/httpd/conf/httpd.conf&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&amp;lt;Directory &quot;/var/www/html/protected&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; AllowOverride Authconfig&lt;/div&gt;
&lt;div&gt;
&amp;lt;/Directory&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Create the protected area&lt;/div&gt;
&lt;br /&gt;
#mkdir /var/www/html/protected&lt;br /&gt;
#echo &quot;Only authorised personal can see this&quot; &amp;gt; /var/www/html/protected/index.html&lt;br /&gt;
&lt;br /&gt;
Use htpasswd to create an auth file&lt;br /&gt;
#htpasswd -c -m /var/www/userfile username&lt;br /&gt;
&lt;br /&gt;
Create the following file with the following config&lt;br /&gt;
#vim&amp;nbsp;/var/www/html/protected/.htaccess&lt;br /&gt;
&lt;br /&gt;
AuthName &quot;Access to protected area&quot;&lt;br /&gt;
AuthType Basic&lt;br /&gt;
AuthUserFile /var/www/userfile&lt;br /&gt;
require valid-user&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Restart apache&lt;/div&gt;
&lt;div&gt;
#service httpd restart&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You should then be prompted when you try and access http://servername/protected&lt;br /&gt;
&lt;br /&gt;
#######################################################################&lt;br /&gt;
USING NETWORK LOCATION TO RESTRICT ACCESS&lt;br /&gt;
#######################################################################&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Edit the apache config&lt;/div&gt;
&lt;div&gt;
#vim /etc/httpd/conf/httpd.conf&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Directory &quot;/var/www/html/protected&quot;&amp;gt;&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; Order allow,deny&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; Allow from .example.com&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; &amp;nbsp; Deny from All&lt;/div&gt;
&lt;div&gt;
&amp;lt;/Directory&amp;gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Restart apache&lt;/div&gt;
&lt;div&gt;
#service httpd restart&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/5682863608187678687/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/configure-httpd-to-use-passwords-andor.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/5682863608187678687'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/5682863608187678687'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/configure-httpd-to-use-passwords-andor.html' title='configure httpd to use passwords and/or network location to restrict access to content'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-1183309294012882879</id><published>2012-09-04T13:56:00.001-07:00</published><updated>2012-09-05T11:43:54.036-07:00</updated><title type='text'>configure httpd to use a SSL certificate signed by a certifying authority</title><content type='html'>You will need to use the CA created using &lt;a href=&quot;http://rhca-study-notes.blogspot.co.uk/2012/09/configure-certificate-authority-ca-and.html&quot;&gt;configure-certificate-authority-ca&lt;/a&gt;&lt;br /&gt;
&lt;br /&gt;
Install apache and mod_ssl packages&lt;br /&gt;
#yum install httpd mod_ssl -y&lt;br /&gt;
&lt;br /&gt;
Create a key&lt;br /&gt;
#openssl genrsa -out server.example.com.key 1024&lt;br /&gt;
&lt;br /&gt;
Create a certificate signing request&lt;br /&gt;
#openssl req -new -key server.example.com.key -out server.example.com.csr&lt;br /&gt;
&lt;br /&gt;
Sign the certificate with the CA&lt;br /&gt;
#cp&amp;nbsp;server.example.com.csr&amp;nbsp;/etc/pki/CA/newreq.pem&lt;br /&gt;
#/etc/pki/tls/misc/CA.pl -sign&lt;br /&gt;
&lt;br /&gt;
Copy the signed cert somewhere into the /var/www tree somewhere or make sure that it has the correct security context&lt;br /&gt;
#mkdir /var/www/certs&lt;br /&gt;
#mv&amp;nbsp;/etc/pki/CA/newreq.pem&amp;nbsp;/var/www/certs/server.example.com.crt&lt;br /&gt;
#mv&amp;nbsp;server.example.com.key&amp;nbsp;/var/www/certs/server.example.com.key&lt;br /&gt;
&lt;br /&gt;
Edit&amp;nbsp;/etc/httpd/conf.d/ssl.conf&lt;br /&gt;
&lt;br /&gt;
SSLCertificateFile /var/www/certs/server.example.com.cert&lt;br /&gt;
SSLCertificateKeyFile /var/www/certs/server.example.com.key&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
Restart apache&lt;br /&gt;
#service httpd restart&lt;br /&gt;
&lt;br /&gt;
Test connection!</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/1183309294012882879/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/configure-httpd-to-use-ssl-certificate.html#comment-form' title='2 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/1183309294012882879'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/1183309294012882879'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/configure-httpd-to-use-ssl-certificate.html' title='configure httpd to use a SSL certificate signed by a certifying authority'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-6042235467942860765</id><published>2012-09-04T13:52:00.001-07:00</published><updated>2012-09-04T13:55:37.556-07:00</updated><title type='text'>configure a certificate authority (CA) and sign certificate requests</title><content type='html'>&lt;br /&gt;
Install the perl openssl package&lt;br /&gt;
# yum install openssl-perl&lt;br /&gt;
&lt;br /&gt;
Change to the directory where the CA.pl script is located&lt;br /&gt;
# cd /etc/pki/tls/misc/&lt;br /&gt;
&lt;br /&gt;
Create the CA&lt;br /&gt;
# ./CA.pl -newca&lt;br /&gt;
&lt;br /&gt;
Make the CA Certificate available using http or some other method.</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/6042235467942860765/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/configure-certificate-authority-ca-and.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/6042235467942860765'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/6042235467942860765'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/configure-certificate-authority-ca-and.html' title='configure a certificate authority (CA) and sign certificate requests'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-8455398604685296961</id><published>2012-09-04T13:17:00.001-07:00</published><updated>2012-09-04T13:50:07.769-07:00</updated><title type='text'>Configure POP/IMAP to use SSL/TLS for secure communication</title><content type='html'>&lt;div&gt;
This needs to be done after creating the certificate authority&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
#yum install dovecot -y&lt;br /&gt;
&lt;br /&gt;
Edit /etc/dovecot.conf to allow on the protocols you require by changing the protocols value&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Edit&amp;nbsp;/etc/pki/dovecot/dovecot-openssl.cnf with the relevant information&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;
Delete the old certificates&lt;/div&gt;
&lt;div&gt;
#rm /etc/pki/dovecot/private/dovecot.pem&lt;/div&gt;
&lt;div&gt;
#rm /etc/pki/dovecot/certs/dovecot.pem&lt;br /&gt;
&lt;br /&gt;
Run the mkcert script&lt;br /&gt;
#/usr/share/doc/dovecot-1.0.7/examples/mkcert.sh&lt;br /&gt;
&lt;br /&gt;
Restart dovecot&lt;br /&gt;
#service dovecot restart&lt;br /&gt;
&lt;br /&gt;
Open the required ports on the firewall&lt;br /&gt;
&lt;br /&gt;
ACCEPT &amp;nbsp; &amp;nbsp; tcp &amp;nbsp;-- &amp;nbsp;anywhere &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anywhere &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;state NEW tcp dpt:imaps&lt;br /&gt;
ACCEPT &amp;nbsp; &amp;nbsp; udp &amp;nbsp;-- &amp;nbsp;anywhere &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anywhere &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;state NEW udp dpt:imaps&lt;br /&gt;
ACCEPT &amp;nbsp; &amp;nbsp; tcp &amp;nbsp;-- &amp;nbsp;anywhere &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anywhere &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;state NEW tcp dpt:pop3s&lt;br /&gt;
ACCEPT &amp;nbsp; &amp;nbsp; udp &amp;nbsp;-- &amp;nbsp;anywhere &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; anywhere &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;state NEW udp dpt:pop3s&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
You can test this using mutt, copy the ca certificate to the .mutt directory in the users home directory and run mutt&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
#mutt -f imaps://user@server&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Check the maillog of the server&amp;nbsp;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
Sep &amp;nbsp;4 13:32:40 auth1 sendmail[6037]: q84KWdRd006036: to=&amp;lt;adam@auth1.example.com&amp;gt;, ctladdr=&amp;lt;root@auth1.example.com&amp;gt; (0/0), delay=00:00:01, xdelay=00:00:00, mailer=local, pri=30529, dsn=2.0.0, stat=Sent&lt;/div&gt;
&lt;div&gt;
Sep &amp;nbsp;4 13:34:02 auth1 dovecot: imap-login: Login: user=&amp;lt;user&amp;gt;, method=PLAIN, rip=::ffff:172.16.118.135, lip=::ffff: TLS&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/8455398604685296961/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/configure-popimap-to-use-ssltls-for.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/8455398604685296961'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/8455398604685296961'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/configure-popimap-to-use-ssltls-for.html' title='Configure POP/IMAP to use SSL/TLS for secure communication'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-4417809023797012107</id><published>2012-09-03T12:17:00.001-07:00</published><updated>2012-09-04T12:32:08.635-07:00</updated><title type='text'>implement host based access restrictions</title><content type='html'>Use tcp wrappers or iptables&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/4417809023797012107/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/implement-host-based-access-restrictions.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/4417809023797012107'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/4417809023797012107'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/implement-host-based-access-restrictions.html' title='implement host based access restrictions'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-1935939561552502230</id><published>2012-09-02T08:15:00.001-07:00</published><updated>2012-09-03T12:17:31.352-07:00</updated><title type='text'>support FTP only users</title><content type='html'>use the nolgin shell</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/1935939561552502230/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/support-ftp-only-users.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/1935939561552502230'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/1935939561552502230'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/09/support-ftp-only-users.html' title='support FTP only users'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-2019757827226065668</id><published>2012-08-21T12:48:00.001-07:00</published><updated>2012-09-13T08:06:08.686-07:00</updated><title type='text'>configure NFSv4 server</title><content type='html'>You need to use the nohide option when using gss/krb5 to see anything that was mounted using bind&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
/exports &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; gss/krb5p(rw,sync,fsid=0,no_subtree_check)&lt;br /&gt;
/exports/home &amp;nbsp; gss/krb5p(rw,sync,&lt;span style=&quot;color: red;&quot;&gt;&lt;b&gt;nohide&lt;/b&gt;&lt;/span&gt;,no_subtree_check)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/2019757827226065668/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/08/configure-nfsv4-server.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/2019757827226065668'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/2019757827226065668'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/08/configure-nfsv4-server.html' title='configure NFSv4 server'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-9154941443089867097</id><published>2012-08-16T12:19:00.001-07:00</published><updated>2012-08-17T22:05:40.685-07:00</updated><title type='text'>configure Kerberos to provide user authentication</title><content type='html'>Install kerberos server packages&lt;br /&gt;
&lt;br /&gt;
[root@auth1 /]# yum install krb5-server&lt;br /&gt;
&lt;br /&gt;
Add the following rules to iptables&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 88 -j ACCEPT&lt;br /&gt;
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 88 -j ACCEPT&lt;br /&gt;
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 464 -j ACCEPT&lt;br /&gt;
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 464 -j ACCEPT&lt;br /&gt;
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 749 -j ACCEPT&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;br /&gt;
Edit the kdc conf file&lt;br /&gt;
&lt;br /&gt;
[root@auth1 /]# vim /var/kerberos/krb5kdc/kdc.conf&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[kdcdefaults]&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;v4_mode = nopreauth&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;kdc_tcp_ports = 88&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[realms]&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;auth1.EXAMPLE.COM = {&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; #master_key_type = des3-hmac-sha1&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; default_priniciple_flags = +preauth&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; acl_file = /var/kerberos/krb5kdc/kadm5.acl&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; dict_file = /usr/share/dict/words&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; admin_keytab = /var/kerberos/krb5kdc/kadm5.keytab&lt;/div&gt;
&lt;div&gt;
&amp;nbsp; supported_enctypes = aes256-cts:normal aes128-cts:normal des3-hmac-sha1:normal arcfour-hmac:normal des-hmac-sha1:normal des-cbc-md5:normal des-cbc-crc:normal des-cbc-crc:v4 des-cbc-crc:afs3&lt;/div&gt;
&lt;div&gt;
&amp;nbsp;}&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Initialise the database&lt;br /&gt;
&lt;br /&gt;
[root@auth1 /]# kdb5_util create&lt;br /&gt;
&lt;br /&gt;
Log in as kadmin.local and create the princs&lt;br /&gt;
&lt;br /&gt;
[root@auth1 /]# kadmin.local&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/9154941443089867097/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/08/configure-kerberos-to-provide-user.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/9154941443089867097'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/9154941443089867097'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/08/configure-kerberos-to-provide-user.html' title='configure Kerberos to provide user authentication'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-4517054212147427615</id><published>2012-08-14T12:08:00.001-07:00</published><updated>2012-08-15T13:49:54.489-07:00</updated><title type='text'>configure an NIS server to provide directory services</title><content type='html'>[root@ds1 ~]# yum install ypserv&lt;br /&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
[root@ds1 ~]# chkconfig portmap on&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
add the following to iptables&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
&lt;div&gt;
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 111 -j ACCEPT&lt;/div&gt;
&lt;div&gt;
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 111 -j ACCEPT&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
add the following to /etc/sysconfig/network&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
YPSERV_ARGS=&quot;-p 841&quot;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
add the following to iptables&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;div&gt;
-A RH-Firewall-1-INPUT -m state --state NEW -m tcp -p tcp --dport 808 -j ACCEPT&lt;/div&gt;
&lt;div&gt;
-A RH-Firewall-1-INPUT -m state --state NEW -m udp -p udp --dport 808 -j ACCEPT&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;div&gt;
Set the NIS domain name&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@auth1 ~]# nisdomainname NISDOMAINNAME&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Start NIS&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@auth1 ~]# service ypserv start&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Initialise maps&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@auth1 /]# /usr/lib/yp/ypinit -m&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
check access to maps&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@client ~]# &amp;nbsp;ypcat &amp;nbsp;-d auth1.example.com -h auth1.example.com passwd&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
Lock down using securenets&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
[root@auth1 /]# vim /var/yp/securenets&lt;/div&gt;
&lt;div&gt;
SUBNETMASK NETWORKADDRESS&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
&lt;div&gt;
&lt;br /&gt;&lt;/div&gt;
</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/4517054212147427615/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/08/configure-nis-server-to-provide.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/4517054212147427615'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/4517054212147427615'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/08/configure-nis-server-to-provide.html' title='configure an NIS server to provide directory services'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-9101300347207129346</id><published>2012-03-17T04:50:00.002-07:00</published><updated>2012-03-17T05:20:37.803-07:00</updated><title type='text'>Authenticate to the Directory Server using kerberos</title><content type='html'>&lt;br /&gt;
&lt;div class=&quot;titlepage&quot; style=&quot;background-color: white; font-family: &#39;liberation sans&#39;, &#39;Myriad &#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 12px; line-height: 15px; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;h2 class=&quot;title&quot; id=&quot;Configuring_Kerberos&quot; style=&quot;background-color: transparent; color: #a70000; font-size: 1.6em; line-height: 1.29em; margin-bottom: 0em; margin-top: 0em; page-break-after: avoid; page-break-inside: avoid;&quot;&gt;
7.12.&amp;nbsp;Using Kerberos GSS-API with SASL&lt;/h2&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id2986541&quot; style=&quot;background-color: white; font-family: &#39;liberation sans&#39;, &#39;Myriad &#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 12px; line-height: 15px; outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id2986553&quot; style=&quot;background-color: white; font-family: &#39;liberation sans&#39;, &#39;Myriad &#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 12px; line-height: 15px; outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;para&quot; style=&quot;background-color: white; font-family: &#39;liberation sans&#39;, &#39;Myriad &#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 12px; line-height: 15px; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
Kerberos v5 must be deployed on the host for Directory Server to utilize the GSS-API mechanism for SASL authentication. GSS-API and Kerberos client libraries must be installed on the Directory Server host to take advantage of Kerberos services.&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;SASL-Authentication_Mechanisms&quot; style=&quot;background-color: white; font-family: &#39;liberation sans&#39;, &#39;Myriad &#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 12px; line-height: 15px; margin-top: 1em; padding-top: 1em; page-break-inside: auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot; style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;h3 class=&quot;title&quot; id=&quot;SASL-Authentication_Mechanisms&quot; style=&quot;background-color: transparent; color: #a70000; font-size: 1.3em; line-height: 1.29em; margin-bottom: 0em; margin-top: 0em; padding-bottom: 0em; padding-top: 0em; page-break-after: avoid; page-break-inside: avoid;&quot;&gt;
7.12.1.&amp;nbsp;Authentication Mechanisms for SASL in Directory Server&lt;/h3&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id2986582&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id2986593&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
Directory Server support the following SASL encryption mechanisms:&lt;/div&gt;
&lt;div class=&quot;itemizedlist&quot; style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;ul style=&quot;list-style-image: url(http://docs.redhat.com/docs/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Common_Content/images/dot.png); list-style-type: circle; padding-left: 1.6em;&quot;&gt;
&lt;li class=&quot;listitem&quot; style=&quot;line-height: 1.29em; margin-bottom: 0.4em; margin-top: 0em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 0em; margin-top: 0em; padding-bottom: 0em; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;EXTERNAL.&lt;/em&gt;&lt;/span&gt;&amp;nbsp;&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id2986622&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;EXTERNAL, as with TLS/SSL, performs certificate-based authentication. This method uses public keys for strong authentication.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;line-height: 1.29em; margin-bottom: 0.4em; margin-top: 0em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 0em; margin-top: 0em; padding-bottom: 0em; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;CRAM-MD5.&lt;/em&gt;&lt;/span&gt;&amp;nbsp;&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id2986652&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;CRAM-MD5&lt;/code&gt;&amp;nbsp;is a simple challenge-response authentication method. It does not establish any security layer, unlike GSS-API. Both DIGEST-MD5 and GSS-API are much more secure, so both of those methods are recommended over CRAM-MD5.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;line-height: 1.29em; margin-bottom: 0.4em; margin-top: 0em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 0em; margin-top: 0em; padding-bottom: 0em; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;DIGEST-MD5.&lt;/em&gt;&lt;/span&gt;&amp;nbsp;&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id2986688&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;DIGEST-MD5&lt;/code&gt;&amp;nbsp;is a mandatory authentication method for LDAPv3 servers. While it is not as strong as public key systems or Kerberos authentication methods, it is preferred over plain text passwords and does protect against plain text attacks.&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;listitem&quot; style=&quot;line-height: 1.29em; margin-bottom: 0.4em; margin-top: 0em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 0.3em; margin-top: 0em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;Generic Security Services (GSS-API).&lt;/em&gt;&lt;/span&gt;&amp;nbsp;&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id2986724&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id2986732&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id2986740&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;Generic Security Services (GSS) is a security API that is the native way for UNIX-based operating systems to access and authenticate Kerberos services. GSS-API also supports session encryption, similar to TLS/SSL. This allows LDAP clients to authenticate with the server using Kerberos version 5 credentials (tickets) and to use network session encryption.&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 0.3em; margin-top: 0em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
For Directory Server to use GSS-API, Kerberos must be configured on the host machine. See&amp;nbsp;&lt;a class=&quot;xref&quot; href=&quot;http://docs.redhat.com/docs/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Configuring_Kerberos.html&quot; style=&quot;border-bottom-color: initial; border-bottom-style: dotted; border-bottom-width: 1px; color: #6699cc; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;Section&amp;nbsp;7.12, “Using Kerberos GSS-API with SASL”&lt;/a&gt;.&lt;/div&gt;
&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; line-height: 1.29em; margin-bottom: 1em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em; padding-right: 0em; padding-top: 0em; page-break-inside: avoid;&quot;&gt;
&lt;div class=&quot;admonition_header&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #597800; background-image: url(http://docs.redhat.com/docs/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Common_Content/images/green.png); background-origin: initial; background-position: 100% 0%; background-repeat: repeat no-repeat; clear: both; font-size: 1em; line-height: 1em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: -3.3em; padding-bottom: 0em; padding-left: 58px; padding-right: 0em; padding-top: 0em;&quot;&gt;
&lt;h2 style=&quot;background-color: transparent; color: #eeeeec; display: inline; font-size: 1.4em; height: 1.4em; line-height: 1.4em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0px; padding-left: 0em; padding-right: 0em; padding-top: 0px; page-break-after: avoid; page-break-inside: avoid;&quot;&gt;
NOTE&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;admonition&quot; style=&quot;background-color: #eeeeec; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-style: none; border-color: initial; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: none; border-width: initial; line-height: 1.29em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 1em; padding-left: 2em; padding-right: 1em; padding-top: 1.5em;&quot;&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em; padding-right: 0em; padding-top: 0em;&quot;&gt;
GSS-API and, thus, Kerberos are only supported on platforms that have GSS-API support. To use GSS-API, it may be necessary to install the Kerberos client libraries; any required Kerberos libraries will be available through the operating system vendor.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
CRAM-MD5, DIGEST-MD5, and GSS-API are all&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;shared secret&lt;/em&gt;&lt;/span&gt;&amp;nbsp;mechanisms. The server challenges the client attempting to bind with a&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;secret&lt;/em&gt;&lt;/span&gt;, such as a password, that depends on the mechanism. The user sends back the response required by the mechanism.&lt;/div&gt;
&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; line-height: 1.29em; margin-bottom: 1em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em; padding-right: 0em; padding-top: 0em; page-break-inside: avoid;&quot;&gt;
&lt;div class=&quot;admonition_header&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #597800; background-image: url(http://docs.redhat.com/docs/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Common_Content/images/green.png); background-origin: initial; background-position: 100% 0%; background-repeat: repeat no-repeat; clear: both; font-size: 1em; line-height: 1em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: -3.3em; padding-bottom: 0em; padding-left: 58px; padding-right: 0em; padding-top: 0em;&quot;&gt;
&lt;h2 style=&quot;background-color: transparent; color: #eeeeec; display: inline; font-size: 1.4em; height: 1.4em; line-height: 1.4em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0px; padding-left: 0em; padding-right: 0em; padding-top: 0px; page-break-after: avoid; page-break-inside: avoid;&quot;&gt;
NOTE&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;admonition&quot; style=&quot;background-color: #eeeeec; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-style: none; border-color: initial; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: none; border-width: initial; line-height: 1.29em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 1em; padding-left: 2em; padding-right: 1em; padding-top: 1.5em;&quot;&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em; padding-right: 0em; padding-top: 0em;&quot;&gt;
&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;DIGEST-MD5&lt;/code&gt;&amp;nbsp;requires clear text passwords. The Directory Server requires the clear text password in order to generate the shared secret. Passwords already stored as a hashed value, such as&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;SHA1&lt;/code&gt;,&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;cannot&lt;/em&gt;&lt;/span&gt;&amp;nbsp;be used with&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;DIGEST-MD5&lt;/code&gt;.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;about-krb&quot; style=&quot;background-color: white; font-family: &#39;liberation sans&#39;, &#39;Myriad &#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 12px; line-height: 15px; margin-top: 1em; padding-top: 1em; page-break-inside: auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot; style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;h3 class=&quot;title&quot; id=&quot;about-krb&quot; style=&quot;background-color: transparent; color: #a70000; font-size: 1.3em; line-height: 1.29em; margin-bottom: 0em; margin-top: 0em; padding-bottom: 0em; padding-top: 0em; page-break-after: avoid; page-break-inside: avoid;&quot;&gt;
7.12.2.&amp;nbsp;About Kerberos in Directory Server&lt;/h3&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
On Red Hat Enterprise Linux, the supported Kerberos libraries are MIT Kerberos version 5.&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
The concepts of Kerberos, as well as using and configuring Kerberos, are covered at the MIT Kerberos website,&lt;a href=&quot;http://web.mit.edu/Kerberos/&quot; style=&quot;border-bottom-color: initial; border-bottom-style: dotted; border-bottom-width: 1px; color: #6699cc; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;http://web.mit.edu/Kerberos/&lt;/a&gt;.&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;Configuring_Kerberos-Realms&quot; style=&quot;line-height: 1.29em; margin-top: 1em; padding-top: 1em; page-break-inside: auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot; style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;h4 class=&quot;title&quot; id=&quot;Configuring_Kerberos-Realms&quot; style=&quot;background-color: transparent; color: #a70000; font-size: 1.1em; line-height: 1.29em; margin-bottom: 0em; margin-top: 0em; padding-bottom: 0em; padding-top: 0em; page-break-after: avoid; page-break-inside: avoid;&quot;&gt;
7.12.2.1.&amp;nbsp;About Principals and Realms&lt;/h4&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id2986875&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id2986887&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
A&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;principal&lt;/em&gt;&lt;/span&gt;&amp;nbsp;is a user in the Kerberos environment. A&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;realm&lt;/em&gt;&lt;/span&gt;&amp;nbsp;is a set of users and the authentication methods for those users to access the realm. A realm resembles a fully-qualified domain name and can be distributed across either a single server or a single domain across multiple machines. A single server instance can also support multiple realms.&lt;/div&gt;
&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; line-height: 1.29em; margin-bottom: 1em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em; padding-right: 0em; padding-top: 0em; page-break-inside: avoid;&quot;&gt;
&lt;div class=&quot;admonition_header&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #597800; background-image: url(http://docs.redhat.com/docs/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Common_Content/images/green.png); background-origin: initial; background-position: 100% 0%; background-repeat: repeat no-repeat; clear: both; font-size: 1em; line-height: 1em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: -3.3em; padding-bottom: 0em; padding-left: 58px; padding-right: 0em; padding-top: 0em;&quot;&gt;
&lt;h2 style=&quot;background-color: transparent; color: #eeeeec; display: inline; font-size: 1.4em; height: 1.4em; line-height: 1.4em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0px; padding-left: 0em; padding-right: 0em; padding-top: 0px; page-break-after: avoid; page-break-inside: avoid;&quot;&gt;
NOTE&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;admonition&quot; style=&quot;background-color: #eeeeec; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-style: none; border-color: initial; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: none; border-width: initial; line-height: 1.29em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 1em; padding-left: 2em; padding-right: 1em; padding-top: 1.5em;&quot;&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em; padding-right: 0em; padding-top: 0em;&quot;&gt;
Kerberos realms are only supported for GSS-API authentication and encryption, not for DIGEST-MD5.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
Realms are used by the server to associate the DN of the client in the following form, which looks like an LDAP DN:&lt;/div&gt;
&lt;pre class=&quot;screen&quot; style=&quot;background-color: whitesmoke; border-bottom-color: rgb(170, 170, 170); border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-left-radius: 11px; border-top-right-radius: 11px; border-top-style: solid; border-top-width: 1px; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; line-height: 1.29em; margin-bottom: 0.3em; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em; page-break-inside: avoid; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;uid=&lt;em class=&quot;replaceable&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; word-wrap: break-word;&quot;&gt;user_name&lt;/code&gt;&lt;/em&gt;/[&lt;em class=&quot;replaceable&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; word-wrap: break-word;&quot;&gt;server_instance&lt;/code&gt;&lt;/em&gt;],cn=&lt;em class=&quot;replaceable&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; word-wrap: break-word;&quot;&gt;realm&lt;/code&gt;&lt;/em&gt;,cn=&lt;em class=&quot;replaceable&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; word-wrap: break-word;&quot;&gt;mechanism&lt;/code&gt;&lt;/em&gt;,cn=auth
&lt;/pre&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
For example, Mike Connors in the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;engineering&lt;/code&gt;&amp;nbsp;realm of the European division of&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;example.com&lt;/code&gt;&amp;nbsp;uses the following association to access a server in the US realm:&lt;/div&gt;
&lt;pre class=&quot;screen&quot; style=&quot;background-color: whitesmoke; border-bottom-color: rgb(170, 170, 170); border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-left-radius: 11px; border-top-right-radius: 11px; border-top-style: solid; border-top-width: 1px; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; line-height: 1.29em; margin-bottom: 0.3em; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em; page-break-inside: avoid; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;uid=mconnors/cn=Europe.example.com,cn=engineering,cn=gssapi,cn=auth&lt;/pre&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
Babara Jensen, from the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;accounting&lt;/code&gt;&amp;nbsp;realm of&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;US.example.com&lt;/code&gt;, does not have to specify a realm when to access a local server:&lt;/div&gt;
&lt;pre class=&quot;screen&quot; style=&quot;background-color: whitesmoke; border-bottom-color: rgb(170, 170, 170); border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-left-radius: 11px; border-top-right-radius: 11px; border-top-style: solid; border-top-width: 1px; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; line-height: 1.29em; margin-bottom: 0.3em; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em; page-break-inside: avoid; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;uid=bjensen,cn=accounting,cn=gssapi,cn=auth&lt;/pre&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
If realms are supported by the mechanism and the default realm is not used to authenticate to the server, then the&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;realm&lt;/em&gt;&lt;/span&gt;&amp;nbsp;must be specified in the Kerberos principal. Otherwise, the realm can be omitted.&lt;/div&gt;
&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; line-height: 1.29em; margin-bottom: 1em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em; padding-right: 0em; padding-top: 0em; page-break-inside: avoid;&quot;&gt;
&lt;div class=&quot;admonition_header&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #597800; background-image: url(http://docs.redhat.com/docs/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Common_Content/images/green.png); background-origin: initial; background-position: 100% 0%; background-repeat: repeat no-repeat; clear: both; font-size: 1em; line-height: 1em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: -3.3em; padding-bottom: 0em; padding-left: 58px; padding-right: 0em; padding-top: 0em;&quot;&gt;
&lt;h2 style=&quot;background-color: transparent; color: #eeeeec; display: inline; font-size: 1.4em; height: 1.4em; line-height: 1.4em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0px; padding-left: 0em; padding-right: 0em; padding-top: 0px; page-break-after: avoid; page-break-inside: avoid;&quot;&gt;
NOTE&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;admonition&quot; style=&quot;background-color: #eeeeec; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-style: none; border-color: initial; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: none; border-width: initial; line-height: 1.29em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 1em; padding-left: 2em; padding-right: 1em; padding-top: 1.5em;&quot;&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em; padding-right: 0em; padding-top: 0em;&quot;&gt;
Kerberos systems treat the Kerberos realm as the default realm; other systems default to the server.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;Configuring_Kerberos-Configuring_the_KDC_Server&quot; style=&quot;line-height: 1.29em; margin-top: 1em; padding-top: 1em; page-break-inside: auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot; style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;h4 class=&quot;title&quot; id=&quot;Configuring_Kerberos-Configuring_the_KDC_Server&quot; style=&quot;background-color: transparent; color: #a70000; font-size: 1.1em; line-height: 1.29em; margin-bottom: 0em; margin-top: 0em; padding-bottom: 0em; padding-top: 0em; page-break-after: avoid; page-break-inside: avoid;&quot;&gt;
7.12.2.2.&amp;nbsp;About the KDC Server and Keytabs&lt;/h4&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id2992689&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
Kerberos is a protocol which allows users or servers to authenticate to a server securely over an insecure connection. As with protocols like TLS and SSL, Kerberos generates and issues session keys which encrypt information. A Kerberos server, then, has two functions: as an authenticating server to validate clients and as a ticket granting server.&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
Because of this, the Kerberos server is called a&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;key distribution center&lt;/em&gt;&lt;/span&gt;&amp;nbsp;or KDC.&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
See the operating system documentation for information on installing and configuring a Kerberos server.&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
When a client authenticates to the Directory Server using GSS-API, the KDC sends a session key, followed by a ticket granting ticket (TGT). The TGT contains the client&#39;s ID and network address, a validity period, and the session key. The ticket and the ticket&#39;s lifetime are parameters in the Kerberos client and server configuration. In many systems, this TGT is issued to the client when the user first logs into the operating system.&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
Command-line utilities provided with the operating system — including&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;kinit&lt;/code&gt;,&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;klist&lt;/code&gt;, and&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;kdestroy&lt;/code&gt;&amp;nbsp;— can acquire, list, and destroy the TGT. These tools usually use a file called a&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;keytab&lt;/em&gt;&lt;/span&gt;&amp;nbsp;to the issued keys. This file is created by the Kerberos administrator by exporting the key from the KDC.&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
In order to respond to Kerberos operations, the Directory Server requires access to its own cryptographic key. The Kerberos key is written in the keytab file. The keytab gives the credentials that the Directory Server uses to authenticate to other servers. Directory Server assigns a keytab through the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;KRB5_KTNAME&lt;/code&gt;&amp;nbsp;environment variable in its startup script (&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;/etc/sysconfig/dirsrv&lt;/code&gt;):&lt;/div&gt;
&lt;pre class=&quot;screen&quot; style=&quot;background-color: whitesmoke; border-bottom-color: rgb(170, 170, 170); border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-left-radius: 11px; border-top-right-radius: 11px; border-top-style: solid; border-top-width: 1px; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; line-height: 1.29em; margin-bottom: 0.3em; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em; page-break-inside: avoid; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;KRB5_KTNAME=/etc/dirsrv/ds.keytab ; export KRB5_KTNAME&lt;/pre&gt;
&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; line-height: 1.29em; margin-bottom: 1em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em; padding-right: 0em; padding-top: 0em; page-break-inside: avoid;&quot;&gt;
&lt;div class=&quot;admonition_header&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #597800; background-image: url(http://docs.redhat.com/docs/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Common_Content/images/green.png); background-origin: initial; background-position: 100% 0%; background-repeat: repeat no-repeat; clear: both; font-size: 1em; line-height: 1em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: -3.3em; padding-bottom: 0em; padding-left: 58px; padding-right: 0em; padding-top: 0em;&quot;&gt;
&lt;h2 style=&quot;background-color: transparent; color: #eeeeec; display: inline; font-size: 1.4em; height: 1.4em; line-height: 1.4em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0px; padding-left: 0em; padding-right: 0em; padding-top: 0px; page-break-after: avoid; page-break-inside: avoid;&quot;&gt;
NOTE&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;admonition&quot; style=&quot;background-color: #eeeeec; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-style: none; border-color: initial; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: none; border-width: initial; line-height: 1.29em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 1em; padding-left: 2em; padding-right: 1em; padding-top: 1.5em;&quot;&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em; padding-right: 0em; padding-top: 0em;&quot;&gt;
The Directory Server must be able to access the host keytab and the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;krb5.conf&lt;/code&gt;&amp;nbsp;file for GSS-API authentication in SASL. For this host keytab file to be properly labeled in SELinux in the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;dirsrv_config_t&lt;/code&gt;context, the file must be in the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;/etc&lt;/code&gt;&amp;nbsp;directory.&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em; padding-right: 0em; padding-top: 0em;&quot;&gt;
Only the host keytab and&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;krb5.conf&lt;/code&gt;&amp;nbsp;must be in&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;/etc&lt;/code&gt;. The user key tabs can still be in any directory.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
When the Directory Server authenticates to the server, it is as if it is running a&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;kinit&lt;/code&gt;&amp;nbsp;command to initiate the connection:&lt;/div&gt;
&lt;pre class=&quot;screen&quot; style=&quot;background-color: whitesmoke; border-bottom-color: rgb(170, 170, 170); border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-left-radius: 11px; border-top-right-radius: 11px; border-top-style: solid; border-top-width: 1px; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; line-height: 1.29em; margin-bottom: 0.3em; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em; page-break-inside: avoid; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;kinit -k -t /etc/dirsrv/ds.keytab ldap/&lt;em class=&quot;replaceable&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; word-wrap: break-word;&quot;&gt;FQDN@REALM&lt;/code&gt;&lt;/em&gt;&lt;/pre&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
The Directory Server uses the service name&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;ldap&lt;/code&gt;. Its Kerberos principal is&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;ldap/&lt;/code&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;host-fqdn&lt;/em&gt;&lt;/span&gt;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;@&lt;/code&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;realm&lt;/em&gt;&lt;/span&gt;, such as&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;ldap/ldap.corp.example.com/EXAMPLE.COM&lt;/code&gt;. The&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;host-fqdn&lt;/em&gt;&lt;/span&gt;&amp;nbsp;must be the fully-qualified host and domain name, which can be resolved by all LDAP and Kerberos clients through both DNS and reverse DNS lookups. A key with this identity must be stored in the server&#39;s keytab in order for Kerberos to work.&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
Whatever server the Directory Server is authenticating to must have a SASL mapping that maps the Directory Server&#39;s principal (its user entry, usually something like&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;ldap/server.example.com@EXAMPLE.COM&lt;/code&gt;) to a real entry DN in the receiving server.&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
On Red Hat Enterprise Linux, the client-side Kerberos configuration is in the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;/etc/krb5.conf&lt;/code&gt;.&lt;/div&gt;
&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: white; background-image: none; background-origin: initial; border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; line-height: 1.29em; margin-bottom: 1em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em; padding-right: 0em; padding-top: 0em; page-break-inside: avoid;&quot;&gt;
&lt;div class=&quot;admonition_header&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #597800; background-image: url(http://docs.redhat.com/docs/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Common_Content/images/green.png); background-origin: initial; background-position: 100% 0%; background-repeat: repeat no-repeat; clear: both; font-size: 1em; line-height: 1em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: -3.3em; padding-bottom: 0em; padding-left: 58px; padding-right: 0em; padding-top: 0em;&quot;&gt;
&lt;h2 style=&quot;background-color: transparent; color: #eeeeec; display: inline; font-size: 1.4em; height: 1.4em; line-height: 1.4em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0px; padding-left: 0em; padding-right: 0em; padding-top: 0px; page-break-after: avoid; page-break-inside: avoid;&quot;&gt;
NOTE&lt;/h2&gt;
&lt;/div&gt;
&lt;div class=&quot;admonition&quot; style=&quot;background-color: #eeeeec; border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-bottom-style: none; border-color: initial; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-left-radius: 0px; border-top-right-radius: 0px; border-top-style: none; border-width: initial; line-height: 1.29em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 1em; padding-left: 2em; padding-right: 1em; padding-top: 1.5em;&quot;&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em; padding-right: 0em; padding-top: 0em;&quot;&gt;
The Directory Server must be able to access the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;krb5.conf&lt;/code&gt;&amp;nbsp;file for GSS-API authentication in SASL. For these files to be properly labeled in SELinux in the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;dirsrv_config_t&lt;/code&gt;&amp;nbsp;context, the file must be in the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;/etc&lt;/code&gt;directory.&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
For information on setting up the service key, see the Kerberos documentation.&lt;/div&gt;
&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id2992928&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
&lt;a class=&quot;xref&quot; href=&quot;http://docs.redhat.com/docs/en-US/Red_Hat_Directory_Server/9.0/html/Administration_Guide/Configuring_Kerberos.html#Configuring_Kerberos-Example&quot; style=&quot;border-bottom-color: initial; border-bottom-style: dotted; border-bottom-width: 1px; color: #6699cc; outline-color: initial; outline-style: none; outline-width: initial; text-decoration: none;&quot;&gt;Example&amp;nbsp;7.4, “KDC Server Configuration”&lt;/a&gt;&amp;nbsp;shows a KDC server configured with the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;company.example.com&lt;/code&gt;&amp;nbsp;realm.&lt;/div&gt;
&lt;div class=&quot;example&quot; id=&quot;Configuring_Kerberos-Example&quot; style=&quot;border-bottom-left-radius: 0px; border-bottom-right-radius: 0px; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 3px; border-top-left-radius: 0px; border-top-right-radius: 0px; line-height: 1.29em; padding-bottom: 0.1em; padding-top: 1em; page-break-inside: avoid;&quot;&gt;
&lt;h6 style=&quot;background-color: transparent; color: #a70000; font-size: 1em; line-height: 1.29em; margin-bottom: 0em; margin-top: 0em; padding-left: 10px; page-break-after: avoid; page-break-inside: avoid;&quot;&gt;
Example&amp;nbsp;7.4.&amp;nbsp;KDC Server Configuration&lt;/h6&gt;
&lt;div class=&quot;example-contents&quot; style=&quot;line-height: 1.29em; padding-left: 10px; padding-top: 0px;&quot;&gt;
&lt;pre class=&quot;screen&quot; style=&quot;background-color: whitesmoke; border-bottom-color: rgb(170, 170, 170); border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-left-radius: 11px; border-top-right-radius: 11px; border-top-style: solid; border-top-width: 1px; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; line-height: 1.29em; margin-bottom: 0.3em; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em; page-break-inside: avoid; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;[libdefaults] 
     ticket_lifetime = 24000 
     default_realm = COMPANY.EXAMPLE.COM 
     dns_lookup_realm = false 
     dns_lookup_kdc = false 
     ccache_type = 1 
     forwardable = true 
     proxiable = true 
     default_tgs_enctypes = des3-hmac-sha1 des-cbc-crc 
     default_tkt_enctypes = des3-hmac-sha1 des-cbc-crc 
     permitted_enctypes = des3-hmac-sha1 des-cbc-crc 
[realms] 
  COMPANY.EXAMPLE.COM = { 
     kdc = kdcserver.company.example.com:88 
     admin_server =adminserver.company.example.com:749 
     default_domain = company.example.com 
  } 
[appdefaults] 
  pam = { 
     debug = true 
     ticket_lifetime = 36000 
     renew_lifetime = 36000 
     forwardable = true 
     krb4_convert = false 
  } 
[logging] 
  default = FILE:/var/krb5/kdc.log 
  kdc = FILE:/var/krb5/kdc.log 
  admin_server = FILE:/var/log/kadmind.log&lt;/pre&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;SASL-Configuring_SASL-Auth-startup&quot; style=&quot;background-color: white; font-family: &#39;liberation sans&#39;, &#39;Myriad &#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 12px; line-height: 15px; margin-top: 1em; padding-top: 1em; page-break-inside: auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot; style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;h3 class=&quot;title&quot; id=&quot;SASL-Configuring_SASL-Auth-startup&quot; style=&quot;background-color: transparent; color: #a70000; font-size: 1.3em; line-height: 1.29em; margin-bottom: 0em; margin-top: 0em; padding-bottom: 0em; padding-top: 0em; page-break-after: avoid; page-break-inside: avoid;&quot;&gt;
7.12.3.&amp;nbsp;Configuring SASL Authentication at Directory Server Startup&lt;/h3&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id3101125&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id3101137&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;&quot; id=&quot;id3101150&quot; style=&quot;outline-color: initial; outline-style: none; outline-width: initial;&quot;&gt;&lt;/a&gt;&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
SASL GSS-API authentication has to be activated in Directory Server so that Kerberos tickets can be used for authentication. This is done by supplying a system configuration file for the init scripts to use which identifies the variable to set the keytab file location. When the init script runs at Directory Server startup, SASL authentication is then immediately active.&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
The default SASL configuration file is in&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;/etc/sysconfig/dirsrv&lt;/code&gt;.&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
If there are multiple Directory Server instances and not all of them will use SASL authentication, then there can be instance-specific configuration files created in that directory named&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;dirsrv-&lt;/code&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;instance&lt;/em&gt;&lt;/span&gt;. For example,&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;dirsrv-example&lt;/code&gt;. The default&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;dirsrv&lt;/code&gt;&amp;nbsp;file can be used if there is a single instance on a host.&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
To enable SASL authentication, uncomment the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;KRB5_KTNAME&lt;/code&gt;&amp;nbsp;line in the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;/etc/sysconfig/dirsrv&lt;/code&gt;&amp;nbsp;(or instance-specific) file, and set the keytab location for the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;KRB5_KTNAME&lt;/code&gt;&amp;nbsp;variable. For example:&lt;/div&gt;
&lt;pre class=&quot;screen&quot; style=&quot;background-color: whitesmoke; border-bottom-color: rgb(170, 170, 170); border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-left-radius: 11px; border-top-right-radius: 11px; border-top-style: solid; border-top-width: 1px; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; line-height: 1.29em; margin-bottom: 0.3em; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em; page-break-inside: avoid; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;# In order to use SASL/GSSAPI the directory
# server needs to know where to find its keytab
# file - uncomment the following line and set
# the path and filename appropriately
KRB5_KTNAME=&lt;strong class=&quot;userinput&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; word-wrap: break-word;&quot;&gt;/etc/dirsrv/krb5.keytab&lt;/code&gt;&lt;/strong&gt; ; export KRB5_KTNAME&lt;/pre&gt;
&lt;/div&gt;
&lt;div class=&quot;section&quot; id=&quot;external-keytab&quot; style=&quot;background-color: white; font-family: &#39;liberation sans&#39;, &#39;Myriad &#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 12px; line-height: 15px; margin-top: 1em; padding-top: 1em; page-break-inside: auto;&quot;&gt;
&lt;div class=&quot;titlepage&quot; style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;div style=&quot;line-height: 1.29em; padding-top: 0px;&quot;&gt;
&lt;h3 class=&quot;title&quot; id=&quot;external-keytab&quot; style=&quot;background-color: transparent; color: #a70000; font-size: 1.3em; line-height: 1.29em; margin-bottom: 0em; margin-top: 0em; padding-bottom: 0em; padding-top: 0em; page-break-after: avoid; page-break-inside: avoid;&quot;&gt;
7.12.4.&amp;nbsp;Using an External Keytab&lt;/h3&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
A default keytab file is specified in the Directory Server start script and is used by the Directory Server automatically. However, it is possible to specify a different keytab file, referencing a different principal, by manually running&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;kinit&lt;/code&gt;&amp;nbsp;and then specifying the cached credentials.&lt;/div&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
To specify the cached&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;kinit&lt;/code&gt;&amp;nbsp;credentials, add the principal as the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;KRB5CCNAME&lt;/code&gt;&amp;nbsp;line in&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;/etc/sysconfig/dirsrv&lt;/code&gt;:&lt;/div&gt;
&lt;pre class=&quot;screen&quot; style=&quot;background-color: whitesmoke; border-bottom-color: rgb(170, 170, 170); border-bottom-left-radius: 11px; border-bottom-right-radius: 11px; border-bottom-style: solid; border-bottom-width: 1px; border-image: initial; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-left-radius: 11px; border-top-right-radius: 11px; border-top-style: solid; border-top-width: 1px; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; line-height: 1.29em; margin-bottom: 0.3em; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em; page-break-inside: avoid; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;KRB5CCNAME=/tmp/krb_ccache ; export KRB5CCNAME
kinit &lt;em class=&quot;replaceable&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; word-wrap: break-word;&quot;&gt;principalname&lt;/code&gt;&lt;/em&gt; &amp;nbsp; 
# how to provide the password here is left as an exercise
# or kinit -k -t /path/to/file.keytab principalname
chown serveruid:serveruid $KRB5CCNAME 
# so the server process can read it
# start a cred renewal &quot;daemon&quot;
( while XXX ; do sleep NNN ; kinit ..... ; done ) &amp;amp;
# the exit condition XXX and sleep interval NNN are left as an exercise
...&lt;/pre&gt;
&lt;div class=&quot;para&quot; style=&quot;line-height: 1.29em; margin-bottom: 1em; margin-top: 0.3em; padding-bottom: 0px; padding-top: 0px;&quot;&gt;
The server has no way to renew these cached credentials. The&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-weight: bold; white-space: pre-wrap; word-wrap: break-word;&quot;&gt;kinit&lt;/code&gt;&amp;nbsp;process must be run manually, external to Directory Server processes, or the server could begin receiving SASL bind failures when the server attempts to use expired credentials.&lt;/div&gt;
&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/9101300347207129346/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/03/authenticate-to-directory-server-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/9101300347207129346'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/9101300347207129346'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2012/03/authenticate-to-directory-server-using.html' title='Authenticate to the Directory Server using kerberos'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-235752537152787670</id><published>2011-11-13T04:09:00.000-08:00</published><updated>2011-11-13T04:09:54.585-08:00</updated><title type='text'>Import user information from an LDIF file</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;liberation sans&#39;, &#39;Myriad &#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, verdana, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;titlepage&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;h2 class=&quot;title&quot; style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.6em; line-height: 24px; margin-top: 0em;&quot;&gt;Importing Data&lt;/h2&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id2991822&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id2910828&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id3051118&quot;&gt;&lt;/a&gt;Directory Server provides three methods for importing data:&lt;br /&gt;
&lt;div class=&quot;itemizedlist&quot; style=&quot;margin-top: 0.6em;&quot;&gt;&lt;ul style=&quot;list-style-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/dot.png); list-style-type: circle; padding-left: 1.6em;&quot;&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;Import from the Directory Server Console.&lt;/em&gt;&lt;/span&gt;&amp;nbsp;Use the Directory Server Console to append data to all of the databases, including database links.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;Initialize databases.&lt;/em&gt;&lt;/span&gt;&amp;nbsp;The Directory Server Console can import data to one database; this method overwrites any data contained by the database.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;Importing data from the command-line.&lt;/em&gt;&lt;/span&gt;&amp;nbsp;Directory Server provides command-line utilities to import data.&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #555753; background-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/note.png); background-origin: initial; background-position: 10px 10px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(68, 68, 68); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(68, 68, 68); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(68, 68, 68); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(68, 68, 68); border-top-style: solid; border-top-width: 1px; color: white; margin-bottom: 1.5em; margin-top: 0.5em; padding-bottom: 20px; padding-left: 1em; padding-right: 1em; padding-top: 1em;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: white; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; height: 32px; line-height: 20px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;NOTE&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;The LDIF files used for import operations must use UTF-8 character set encoding. Import operations do not convert data from local character set encoding to UTF-8 characterset encoding.&lt;/div&gt;&lt;/div&gt;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Populating_Directory_Databases-Importing_Data.html#tab.Import_Method_Comparison&quot; style=&quot;color: #0066cc;&quot; title=&quot;Table 4.1. Import Method Comparison&quot;&gt;Table&amp;nbsp;4.1, “Import Method Comparison”&lt;/a&gt;&amp;nbsp;describes the differences between an import and initializing databases.&lt;br /&gt;
&lt;div class=&quot;table&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;tab.Import_Method_Comparison&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;table-contents&quot;&gt;&lt;table border=&quot;1&quot; style=&quot;border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: solid; border-top-width: 1px; width: 659px;&quot; summary=&quot;Import Method Comparison&quot;&gt;&lt;colgroup&gt;&lt;col&gt;&lt;/col&gt;&lt;col&gt;&lt;/col&gt;&lt;col&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;thead&gt;
&lt;tr&gt;&lt;th style=&quot;background-color: #990000; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: white; padding-bottom: 0.3em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.3em; text-align: left;&quot;&gt;Action&lt;/th&gt;&lt;th style=&quot;background-color: #990000; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: white; padding-bottom: 0.3em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.3em; text-align: left;&quot;&gt;Import&lt;/th&gt;&lt;th style=&quot;background-color: #990000; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: white; padding-bottom: 0.3em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.3em; text-align: left;&quot;&gt;Initialize Database&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Overwrites database&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;No&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Yes&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;LDAP operations&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Add, modify, delete&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Add only&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Performance&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;More time-consuming&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Fast&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Partition speciality&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Works on all partitions&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Local partitions only&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Response to server failure&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Best effort (all changes made up to the point of the failure remain)&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Atomic (all changes are lost after a failure)&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;LDIF file location&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Local to Console&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Local to Console or local to server&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Imports configuration information (&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;cn=config&lt;/code&gt;)&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Yes&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;No&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h6 style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 10pt; line-height: 16px; margin-top: 0em;&quot; xmlns=&quot;&quot;&gt;Table&amp;nbsp;4.1.&amp;nbsp;Import Method Comparison&lt;/h6&gt;&lt;/div&gt;&lt;br /&gt;
The following sections describe importing data:&lt;br /&gt;
&lt;div class=&quot;itemizedlist&quot; style=&quot;margin-top: 0.6em;&quot;&gt;&lt;ul style=&quot;list-style-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/dot.png); list-style-type: circle; padding-left: 1.6em;&quot;&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Populating_Directory_Databases-Importing_Data.html#Importing_Data-Importing_a_Database_from_the_Console&quot; style=&quot;color: #0066cc;&quot; title=&quot;4.1.1. Importing a Database from the Console&quot;&gt;Section&amp;nbsp;4.1.1, “Importing a Database from the Console”&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Populating_Directory_Databases-Importing_Data.html#Importing_Data-Initializing_a_Database_from_the_Console&quot; style=&quot;color: #0066cc;&quot; title=&quot;4.1.2. Initializing a Database from the Console&quot;&gt;Section&amp;nbsp;4.1.2, “Initializing a Database from the Console”&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Populating_Directory_Databases-Importing_Data.html#Importing_Data-Importing_from_the_Command_Line&quot; style=&quot;color: #0066cc;&quot; title=&quot;4.1.3. Importing from the Command-Line&quot;&gt;Section&amp;nbsp;4.1.3, “Importing from the Command-Line”&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;caution&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #555753; background-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/caution.png); background-origin: initial; background-position: 10px 10px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(68, 68, 68); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(68, 68, 68); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(68, 68, 68); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(68, 68, 68); border-top-style: solid; border-top-width: 1px; color: white; margin-bottom: 1.5em; margin-top: 0.5em; padding-bottom: 20px; padding-left: 1em; padding-right: 1em; padding-top: 1em;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: white; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; height: 32px; line-height: 20px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;CAUTION&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;All imported LDIF files must also contain the root suffix.&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;section&quot; lang=&quot;en-US&quot; style=&quot;padding-top: 2em;&quot; xml:lang=&quot;en-US&quot;&gt;&lt;div class=&quot;titlepage&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;h3 class=&quot;title&quot; style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; line-height: 20px; margin-top: 0em; padding-bottom: 0em; padding-top: 0em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;Importing_Data-Importing_a_Database_from_the_Console&quot;&gt;&lt;/a&gt;Importing a Database from the Console&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id3013070&quot;&gt;&lt;/a&gt;When performing an import operation from the Directory Server Console, an&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldapmodify&lt;/code&gt;&amp;nbsp;operation is executed to append data, as well as to modify and delete entries. The operation is performed on all of the databases managed by the Directory Server and on remote databases to which the Directory Server has a configured database link.&lt;br /&gt;
You must be logged in as the Directory Manager in order to perform an import.&lt;br /&gt;
To import data from the Directory Server Console, do the following:&lt;br /&gt;
&lt;div class=&quot;orderedlist&quot;&gt;&lt;ol&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the Directory Server Console, select the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Tasks&lt;/strong&gt;&amp;nbsp;tab. Scroll to the bottom of the screen, and select&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Import Database&lt;/strong&gt;.&lt;/div&gt;Alternatively, import by going to the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Configuration&lt;/strong&gt;&amp;nbsp;tab and selecting&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Import&lt;/strong&gt;&amp;nbsp;from the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Console&lt;/strong&gt;&amp;nbsp;menu.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Import Database&lt;/strong&gt;&amp;nbsp;dialog box, enter the full path to the LDIF file to import in the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;LDIF file&lt;/strong&gt;&amp;nbsp;field, or click&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Browse&lt;/strong&gt;to select the file to import.&lt;/div&gt;If the Console is running on a machine remote to the directory, the field name appears as&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;LDIF file (on the machine running the Console)&lt;/strong&gt;. When browsing for a file, you are not browsing the current directory for the Directory Server host, but the filesystem of the machine running the Console.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Options&lt;/strong&gt;&amp;nbsp;box, select one or both of the following options:&lt;/div&gt;&lt;div class=&quot;itemizedlist&quot; style=&quot;margin-top: 0.6em;&quot;&gt;&lt;ul style=&quot;list-style-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/dot.png); list-style-type: circle; padding-left: 1.6em;&quot;&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;Add Only.&lt;/em&gt;&lt;/span&gt;&amp;nbsp;The LDIF file may contain modify and delete instructions in addition to the default add instructions. For the server to ignore operations other than add, select the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Add only&lt;/strong&gt;&amp;nbsp;checkbox.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;Continue on Error.&lt;/em&gt;&lt;/span&gt;&amp;nbsp;Select the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Continue on error&lt;/strong&gt;&amp;nbsp;checkbox for the server to continue with the import even if errors occur. For example, use this option to import an LDIF file that contains some entries that already exist in the database in addition to new ones. The server notes existing entries in the rejects file while adding all new entries.&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;File for Rejects&lt;/strong&gt;&amp;nbsp;field, enter the full path to the file in which the server is to record all entries it cannot import, or click&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Browse&lt;/strong&gt;&amp;nbsp;to select the file which will contain the rejects.&lt;/div&gt;A reject is an entry which cannot be imported into the database; for example, the server cannot import an entry that already exists in the database or an entry that has no parent object. The Console will write the error message sent by the server to the rejects file.&lt;br /&gt;
Leaving this field blank means the server will not record rejected entries.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Click&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;OK&lt;/strong&gt;.&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;The server performs the import and also creates indexes.&lt;br /&gt;
&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #555753; background-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/note.png); background-origin: initial; background-position: 10px 10px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(68, 68, 68); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(68, 68, 68); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(68, 68, 68); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(68, 68, 68); border-top-style: solid; border-top-width: 1px; color: white; margin-bottom: 1.5em; margin-top: 0.5em; padding-bottom: 20px; padding-left: 1em; padding-right: 1em; padding-top: 1em;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: white; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; height: 32px; line-height: 20px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;NOTE&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;Trailing spaces are dropped during a remote Console import but are preserved during both local Console or&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldif2db&lt;/code&gt;&amp;nbsp;import operations.&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;section&quot; lang=&quot;en-US&quot; style=&quot;padding-top: 2em;&quot; xml:lang=&quot;en-US&quot;&gt;&lt;div class=&quot;titlepage&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;h3 class=&quot;title&quot; style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; line-height: 20px; margin-top: 0em; padding-bottom: 0em; padding-top: 0em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;Importing_Data-Initializing_a_Database_from_the_Console&quot;&gt;&lt;/a&gt;Initializing a Database from the Console&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id3030314&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id3030324&quot;&gt;&lt;/a&gt;The existing data in a database can be overwritten by initializing databases.&lt;br /&gt;
You must be logged in as the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Directory Manager&lt;/code&gt;&amp;nbsp;in order to initialize a database because an LDIF file that contains a root entry cannot be imported into a database except as the Directory Manager (root DN). Only the Directory Manager has access to the root entry, such as&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;dc=example,dc=com&lt;/code&gt;.&lt;br /&gt;
&lt;div class=&quot;caution&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #555753; background-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/caution.png); background-origin: initial; background-position: 10px 10px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(68, 68, 68); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(68, 68, 68); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(68, 68, 68); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(68, 68, 68); border-top-style: solid; border-top-width: 1px; color: white; margin-bottom: 1.5em; margin-top: 0.5em; padding-bottom: 20px; padding-left: 1em; padding-right: 1em; padding-top: 1em;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: white; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; height: 32px; line-height: 20px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;CAUTION&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;When initializing databases from an LDIF file, be careful not to overwrite the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;o=NetscapeRoot&lt;/code&gt;&amp;nbsp;suffix unless you are restoring data. Otherwise, initializing the database deletes information and may require re-installing the Directory Server.&lt;/div&gt;&lt;/div&gt;To initialize a database using the Directory Server Console, do the following:&lt;br /&gt;
&lt;div class=&quot;orderedlist&quot;&gt;&lt;ol&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Select the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Configuration&lt;/strong&gt;&amp;nbsp;tab.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Expand the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Data&lt;/strong&gt;&amp;nbsp;tree in the left navigation pane. Expand the suffix of the database to initialize, then click the database itself.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Right-click the database, and select&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Initialize Database&lt;/strong&gt;.&lt;/div&gt;Alterntatively, select&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Initialize Database&lt;/strong&gt;&amp;nbsp;from the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Object&lt;/strong&gt;&amp;nbsp;menu.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;LDIF file&lt;/strong&gt;&amp;nbsp;field, enter the full path to the LDIF file to import, or click&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Browse&lt;/strong&gt;.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;If the Console is running from a machine local to the file being imported, click&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;OK&lt;/strong&gt;&amp;nbsp;and proceed with the import immediately. If the Console is running from a machine remote to the server containing the LDIF file, select one of the following options, then click&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;OK&lt;/strong&gt;:&lt;/div&gt;&lt;div class=&quot;itemizedlist&quot; style=&quot;margin-top: 0.6em;&quot;&gt;&lt;ul style=&quot;list-style-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/dot.png); list-style-type: circle; padding-left: 1.6em;&quot;&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;From local machine.&lt;/em&gt;&lt;/span&gt;&amp;nbsp;Indicates that the LDIF file is located on the local machine.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;From server machine.&lt;/em&gt;&lt;/span&gt;&amp;nbsp;Indicates that the LDIF file is located on a remote server.&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;The default LDIF directory is&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;/var/lib/dirsrv/slapd-&lt;em class=&quot;replaceable&quot; style=&quot;font-weight: bold;&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; white-space: nowrap;&quot;&gt;instance_name&lt;/code&gt;&lt;/em&gt;/ldif&lt;/code&gt;.&amp;nbsp;&lt;sup style=&quot;color: #999999; padding-bottom: 0em; padding-left: 0em; padding-right: 0.3em; padding-top: 0em;&quot;&gt;[&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Populating_Directory_Databases-Importing_Data.html#ftn.populatingdb-fileloc&quot; id=&quot;populatingdb-fileloc&quot; style=&quot;color: #0066cc;&quot;&gt;3&lt;/a&gt;]&lt;/sup&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;section&quot; lang=&quot;en-US&quot; style=&quot;padding-top: 2em;&quot; xml:lang=&quot;en-US&quot;&gt;&lt;div class=&quot;titlepage&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;h3 class=&quot;title&quot; style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; line-height: 20px; margin-top: 0em; padding-bottom: 0em; padding-top: 0em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;Importing_Data-Importing_from_the_Command_Line&quot;&gt;&lt;/a&gt;Importing from the Command-Line&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;There are three methods for importing data through the command-line:&lt;br /&gt;
&lt;div class=&quot;itemizedlist&quot; style=&quot;margin-top: 0.6em;&quot;&gt;&lt;ul style=&quot;list-style-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/dot.png); list-style-type: circle; padding-left: 1.6em;&quot;&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;Using ldif2db.&lt;/em&gt;&lt;/span&gt;&amp;nbsp;This import method overwrites the contents of the database and requires the server to be stopped; see&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Populating_Directory_Databases-Importing_Data.html#Importing_from_the_Command_Line-Importing_Using_the_ldif2db_Command_Line_Script&quot; style=&quot;color: #0066cc;&quot; title=&quot;4.1.3.1. Importing Using the ldif2db Command-Line Script&quot;&gt;Section&amp;nbsp;4.1.3.1, “Importing Using the ldif2db Command-Line Script”&lt;/a&gt;.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;Using ldif2db.pl.&lt;/em&gt;&lt;/span&gt;&amp;nbsp;This import method overwrites the contents of the database while the server is still running; see&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Populating_Directory_Databases-Importing_Data.html#Importing_from_the_Command_Line-Importing_Using_the_ldif2db.pl_Perl_Script&quot; style=&quot;color: #0066cc;&quot; title=&quot;4.1.3.2. Importing Using the ldif2db.pl Perl Script&quot;&gt;Section&amp;nbsp;4.1.3.2, “Importing Using the ldif2db.pl Perl Script”&lt;/a&gt;.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;Using ldif2ldap.&lt;/em&gt;&lt;/span&gt;&amp;nbsp;This method appends the LDIF file through LDAP. This method is useful to append data to all of the databases; see&amp;nbsp;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Populating_Directory_Databases-Importing_Data.html#Importing_from_the_Command_Line-Importing_Using_the_ldif2ldap_Command_Line_Script&quot; style=&quot;color: #0066cc;&quot; title=&quot;4.1.3.3. Importing Using the ldif2ldap Command-Line Script&quot;&gt;Section&amp;nbsp;4.1.3.3, “Importing Using the ldif2ldap Command-Line Script”&lt;/a&gt;.&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #555753; background-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/note.png); background-origin: initial; background-position: 10px 10px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(68, 68, 68); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(68, 68, 68); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(68, 68, 68); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(68, 68, 68); border-top-style: solid; border-top-width: 1px; color: white; margin-bottom: 1.5em; margin-top: 0.5em; padding-bottom: 20px; padding-left: 1em; padding-right: 1em; padding-top: 1em;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: white; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; height: 32px; line-height: 20px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;NOTE&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;To import a database that has been encrypted, use the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;-E&lt;/code&gt;&amp;nbsp;option with the script. See&amp;nbsp;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Configuring_Directory_Databases-Creating_and_Maintaining_Databases.html#Database_Encryption-Exporting_and_Importing_an_Encrypted_Database&quot; style=&quot;color: #f7f2d0;&quot; title=&quot;3.2.3.5. Exporting and Importing an Encrypted Database&quot;&gt;Section&amp;nbsp;3.2.3.5, “Exporting and Importing an Encrypted Database”&lt;/a&gt;&amp;nbsp;for more information.&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;section&quot; lang=&quot;en-US&quot; style=&quot;padding-top: 2em;&quot; xml:lang=&quot;en-US&quot;&gt;&lt;div class=&quot;titlepage&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;h4 class=&quot;title&quot; style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.1em; line-height: 16px; margin-top: 0em; padding-bottom: 0em; padding-top: 0em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;Importing_from_the_Command_Line-Importing_Using_the_ldif2db_Command_Line_Script&quot;&gt;&lt;/a&gt;Importing Using the ldif2db Command-Line Script&lt;/h4&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id2994634&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id2994640&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id2994652&quot;&gt;&lt;/a&gt;The&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldif2db&lt;/code&gt;&amp;nbsp;script overwrites the data in the specified database. Also, the script requires that the Directory Server be stopped when the import begins.&lt;br /&gt;
By default, the script first saves and then merges any existing&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;o=NetscapeRoot&lt;/code&gt;&amp;nbsp;configuration information with the&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;o=NetscapeRoot&lt;/code&gt;&amp;nbsp;configuration information in the files being imported.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;caution&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #555753; background-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/caution.png); background-origin: initial; background-position: 10px 10px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(68, 68, 68); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(68, 68, 68); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(68, 68, 68); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(68, 68, 68); border-top-style: solid; border-top-width: 1px; color: white; margin-bottom: 1.5em; margin-top: 0.5em; padding-bottom: 20px; padding-left: 1em; padding-right: 1em; padding-top: 1em;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: white; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; height: 32px; line-height: 20px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;CAUTION&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;This script overwrites the data in the database.&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
To import LDIF, do the following:&lt;br /&gt;
&lt;div class=&quot;orderedlist&quot;&gt;&lt;ol&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Stop the server.&amp;nbsp;&lt;sup style=&quot;color: #999999; padding-bottom: 0em; padding-left: 0em; padding-right: 0.3em; padding-top: 0em;&quot;&gt;[&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Populating_Directory_Databases-Importing_Data.html#ftn.populatingdb-starting&quot; id=&quot;populatingdb-starting&quot; style=&quot;color: #0066cc;&quot;&gt;4&lt;/a&gt;]&lt;/sup&gt;&lt;/div&gt;&lt;pre class=&quot;screen&quot; style=&quot;background-color: #ede7c8; color: #333333; display: block; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em;&quot;&gt;service dirsrv stop &lt;em class=&quot;replaceable&quot; style=&quot;color: #444444; font-weight: bold;&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; white-space: nowrap;&quot;&gt;instance&lt;/code&gt;&lt;/em&gt;
&lt;/pre&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Open the Directory Server instance directory.&lt;/div&gt;&lt;pre class=&quot;screen&quot; style=&quot;background-color: #ede7c8; color: #333333; display: block; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em;&quot;&gt;cd /usr/lib/dirsrv/slapd-&lt;em class=&quot;replaceable&quot; style=&quot;color: #444444; font-weight: bold;&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; white-space: nowrap;&quot;&gt;instance_name&lt;/code&gt;&lt;/em&gt;
&lt;/pre&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Run the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldif2db&lt;/code&gt;&amp;nbsp;command-line script.&lt;/div&gt;&lt;pre class=&quot;screen&quot; style=&quot;background-color: #ede7c8; color: #333333; display: block; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em;&quot;&gt;ldif2db -n Database1 -i /var/lib/dirsrv/slapd-&lt;em class=&quot;replaceable&quot; style=&quot;color: #444444; font-weight: bold;&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; white-space: nowrap;&quot;&gt;instance_name&lt;/code&gt;&lt;/em&gt;/ldif/demo.ldif
 -i /var/lib/dirsrv/slapd-&lt;em class=&quot;replaceable&quot; style=&quot;color: #444444; font-weight: bold;&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; white-space: nowrap;&quot;&gt;instance_name&lt;/code&gt;&lt;/em&gt;/ldif/demo2.ldif
&lt;/pre&gt;For more information about using this script, see the&amp;nbsp;&lt;em class=&quot;citetitle&quot; style=&quot;font-weight: bold;&quot;&gt;Directory Server Configuration, Command, and File Reference&lt;/em&gt;.&lt;br /&gt;
&lt;div class=&quot;caution&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #555753; background-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/caution.png); background-origin: initial; background-position: 10px 10px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(68, 68, 68); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(68, 68, 68); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(68, 68, 68); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(68, 68, 68); border-top-style: solid; border-top-width: 1px; color: white; margin-bottom: 1.5em; margin-top: 0.5em; padding-bottom: 20px; padding-left: 1em; padding-right: 1em; padding-top: 1em;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: white; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; height: 32px; line-height: 20px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;CAUTION&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;If the database specified in the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;-n&lt;/code&gt;&amp;nbsp;option does not correspond with the suffix contained by the LDIF file, all of the data contained by the database is deleted, and the import fails. Make sure that the database name is not misspelled.&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div class=&quot;table&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id3105918&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;table-contents&quot;&gt;&lt;table border=&quot;1&quot; style=&quot;border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: solid; border-top-width: 1px; width: 659px;&quot; summary=&quot;ldif2db Parameters&quot;&gt;&lt;colgroup&gt;&lt;col&gt;&lt;/col&gt;&lt;col&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;thead&gt;
&lt;tr&gt;&lt;th style=&quot;background-color: #990000; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: white; padding-bottom: 0.3em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.3em; text-align: left;&quot;&gt;Option&lt;/th&gt;&lt;th style=&quot;background-color: #990000; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: white; padding-bottom: 0.3em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.3em; text-align: left;&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;-i&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Specifies the full path name of the LDIF files to be imported. This option is required. To import more than one LDIF file at a time, use multiple&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;-i&lt;/code&gt;&amp;nbsp;arguments. When multiple files are imported, the server imports the LDIF files in the order which they are specified from the command-line.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;-n&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Specifies the name of the database to which to import the data.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h6 style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 10pt; line-height: 16px; margin-top: 0em;&quot; xmlns=&quot;&quot;&gt;Table&amp;nbsp;4.2.&amp;nbsp;ldif2db Parameters&lt;/h6&gt;&lt;/div&gt;&lt;br /&gt;
For more information about using this script, see the&amp;nbsp;&lt;em class=&quot;citetitle&quot; style=&quot;font-weight: bold;&quot;&gt;Directory Server Configuration, Command, and File Reference&lt;/em&gt;.&lt;/div&gt;&lt;div class=&quot;section&quot; lang=&quot;en-US&quot; style=&quot;padding-top: 2em;&quot; xml:lang=&quot;en-US&quot;&gt;&lt;div class=&quot;titlepage&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;h4 class=&quot;title&quot; style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.1em; line-height: 16px; margin-top: 0em; padding-bottom: 0em; padding-top: 0em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;Importing_from_the_Command_Line-Importing_Using_the_ldif2db.pl_Perl_Script&quot;&gt;&lt;/a&gt;4.1.3.2.&amp;nbsp;Importing Using the ldif2db.pl Perl Script&lt;/h4&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id3105997&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id3106010&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id3106023&quot;&gt;&lt;/a&gt;As with the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldif2db&lt;/code&gt;&amp;nbsp;script, the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldif2db.pl&lt;/code&gt;&amp;nbsp;script overwrites the data in the specified database. This script requires the server to be running in order to perform the import.&lt;br /&gt;
&lt;br /&gt;
&lt;div class=&quot;caution&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #555753; background-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/caution.png); background-origin: initial; background-position: 10px 10px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(68, 68, 68); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(68, 68, 68); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(68, 68, 68); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(68, 68, 68); border-top-style: solid; border-top-width: 1px; color: white; margin-bottom: 1.5em; margin-top: 0.5em; padding-bottom: 20px; padding-left: 1em; padding-right: 1em; padding-top: 1em;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: white; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; height: 32px; line-height: 20px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;CAUTION&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;This script overwrites the data in the database.&lt;/div&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div class=&quot;orderedlist&quot;&gt;&lt;ol&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Open the Directory Server instance directory.&lt;/div&gt;&lt;pre class=&quot;screen&quot; style=&quot;background-color: #ede7c8; color: #333333; display: block; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em;&quot;&gt;cd /usr/lib/dirsrv/slapd-&lt;em class=&quot;replaceable&quot; style=&quot;color: #444444; font-weight: bold;&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; white-space: nowrap;&quot;&gt;instance_name&lt;/code&gt;&lt;/em&gt;
&lt;/pre&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Run the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldif2db&lt;/code&gt;&amp;nbsp;script.&lt;/div&gt;&lt;pre class=&quot;screen&quot; style=&quot;background-color: #ede7c8; color: #333333; display: block; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em;&quot;&gt;ldif2db -D &quot;cn=Directory Manager&quot; -w secretpwd 
    -i /var/lib/dirsrv/slapd-&lt;em class=&quot;replaceable&quot; style=&quot;color: #444444; font-weight: bold;&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; white-space: nowrap;&quot;&gt;instance_name&lt;/code&gt;&lt;/em&gt;/ldif/demo.ldif -n Database1
&lt;/pre&gt;For more information about using this script, see the&amp;nbsp;&lt;em class=&quot;citetitle&quot; style=&quot;font-weight: bold;&quot;&gt;Directory Server Configuration, Command, and File Reference&lt;/em&gt;.&lt;br /&gt;
&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #555753; background-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/note.png); background-origin: initial; background-position: 10px 10px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(68, 68, 68); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(68, 68, 68); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(68, 68, 68); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(68, 68, 68); border-top-style: solid; border-top-width: 1px; color: white; margin-bottom: 1.5em; margin-top: 0.5em; padding-bottom: 20px; padding-left: 1em; padding-right: 1em; padding-top: 1em;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: white; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; height: 32px; line-height: 20px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;NOTE&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;You do not need&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;root&lt;/code&gt;&amp;nbsp;privileges to run the script, but you must authenticate as the Directory Manager.&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;div class=&quot;table&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;tab.ldif2db&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;div class=&quot;table-contents&quot;&gt;&lt;table border=&quot;1&quot; style=&quot;border-bottom-color: rgb(170, 170, 170); border-bottom-style: solid; border-bottom-width: 1px; border-collapse: collapse; border-left-color: rgb(170, 170, 170); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(170, 170, 170); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(170, 170, 170); border-top-style: solid; border-top-width: 1px; width: 659px;&quot; summary=&quot;ldif2db Options&quot;&gt;&lt;colgroup&gt;&lt;col&gt;&lt;/col&gt;&lt;col&gt;&lt;/col&gt;&lt;/colgroup&gt;&lt;thead&gt;
&lt;tr&gt;&lt;th style=&quot;background-color: #990000; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: white; padding-bottom: 0.3em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.3em; text-align: left;&quot;&gt;Option&lt;/th&gt;&lt;th style=&quot;background-color: #990000; border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; color: white; padding-bottom: 0.3em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.3em; text-align: left;&quot;&gt;Description&lt;/th&gt;&lt;/tr&gt;
&lt;/thead&gt;&lt;tbody&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;-D&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Specifies the DN of the administrative user.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;-w&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Specifies the password of the administrative user.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;-i&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Specifies the LDIF files to be imported. This option is required. To important multiple LDIF files at a time, use multiple&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;-i&lt;/code&gt;&amp;nbsp;arguments. When multiple files are imported, the server imports the LDIF files in the order they are specified in the command-line.&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;-n&lt;/td&gt;&lt;td style=&quot;border-bottom-style: none; border-left-style: none; border-right-style: none; border-top-style: none; padding-bottom: 0.15em; padding-left: 0.5em; padding-right: 0.5em; padding-top: 0.15em;&quot;&gt;Specifies the name of the database to which to import the data.&lt;/td&gt;&lt;/tr&gt;
&lt;/tbody&gt;&lt;/table&gt;&lt;/div&gt;&lt;h6 style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 10pt; line-height: 16px; margin-top: 0em;&quot; xmlns=&quot;&quot;&gt;Table&amp;nbsp;4.3.&amp;nbsp;ldif2db Options&lt;/h6&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;section&quot; lang=&quot;en-US&quot; style=&quot;padding-top: 2em;&quot; xml:lang=&quot;en-US&quot;&gt;&lt;div class=&quot;titlepage&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;h4 class=&quot;title&quot; style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.1em; line-height: 16px; margin-top: 0em; padding-bottom: 0em; padding-top: 0em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;Importing_from_the_Command_Line-Importing_Using_the_ldif2ldap_Command_Line_Script&quot;&gt;&lt;/a&gt;4.1.3.3.&amp;nbsp;Importing Using the ldif2ldap Command-Line Script&lt;/h4&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id2928672&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id2928685&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=235752537152787670&quot; id=&quot;id2928694&quot;&gt;&lt;/a&gt;The&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldif2ldap&lt;/code&gt;&amp;nbsp;script appends the LDIF file through LDAP. Using this script, data are imported to all directory databases at the same time. The server must be running in order to import using&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldif2ldap&lt;/code&gt;.&lt;br /&gt;
To import LDIF using&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldif2ldap&lt;/code&gt;, do the following:&lt;br /&gt;
&lt;div class=&quot;orderedlist&quot;&gt;&lt;ol&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Open the Directory Server instance directory:&lt;/div&gt;&lt;pre class=&quot;screen&quot; style=&quot;background-color: #ede7c8; color: #333333; display: block; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em;&quot;&gt;cd /usr/lib/dirsrv/slapd-&lt;em class=&quot;replaceable&quot; style=&quot;color: #444444; font-weight: bold;&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; white-space: nowrap;&quot;&gt;instance_name&lt;/code&gt;&lt;/em&gt;
&lt;/pre&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Run the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldif2ldap&lt;/code&gt;&amp;nbsp;command-line script.&lt;/div&gt;&lt;pre class=&quot;screen&quot; style=&quot;background-color: #ede7c8; color: #333333; display: block; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em;&quot;&gt;ldif2ldap &quot;cn=Directory Manager&quot; secretpwd /var/lib/dirsrv/slapd-&lt;em class=&quot;replaceable&quot; style=&quot;color: #444444; font-weight: bold;&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; white-space: nowrap;&quot;&gt;instance_name&lt;/code&gt;&lt;/em&gt;/ldif/demo.ldif
&lt;/pre&gt;The&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldif2ldap&lt;/code&gt;&amp;nbsp;script requires the DN of the administrative user, the password of the administrative user, and the absolute path and filename of the LDIF files to be imported.&lt;br /&gt;
For more information about using this script, see the&amp;nbsp;&lt;em class=&quot;citetitle&quot; style=&quot;font-weight: bold;&quot;&gt;Directory Server Configuration, Command, and File Reference&lt;/em&gt;.&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/235752537152787670/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2011/11/h.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/235752537152787670'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/235752537152787670'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2011/11/h.html' title='Import user information from an LDIF file'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-2055068371804968830</id><published>2011-11-12T10:54:00.001-08:00</published><updated>2011-11-12T11:01:00.418-08:00</updated><title type='text'>configure a slave replica</title><content type='html'>&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;liberation sans&#39;, &#39;Myriad &#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, verdana, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;titlepage&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;h2 class=&quot;title&quot; style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.6em; line-height: 24px; margin-top: 0em;&quot;&gt;Creating the Supplier Bind DN Entry&lt;/h2&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=2055068371804968830&amp;amp;from=pencil&quot; id=&quot;id3115641&quot;&gt;&lt;/a&gt;A critical part of setting up replication is to create the entry, called the replication manager or supplier bind DN entry, that the suppliers use to bind to the consumer servers to perform replication updates.&lt;br /&gt;
The supplier bind DN must meet the following criteria:&lt;br /&gt;
&lt;div class=&quot;itemizedlist&quot; style=&quot;margin-top: 0.6em;&quot;&gt;&lt;ul style=&quot;list-style-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/dot.png); list-style-type: circle; padding-left: 1.6em;&quot;&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;It must be unique.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;It must be created on the consumer server (or hub) and&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;not&lt;/em&gt;&lt;/span&gt;&amp;nbsp;on the supplier server.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;It must correspond to an actual entry on the consumer server.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;It must be created on&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;every&lt;/em&gt;&lt;/span&gt;&amp;nbsp;server that receives updates from another server.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;It must not be part of the replicated database for security reasons.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;It must be defined in the replication agreement on the supplier server.&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;For example, the entry&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;cn=Replication Manager,cn=config&lt;/code&gt;&amp;nbsp;can be created under the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;cn=config&lt;/code&gt;&amp;nbsp;tree on the consumer server. This would be the supplier bind DN that all supplier servers would use to bind to the consumer to perform replication operations.&lt;br /&gt;
&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #555753; background-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/note.png); background-origin: initial; background-position: 10px 10px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(68, 68, 68); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(68, 68, 68); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(68, 68, 68); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(68, 68, 68); border-top-style: solid; border-top-width: 1px; color: white; margin-bottom: 1.5em; margin-top: 0.5em; padding-bottom: 20px; padding-left: 1em; padding-right: 1em; padding-top: 1em;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: white; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; height: 32px; line-height: 20px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;NOTE&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;Avoid creating simple entries under the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;cn=config&lt;/code&gt;&amp;nbsp;entry in the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;dse.ldif&lt;/code&gt;&amp;nbsp;file. The&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;cn=cn=config&lt;/code&gt;&amp;nbsp;entry in the simple, flat&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;dse.ldif&lt;/code&gt;&amp;nbsp;configuration file is not stored in the same highly scalable database as regular entries. As a result, if many entries, and particularly entries that are likely to be updated frequently, are stored under&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;cn=config&lt;/code&gt;, performance will suffer. However, although Red Hat recommends not storing simple user entries under&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;cn=config&lt;/code&gt;&amp;nbsp;for performance reasons, it can be useful to store special user entries such as the Directory Manager entry or replication manager (supplier bind DN) entry under&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;cn=config&lt;/code&gt;&amp;nbsp;since this centralizes configuration information.&lt;/div&gt;&lt;/div&gt;On each server that acts as a consumer in replication agreements, create a special entry that the supplier will use to bind to the consumers. Make sure to create the entry with the attributes required by the authentication method specified in the replication agreement.&lt;br /&gt;
&lt;div class=&quot;orderedlist&quot;&gt;&lt;ol&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Stop the Directory Server. If the server is not stopped, the changes to the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;dse.ldif&lt;/code&gt;&amp;nbsp;file will not be saved. See&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Usage-Starting_and_Stopping-DS.html&quot; style=&quot;color: #0066cc;&quot; title=&quot;1.3. Starting and Stopping Servers&quot;&gt;Section&amp;nbsp;1.3, “Starting and Stopping Servers”&lt;/a&gt;&amp;nbsp;for more information on stopping the server.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Create a new entry, such as&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;cn=replication manager,cn=config&lt;/code&gt;, in the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;dse.ldif&lt;/code&gt;&amp;nbsp;file.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Specify a&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; white-space: nowrap;&quot;&gt;userPassword&lt;/code&gt;&lt;/em&gt;&amp;nbsp;attribute-value pair.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;If password expiration policy is enabled or ever will be enabled, disable it on the replication manager entry to prevent replication from failing due to passwords expiring. To disable the password expiration policy on the&lt;em class=&quot;parameter&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; white-space: nowrap;&quot;&gt;userPassword&lt;/code&gt;&lt;/em&gt;&amp;nbsp;attribute, add the&amp;nbsp;&lt;em class=&quot;parameter&quot;&gt;&lt;code style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; white-space: nowrap;&quot;&gt;passwordExpirationTime&lt;/code&gt;&lt;/em&gt;&amp;nbsp;attribute with a value of&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;20380119031407Z&lt;/code&gt;, which means that the password will never expire.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Restart the Directory Server. See&amp;nbsp;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Usage-Starting_and_Stopping-DS.html&quot; style=&quot;color: #0066cc;&quot; title=&quot;1.3. Starting and Stopping Servers&quot;&gt;Section&amp;nbsp;1.3, “Starting and Stopping Servers”&lt;/a&gt;&amp;nbsp;for more information on starting the server.&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;The final entry should resemble this example:&lt;br /&gt;
&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=2055068371804968830&amp;amp;from=pencil&quot; id=&quot;example-binddn&quot;&gt;&lt;/a&gt;&lt;br /&gt;
&lt;pre class=&quot;screen&quot; style=&quot;background-color: #ede7c8; color: #333333; display: block; font-family: &#39;liberation mono&#39;, &#39;bitstream vera mono&#39;, &#39;dejavu mono&#39;, monospace; font-size: 0.9em; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; overflow-x: auto; overflow-y: auto; padding-bottom: 0.5em; padding-left: 1em; padding-right: 1em; padding-top: 0.5em;&quot;&gt;dn: cn=replication manager,cn=config 
objectClass: inetorgperson 
objectClass: person 
objectClass: top 
cn: replication manager 
sn: RM 
userPassword: password 
passwordExpirationTime: 20380119031407Z
&lt;/pre&gt;When configuring a replica as a consumer, use the DN of this entry to define the supplier bind DN.&lt;br /&gt;
&lt;br /&gt;
&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;liberation sans&#39;, &#39;Myriad &#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, verdana, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;/span&gt;&lt;br /&gt;
&lt;div class=&quot;titlepage&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;h2 class=&quot;title&quot; style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.6em; line-height: 24px; margin-top: 0em;&quot;&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;liberation sans&#39;, &#39;Myriad &#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, verdana, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;Configuring Single-Master Replication&lt;/span&gt;&lt;/h2&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;span class=&quot;Apple-style-span&quot; style=&quot;background-color: white; color: #333333; font-family: &#39;liberation sans&#39;, &#39;Myriad &#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, verdana, &#39;Luxi Sans&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 12px; line-height: 18px;&quot;&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=2055068371804968830&amp;amp;from=pencil&quot; id=&quot;id3115892&quot;&gt;&lt;/a&gt;&lt;a class=&quot;indexterm&quot; href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=2055068371804968830&amp;amp;from=pencil&quot; id=&quot;id3115901&quot;&gt;&lt;/a&gt;To set up single-master replication such as the configuration shown in&amp;nbsp;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Managing_Replication-Replication_Scenarios.html#fig.Single_Master_Replication&quot; style=&quot;color: #0066cc;&quot; title=&quot;Figure 8.1. Single-Master Replication&quot;&gt;Figure&amp;nbsp;8.1, “Single-Master Replication”&lt;/a&gt;, between supplier server A, which holds a read-write replica, and the two consumers server B and server C, which each hold a read-only replica, there are two major steps:&lt;br /&gt;
&lt;div class=&quot;itemizedlist&quot; style=&quot;margin-top: 0.6em;&quot;&gt;&lt;ul style=&quot;list-style-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/dot.png); list-style-type: circle; padding-left: 1.6em;&quot;&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Managing_Replication-Configuring_Single_Master_Replication.html#Configuring_Single_Master_Replication-Configuring_the_Read_Write_Replica_on_the_Supplier_Server&quot; style=&quot;color: #0066cc;&quot; title=&quot;8.4.1. Configuring the Read-Write Replica on the Supplier Server&quot;&gt;Section&amp;nbsp;8.4.1, “Configuring the Read-Write Replica on the Supplier Server”&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Managing_Replication-Configuring_Single_Master_Replication.html#Configuring_Single_Master_Replication-Configuring_the_Read_Only_Replica_on_the_Consumer_Server&quot; style=&quot;color: #0066cc;&quot; title=&quot;8.4.2. Configuring the Read-Only Replica on the Consumer&quot;&gt;Section&amp;nbsp;8.4.2, “Configuring the Read-Only Replica on the Consumer”&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Managing_Replication-Configuring_Single_Master_Replication.html#smrepl-replagmt&quot; style=&quot;color: #0066cc;&quot; title=&quot;8.4.3. Create the Replication Agreement&quot;&gt;Section&amp;nbsp;8.4.3, “Create the Replication Agreement”&lt;/a&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;&lt;div class=&quot;section&quot; lang=&quot;en-US&quot; style=&quot;padding-top: 2em;&quot; xml:lang=&quot;en-US&quot;&gt;&lt;div class=&quot;titlepage&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;h3 class=&quot;title&quot; style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; line-height: 20px; margin-top: 0em; padding-bottom: 0em; padding-top: 0em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=2055068371804968830&amp;amp;from=pencil&quot; id=&quot;Configuring_Single_Master_Replication-Configuring_the_Read_Write_Replica_on_the_Supplier_Server&quot;&gt;&lt;/a&gt;Configuring the Read-Write Replica on the Supplier Server&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;orderedlist&quot;&gt;&lt;ol&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Specify the supplier settings for the server.&lt;/div&gt;&lt;div class=&quot;orderedlist&quot;&gt;&lt;ol&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the Directory Server Console, select the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Configuration&lt;/strong&gt;&amp;nbsp;tab.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the navigation tree, select the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Replication&lt;/strong&gt;&amp;nbsp;folder.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the right-hand side of the window, select the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Supplier Settings&lt;/strong&gt;&amp;nbsp;tab.&lt;/div&gt;&lt;div class=&quot;informalfigure&quot;&gt;&lt;div class=&quot;separator&quot; style=&quot;clear: both; text-align: center;&quot;&gt;&lt;/div&gt;&lt;div style=&quot;clear: left; float: left; margin-bottom: 1em; margin-right: 1em;&quot;&gt;&lt;img align=&quot;middle&quot; height=&quot;416&quot; src=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/images/repl-settings.png&quot; style=&quot;display: block; margin-bottom: 2em; margin-left: 0px; margin-right: 0px; margin-top: 2em;&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;br /&gt;
&lt;div align=&quot;center&quot; class=&quot;mediaobject&quot;&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Check the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Enable Changelog&lt;/strong&gt;&amp;nbsp;checkbox.&lt;/div&gt;This activates all of the fields in the pane below that were previously grayed out.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Specify a changelog by clicking the&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Use default&lt;/strong&gt;&amp;nbsp;button, or click the&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Browse&lt;/strong&gt;&amp;nbsp;button to display a file selector.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Set the changelog parameters for the number and age of the log files.&lt;/div&gt;Clear the unlimited checkboxes to specify different values.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Click&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Save&lt;/strong&gt;.&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Specify the replication settings required for a read-write replica.&lt;/div&gt;&lt;div class=&quot;orderedlist&quot;&gt;&lt;ol&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the navigation tree on the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Configuration&lt;/strong&gt;&amp;nbsp;tab, expand the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Replication&lt;/strong&gt;&amp;nbsp;node, and highlight the database to replicate.&lt;/div&gt;The&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Replica Settings&lt;/strong&gt;&amp;nbsp;tab opens in the right-hand side of the window.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Check the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Enable Replica&lt;/strong&gt;&amp;nbsp;checkbox.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Replica Role&lt;/strong&gt;&amp;nbsp;section, select the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Single Master&lt;/strong&gt;&amp;nbsp;radio button.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Common Settings&lt;/strong&gt;&amp;nbsp;section, specify a&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Replica ID&lt;/strong&gt;, which is an integer between&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;1&lt;/code&gt;&amp;nbsp;and&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;65534&lt;/code&gt;, inclusive.&lt;/div&gt;The replica ID must be unique for a given suffix, different from any other ID used for read-write replicas on this server and on other servers.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Common Settings&lt;/strong&gt;&amp;nbsp;section, specify a purge delay in the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Purge delay&lt;/strong&gt;&amp;nbsp;field.&lt;/div&gt;The purge delay is how often the state information stored in the replicated entries is deleted.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Click&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Save&lt;/strong&gt;.&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;section&quot; lang=&quot;en-US&quot; style=&quot;padding-top: 2em;&quot; xml:lang=&quot;en-US&quot;&gt;&lt;div class=&quot;titlepage&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;h3 class=&quot;title&quot; style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; line-height: 20px; margin-top: 0em; padding-bottom: 0em; padding-top: 0em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=2055068371804968830&amp;amp;from=pencil&quot; id=&quot;Configuring_Single_Master_Replication-Configuring_the_Read_Only_Replica_on_the_Consumer_Server&quot;&gt;&lt;/a&gt;Configuring the Read-Only Replica on the Consumer&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;orderedlist&quot;&gt;&lt;ol&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Create the database for the read-only replica if it does not exist. See&amp;nbsp;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Configuring_Directory_Databases-Creating_and_Maintaining_Suffixes.html#Creating_and_Maintaining_Suffixes-Creating_Suffixes&quot; style=&quot;color: #0066cc;&quot; title=&quot;3.1.1. Creating Suffixes&quot;&gt;Section&amp;nbsp;3.1.1, “Creating Suffixes”&lt;/a&gt;&amp;nbsp;for instructions on creating suffixes.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=2055068371804968830&amp;amp;from=pencil&quot; id=&quot;step-supplierDN-single&quot;&gt;&lt;/a&gt;&amp;nbsp;Create the entry for the supplier bind DN on the consumer server if it does not exist. The supplier bind DN is the special entry that the supplier will use to bind to the consumer. This is described in&amp;nbsp;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Creating_the_Supplier_Bind_DN_Entry.html&quot; style=&quot;color: #0066cc;&quot; title=&quot;8.3. Creating the Supplier Bind DN Entry&quot;&gt;Section&amp;nbsp;8.3, “Creating the Supplier Bind DN Entry”&lt;/a&gt;.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Specify the replication settings required for a read-only replica.&lt;/div&gt;&lt;div class=&quot;orderedlist&quot;&gt;&lt;ol&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the Directory Server Console, select the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Configuration&lt;/strong&gt;&amp;nbsp;tab.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the navigation tree, expand the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Replication&lt;/strong&gt;&amp;nbsp;folder, and highlight the replica database.&lt;/div&gt;The&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Replica Settings&lt;/strong&gt;&amp;nbsp;tab for that database opens in the right-hand side of the window.&lt;br /&gt;
&lt;div class=&quot;informalfigure&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;mediaobject&quot;&gt;&lt;img align=&quot;middle&quot; height=&quot;634&quot; src=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/images/consumer-radio.png&quot; style=&quot;display: block; margin-bottom: 2em; margin-left: 0px; margin-right: 0px; margin-top: 2em;&quot; width=&quot;640&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Check the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Enable Replica&lt;/strong&gt;&amp;nbsp;checkbox.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Replica Role&lt;/strong&gt;&amp;nbsp;section, select the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Dedicated Consumer&lt;/strong&gt;&amp;nbsp;radio button.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Common Settings&lt;/strong&gt;&amp;nbsp;section, specify a purge delay in the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Purge delay&lt;/strong&gt;&amp;nbsp;field.&lt;/div&gt;This option indicates how often the state information stored in the replicated entries is purged.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Update Settings&lt;/strong&gt;&amp;nbsp;section, specify the bind DN that the supplier will use to bind to the replica. Enter the supplier bind DN in the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Enter a new Supplier DN&lt;/strong&gt;&amp;nbsp;field, and click&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Add&lt;/strong&gt;. The supplier bind DN appears in the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Current Supplier DNs&lt;/strong&gt;&amp;nbsp;list.&lt;/div&gt;The supplier bind DN should be the entry created in step&amp;nbsp;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Managing_Replication-Configuring_Single_Master_Replication.html#step-supplierDN-single&quot; style=&quot;color: #0066cc;&quot;&gt;2&lt;/a&gt;. The supplier bind DN is a privileged user because it is not subject to access control.&lt;br /&gt;
&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #555753; background-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/note.png); background-origin: initial; background-position: 10px 10px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(68, 68, 68); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(68, 68, 68); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(68, 68, 68); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(68, 68, 68); border-top-style: solid; border-top-width: 1px; color: white; margin-bottom: 1.5em; margin-top: 0.5em; padding-bottom: 20px; padding-left: 1em; padding-right: 1em; padding-top: 1em;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: white; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; height: 32px; line-height: 20px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;NOTE&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;There can be multiple supplier bind DNs per consumer but only one supplier DN per replication agreement.&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Specify the URL for any supplier servers to which to refer updates.&lt;/div&gt;By default, all updates are first referred to the supplier servers that are specified here. If no suppliers are set here, updates are referred to the supplier servers that have a replication agreement that includes the current replica.&lt;br /&gt;
Automatic referrals assume that clients bind over a regular connection; this has a URL in the form&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldap://&lt;/code&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;hostname&lt;/em&gt;&lt;/span&gt;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;:&lt;/code&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;port&lt;/em&gt;&lt;/span&gt;. For clients to bind to the supplier using SSL, use this field to specify a referral of the form&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldaps://&lt;/code&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;hostname&lt;/em&gt;&lt;/span&gt;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;:&lt;/code&gt;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;port&lt;/em&gt;&lt;/span&gt;, where the&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;s&lt;/code&gt;&amp;nbsp;in&amp;nbsp;&lt;code class=&quot;command&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;ldaps&lt;/code&gt;&amp;nbsp;indicates a secure connection.&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Click&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Save&lt;/strong&gt;.&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;Repeat these steps for every consumer server in the replication configuration.&lt;/div&gt;&lt;div class=&quot;section&quot; lang=&quot;en-US&quot; style=&quot;padding-top: 2em;&quot; xml:lang=&quot;en-US&quot;&gt;&lt;div class=&quot;titlepage&quot;&gt;&lt;div&gt;&lt;div&gt;&lt;h3 class=&quot;title&quot; style=&quot;background-color: transparent; color: #a70000; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; line-height: 20px; margin-top: 0em; padding-bottom: 0em; padding-top: 0em;&quot;&gt;&lt;a href=&quot;http://www.blogger.com/post-edit.g?blogID=4796312792689375753&amp;amp;postID=2055068371804968830&amp;amp;from=pencil&quot; id=&quot;smrepl-replagmt&quot;&gt;&lt;/a&gt;8.4.3.&amp;nbsp;Create the Replication Agreement&lt;/h3&gt;&lt;/div&gt;&lt;/div&gt;&lt;/div&gt;Create one replication agreement for each read-only replica. For example, in the scenario illustrated in&amp;nbsp;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Managing_Replication-Replication_Scenarios.html#fig.Single_Master_Replication&quot; style=&quot;color: #0066cc;&quot; title=&quot;Figure 8.1. Single-Master Replication&quot;&gt;Figure&amp;nbsp;8.1, “Single-Master Replication”&lt;/a&gt;, server A has two replication agreements, one for server B and one for server C.&lt;br /&gt;
&lt;div class=&quot;orderedlist&quot;&gt;&lt;ol&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the navigation tree of the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Configuration&lt;/strong&gt;&amp;nbsp;tab, right-click the database to replicate, and select&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;New Replication Agreement&lt;/strong&gt;.&lt;/div&gt;Alternatively, highlight the database, and select&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;New Replication Agreement&lt;/strong&gt;&amp;nbsp;from the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Object&lt;/strong&gt;&amp;nbsp;menu to start the&lt;strong class=&quot;application&quot;&gt;Replication Agreement Wizard&lt;/strong&gt;.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the first screen, fill in a name and description for the replication agreement, and hit&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Next&lt;/strong&gt;.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;In the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Source and Destination&lt;/strong&gt;&amp;nbsp;screen, fill in the URL for the consumer and the supplier bind DN and password on that consumer. If the target server is not available, hit in other to fill in the information manually.&lt;/div&gt;&lt;div class=&quot;informalfigure&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;mediaobject&quot;&gt;&lt;img align=&quot;middle&quot; src=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/images/replagmt1.png&quot; style=&quot;display: block; margin-bottom: 2em; margin-left: 0px; margin-right: 0px; margin-top: 2em;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;itemizedlist&quot; style=&quot;margin-top: 0.6em;&quot;&gt;&lt;ul style=&quot;list-style-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/dot.png); list-style-type: circle; padding-left: 1.6em;&quot;&gt;&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Unless there is more than one instance of Directory Server configured, by default, there are no consumers available in the drop-down menu.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;The port listed is the non-SSL port, even if the Directory Server instance is configured to run over SSL. This port number is used only for identification of the Directory Server instance in the Console; it does not specify the actual port number or protocol that is used for replication.&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;If SSL is enabled on the servers, it is possible to select the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Using encrypted SSL connection&lt;/strong&gt;&amp;nbsp;radio button for SSL client authentication. Otherwise, fill in the supplier bind DN and password.&lt;/div&gt;&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #555753; background-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/note.png); background-origin: initial; background-position: 10px 10px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(68, 68, 68); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(68, 68, 68); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(68, 68, 68); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(68, 68, 68); border-top-style: solid; border-top-width: 1px; color: white; margin-bottom: 1.5em; margin-top: 0.5em; padding-bottom: 20px; padding-left: 1em; padding-right: 1em; padding-top: 1em;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: white; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; height: 32px; line-height: 20px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;NOTE&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;If attribute encryption is enabled, a secure connection&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;must&lt;/em&gt;&lt;/span&gt;&amp;nbsp;be used for the encrypted attributes to be replicated.&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ul&gt;&lt;/div&gt;Hit&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Next&lt;/strong&gt;.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Fractional replication controls which entry attributes are replicated between servers. By default, all attributes are replicated. To select attributes that will&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;not&lt;/em&gt;&lt;/span&gt;&amp;nbsp;be replicated to the consumer, check the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Enable Fractional Replication&lt;/strong&gt;checkbox. Then, highlight the attribute (or attributes) in the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Included&lt;/strong&gt;&amp;nbsp;column on the right, and click&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Remove&lt;/strong&gt;. All attributes that will not be replicated are listed in the&amp;nbsp;&lt;strong class=&quot;guilabel&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Excluded&lt;/strong&gt;&amp;nbsp;column on the left, as well as in the summary the replication agreement is complete.&lt;/div&gt;&lt;div class=&quot;informalfigure&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;mediaobject&quot;&gt;&lt;img align=&quot;middle&quot; src=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/images/replagmt-frac.png&quot; style=&quot;display: block; margin-bottom: 2em; margin-left: 0px; margin-right: 0px; margin-top: 2em;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #555753; background-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/note.png); background-origin: initial; background-position: 10px 10px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(68, 68, 68); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(68, 68, 68); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(68, 68, 68); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(68, 68, 68); border-top-style: solid; border-top-width: 1px; color: white; margin-bottom: 1.5em; margin-top: 0.5em; padding-bottom: 20px; padding-left: 1em; padding-right: 1em; padding-top: 1em;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: white; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; height: 32px; line-height: 20px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;NOTE&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;To safeguard against potential integrity problems, the consumer in fractional replication must be a dedicated consumer, not a multi-master supplier or hub. This is not enforced at the time the replication agreement is made, but replication will fail if the consumer is not a read-only replica.&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Set the schedule for when replication runs. By default, replication runs continually.&lt;/div&gt;&lt;div class=&quot;informalfigure&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;mediaobject&quot;&gt;&lt;img align=&quot;middle&quot; src=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/images/replagmt-sched.png&quot; style=&quot;display: block; margin-bottom: 2em; margin-left: 0px; margin-right: 0px; margin-top: 2em;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;Hit&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Next&lt;/strong&gt;.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;Set when the consumer is initialized.&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;Initializing&lt;/em&gt;&lt;/span&gt;&amp;nbsp;a consumer manually copies all data over from the supplier to the consumer. The default is to create an initialization file (an LDIF of all supplier data) so that the consumer can be initialized later. It is also possible to initialize the consumer as soon as the replication agreement is completed or not at all. For information on initializing consumers, see&amp;nbsp;&lt;a href=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/Managing_Replication-Initializing_Consumers.html&quot; style=&quot;color: #0066cc;&quot; title=&quot;8.10. Initializing Consumers&quot;&gt;Section&amp;nbsp;8.10, “Initializing Consumers”&lt;/a&gt;.&lt;/div&gt;&lt;div class=&quot;informalfigure&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;mediaobject&quot;&gt;&lt;img align=&quot;middle&quot; src=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/images/replagmt-init.png&quot; style=&quot;display: block; margin-bottom: 2em; margin-left: 0px; margin-right: 0px; margin-top: 2em;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;div class=&quot;note&quot; style=&quot;background-attachment: initial; background-clip: initial; background-color: #555753; background-image: url(http://www.centos.org/docs/5/html/CDS/ag/8.0/Common_Content/images/note.png); background-origin: initial; background-position: 10px 10px; background-repeat: no-repeat no-repeat; border-bottom-color: rgb(68, 68, 68); border-bottom-style: solid; border-bottom-width: 1px; border-left-color: rgb(68, 68, 68); border-left-style: solid; border-left-width: 1px; border-right-color: rgb(68, 68, 68); border-right-style: solid; border-right-width: 1px; border-top-color: rgb(68, 68, 68); border-top-style: solid; border-top-width: 1px; color: white; margin-bottom: 1.5em; margin-top: 0.5em; padding-bottom: 20px; padding-left: 1em; padding-right: 1em; padding-top: 1em;&quot;&gt;&lt;h2 style=&quot;background-color: transparent; color: white; font-family: &#39;liberation sans&#39;, &#39;Bitstream Vera Sans&#39;, &#39;Lucida Grande&#39;, &#39;Trebuchet MS&#39;, helvetica, verdana, arial, sans-serif; font-size: 1.3em; height: 32px; line-height: 20px; margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;NOTE&lt;/h2&gt;&lt;div style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0em; padding-left: 56px; padding-right: 0em; padding-top: 0em;&quot;&gt;Replication&amp;nbsp;&lt;span class=&quot;emphasis&quot;&gt;&lt;em&gt;will not&lt;/em&gt;&lt;/span&gt;&amp;nbsp;begin until the consumer is initialized.&lt;/div&gt;&lt;/div&gt;Hit&amp;nbsp;&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Next&lt;/strong&gt;.&lt;/li&gt;
&lt;li style=&quot;margin-bottom: 0em; margin-left: 0em; margin-right: 0em; margin-top: 0em; padding-bottom: 0.5em; padding-left: 0.2em;&quot;&gt;&lt;div style=&quot;margin-bottom: 0em !important; margin-left: 0em !important; margin-right: 0em !important; margin-top: 0em !important; padding-bottom: 0em !important; padding-left: 0em !important; padding-right: 0em !important; padding-top: 0em !important;&quot;&gt;The final screen shows the settings for the replication agreement, as it will be included in the&amp;nbsp;&lt;code class=&quot;filename&quot; style=&quot;font-family: &#39;liberation mono&#39;, &#39;Bitstream vera mono&#39;, monospace; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;dse.ldif&lt;/code&gt;&amp;nbsp;file. Hit&lt;strong class=&quot;guibutton&quot; style=&quot;color: #444444; font-family: &#39;liberation sans&#39;, &#39;Bitstream vera sans&#39;, &#39;dejavu sans&#39;, sans-serif; font-size: 0.9em; font-weight: bold; white-space: nowrap;&quot;&gt;Done&lt;/strong&gt;&amp;nbsp;to save the agreement.&lt;/div&gt;&lt;div class=&quot;informalfigure&quot;&gt;&lt;div align=&quot;center&quot; class=&quot;mediaobject&quot;&gt;&lt;img align=&quot;middle&quot; src=&quot;http://www.centos.org/docs/5/html/CDS/ag/8.0/images/replagmt-summary.png&quot; style=&quot;display: block; margin-bottom: 2em; margin-left: 0px; margin-right: 0px; margin-top: 2em;&quot; /&gt;&lt;/div&gt;&lt;/div&gt;&lt;/li&gt;
&lt;/ol&gt;&lt;/div&gt;&lt;/div&gt;&lt;/span&gt;</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/2055068371804968830/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2011/11/configure-slave-replica.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/2055068371804968830'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/2055068371804968830'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2011/11/configure-slave-replica.html' title='configure a slave replica'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-4796312792689375753.post-1437985548870531412</id><published>2011-11-09T12:57:00.001-08:00</published><updated>2011-11-09T12:58:22.773-08:00</updated><title type='text'>Configure a system to authenticate using LDAP</title><content type='html'>system-config-authentication</content><link rel='replies' type='application/atom+xml' href='http://rhca-study-notes.blogspot.com/feeds/1437985548870531412/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://rhca-study-notes.blogspot.com/2011/11/configure-system-to-authenticate-using.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/1437985548870531412'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/4796312792689375753/posts/default/1437985548870531412'/><link rel='alternate' type='text/html' href='http://rhca-study-notes.blogspot.com/2011/11/configure-system-to-authenticate-using.html' title='Configure a system to authenticate using LDAP'/><author><name>Adam</name><uri>http://www.blogger.com/profile/13036654867369194261</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='https://img1.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>