<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Croc-Informatique.fr &#187; Annuaire High Tek</title>
	<atom:link href="http://www.croc-informatique.fr/tag/annuaire/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.croc-informatique.fr</link>
	<description>Le Blog Note d'Olivier Legras</description>
	<lastBuildDate>Wed, 18 Jan 2012 16:29:38 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1.3</generator>
		<item>
		<title>Installation et configuration openldap sur Centos 5</title>
		<link>http://www.croc-informatique.fr/2009/11/installation-et-configuration-openldap-sur-centos-5/</link>
		<comments>http://www.croc-informatique.fr/2009/11/installation-et-configuration-openldap-sur-centos-5/#comments</comments>
		<pubDate>Wed, 25 Nov 2009 10:26:51 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Réseau]]></category>
		<category><![CDATA[Sécurité]]></category>
		<category><![CDATA[Annuaire High Tek]]></category>
		<category><![CDATA[ldap]]></category>
		<category><![CDATA[openldap]]></category>

		<guid isPermaLink="false">http://www.croc-informatique.fr/2009/11/installation-et-configuration-openldap-sur-centos-5/</guid>
		<description><![CDATA[Installation : yum install openldap-servers openldap-clients &#160; Configuration : &#160; Nous allons configurer notre serveur LDAP pour qu’il ait comme suffixe le domaine croc-informatique.fr . Le compte administrateur sera : admin / password &#160; Editez le fichier /etc/openldap/slapd.conf Modifier le comme suit : suffix &#34;dc=croc-informatique,dc=fr&#34; rootdn &#34;cn=admin,dc=croc-informatique,dc=fr&#34; rootpw password Crypter le mot de passe : [...]]]></description>
			<content:encoded><![CDATA[<!-- Start Shareaholic LikeButtonSetTop Automatic --><!-- End Shareaholic LikeButtonSetTop Automatic --><h3>Installation :</h3>
<p>yum install openldap-servers openldap-clients</p>
<p>&#160;</p>
<h3>Configuration :</h3>
<p>&#160;</p>
<p>Nous allons configurer notre serveur LDAP pour qu’il ait comme suffixe le domaine croc-informatique.fr . Le compte administrateur sera : admin / password</p>
<p>&#160;</p>
<p><strong><u>Editez le fichier /etc/openldap/slapd.conf</u></strong></p>
<p><strong><u></u></strong></p>
<p>Modifier le comme suit :</p>
<blockquote><p>suffix &quot;dc=croc-informatique,dc=fr&quot; rootdn &quot;cn=admin,dc=croc-informatique,dc=fr&quot; rootpw password </p></blockquote>
<p><span id="more-465"></span></p>
<p> Crypter le mot de passe :<br />
<blockquote>
<p>slappasswd -s password</p>
</blockquote>
<p>Vous aller avoir un retour de ce type : {SSHA}GyzpAiLauGXRvNAHdoKhJAp8FqalHzdu</p>
<p>Il vous suffi de le copier et de le coller dans le fichier /etc/openldap/slapd.conf à la place du mot de passe en clair.</p>
<p> Lancer le service ldap :<br />
<blockquote>service ldap start </p></blockquote>
<p> Création du fichier ldif de base : Ce fichier va nous permettre de demander au serveur LDAP de créé la base de l’arborescence. Créez un fichier base.ldif et ajoutez :<br />
<blockquote>dn: dc=croc-informatique,dc=fr dc: croc-informatique objectClass: domain </p></blockquote>
<p> Importez le fichier base.ldif :<br />
<blockquote>ldapadd -x -D &quot;cn=admin,dc=croc-informatique,dc=fr&quot; -w password -f ~/base.ldif </p></blockquote>
<p> Maintenant, vous pouvez créer votre arborescence comme vous le souhaitez. Par exemple, nous allons créer une OU (unitée organisationnelle). Cette OU, nous allons la nommée “Contact” et nous allons ajouter quelques contacts. Pour cela, nous allons créer un nouveau fichier que nous allons nommé contact.ldif. Placez ce texte à l’intérieur :
<pre>dn: ou=Contact,dc=croc-informatique,dc=fr
ou: Contact
objectClass: organizationalUnit

dn: uid=user1,ou=Contact,dc=croc-informatique,dc=fr
uid: user1
cn: user1
displayName: User 1
givenName: User
sn: user1
objectClass: inetOrgPerson
userPassword: password
mail: user1@croc-informatique.fr</pre>
<p>Puis lancer la commande :</p>
<blockquote>
<p>ldapadd -x -D &quot;cn=admin,dc=croc-informatique,dc=fr&quot; -w password -f ~/contact.ldif </p>
</blockquote>
<p>Voilà l’OU Contact et l’utilisateur user1 avec le mot de passe password ont été créés </p>
<p>Explorer son serveur Ldap avec JXplorer :</p>
<p><a href="http://www.croc-informatique.fr/wp-content/uploads/2009/11/image1.png"><img style="border-right-width: 0px; display: inline; border-top-width: 0px; border-bottom-width: 0px; border-left-width: 0px" title="image" border="0" alt="image thumb1 Installation et configuration openldap sur Centos 5" src="http://www.croc-informatique.fr/wp-content/uploads/2009/11/image_thumb1.png" width="244" height="185" /></a></p>
<p>Cet outil est téléchargeable sur son site officiel : http://jxplorer.org/</p>
<div class="shr-publisher-465"></div><!-- Start Shareaholic LikeButtonSetBottom Automatic --><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><div class='shareaholic-like-buttonset' style='float:none;height:30px;'><a class='shareaholic-fblike' data-shr_layout='button_count' data-shr_showfaces='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstallation-et-configuration-openldap-sur-centos-5%2F' data-shr_title='Installation+et+configuration+openldap+sur+Centos+5'></a><a class='shareaholic-googleplusone' data-shr_size='medium' data-shr_count='false' data-shr_href='http%3A%2F%2Fwww.croc-informatique.fr%2F2009%2F11%2Finstallation-et-configuration-openldap-sur-centos-5%2F' data-shr_title='Installation+et+configuration+openldap+sur+Centos+5'></a></div><div style="clear: both; min-height: 1px; height: 3px; width: 100%;"></div><!-- End Shareaholic LikeButtonSetBottom Automatic -->]]></content:encoded>
			<wfw:commentRss>http://www.croc-informatique.fr/2009/11/installation-et-configuration-openldap-sur-centos-5/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

