<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fr">
		<id>http://wiki.diouxx.be/index.php?action=history&amp;feed=atom&amp;title=Openldap_ajouter_attribut</id>
		<title>Openldap ajouter attribut - Historique des versions</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.diouxx.be/index.php?action=history&amp;feed=atom&amp;title=Openldap_ajouter_attribut"/>
		<link rel="alternate" type="text/html" href="http://wiki.diouxx.be/index.php?title=Openldap_ajouter_attribut&amp;action=history"/>
		<updated>2026-04-16T16:05:52Z</updated>
		<subtitle>Historique des versions pour cette page sur le wiki</subtitle>
		<generator>MediaWiki 1.30.2</generator>

	<entry>
		<id>http://wiki.diouxx.be/index.php?title=Openldap_ajouter_attribut&amp;diff=248&amp;oldid=prev</id>
		<title>Ddevleeschauwer le 15 juin 2016 à 09:27</title>
		<link rel="alternate" type="text/html" href="http://wiki.diouxx.be/index.php?title=Openldap_ajouter_attribut&amp;diff=248&amp;oldid=prev"/>
				<updated>2016-06-15T09:27:47Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;fr&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Version précédente&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Version du 15 juin 2016 à 09:27&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l10&quot; &gt;Ligne 10 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 10 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Construction du fichier contenant la liste des users avec seulement leur dn&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Construction du fichier contenant la liste des users avec seulement leur dn&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#vers le fichier listUsersDn.txt&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#vers le fichier listUsersDn.txt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ldapsearch -LLL -xvD &amp;quot;cn=admin,dc=be&amp;quot; -w &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;multi/2004 &lt;/del&gt;-b &amp;quot;ou=Users,dc=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;admin,dc=pass&lt;/del&gt;,dc=be&amp;quot; -H ldap://&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;192&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;168&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;100.34 &lt;/del&gt;&amp;quot;(objectClass=&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;PASS&lt;/del&gt;)&amp;quot; uid=* uid | grep dn &amp;gt; /tmp/listUsersDn.txt&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;ldapsearch -LLL -xvD &amp;quot;cn=admin,dc=be&amp;quot; -w &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;PASSWORD &lt;/ins&gt;-b &amp;quot;ou=Users,dc=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;domain&lt;/ins&gt;,dc=be&amp;quot; -H ldap://&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ldap&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;domain&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;be &lt;/ins&gt;&amp;quot;(objectClass=&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;VotreObkectClassPourTrier&lt;/ins&gt;)&amp;quot; uid=* uid | grep dn &amp;gt; /tmp/listUsersDn.txt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l25&quot; &gt;Ligne 25 :&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Ligne 25 :&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Modification des entrees dans le serveur&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#Modification des entrees dans le serveur&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ldapmodify -xvD &amp;quot;cn=admin,dc=be&amp;quot; -w &lt;del class=&quot;diffchange diffchange-inline&quot;&gt;multi/2004 &lt;/del&gt;-H ldap://&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;192.168&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;100&lt;/del&gt;.&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;34 &lt;/del&gt;-f /tmp/modifyFinal.txt&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;#ldapmodify -xvD &amp;quot;cn=admin,dc=be&amp;quot; -w &lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;PASSWORD &lt;/ins&gt;-H ldap://&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;ldap&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;domain&lt;/ins&gt;.&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;be &lt;/ins&gt;-f /tmp/modifyFinal.txt&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Catégorie:Scripts System]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;[[Catégorie:Scripts System]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;

&lt;!-- diff cache key wikidb:diff:version:1.11a:oldid:247:newid:248 --&gt;
&lt;/table&gt;</summary>
		<author><name>Ddevleeschauwer</name></author>	</entry>

	<entry>
		<id>http://wiki.diouxx.be/index.php?title=Openldap_ajouter_attribut&amp;diff=247&amp;oldid=prev</id>
		<title>Ddevleeschauwer : Page créée avec « {{ Introduction | Ce script permet de modifier une liste d'utilisateur LDAP }}  &lt;br&gt; {{ Note | Dans ce cas-ci, nous ajoutons un attribut &quot;quotaCloud&quot; aux users }} &lt;br&gt;  &lt;s... »</title>
		<link rel="alternate" type="text/html" href="http://wiki.diouxx.be/index.php?title=Openldap_ajouter_attribut&amp;diff=247&amp;oldid=prev"/>
				<updated>2016-06-15T09:24:22Z</updated>
		
		<summary type="html">&lt;p&gt;Page créée avec « {{ Introduction | Ce script permet de modifier une liste d&amp;#039;utilisateur LDAP }}  &amp;lt;br&amp;gt; {{ Note | Dans ce cas-ci, nous ajoutons un attribut &amp;quot;quotaCloud&amp;quot; aux users }} &amp;lt;br&amp;gt;  &amp;lt;s... »&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Nouvelle page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{ Introduction | Ce script permet de modifier une liste d'utilisateur LDAP }} &lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
{{ Note | Dans ce cas-ci, nous ajoutons un attribut &amp;quot;quotaCloud&amp;quot; aux users }}&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=bash&amp;gt;&lt;br /&gt;
#!/bin/bash&lt;br /&gt;
#Script pour modifier une liste d'utilisateur compris dans un fichier texte&lt;br /&gt;
&lt;br /&gt;
#Construction du fichier contenant la liste des users avec seulement leur dn&lt;br /&gt;
#vers le fichier listUsersDn.txt&lt;br /&gt;
ldapsearch -LLL -xvD &amp;quot;cn=admin,dc=be&amp;quot; -w multi/2004 -b &amp;quot;ou=Users,dc=admin,dc=pass,dc=be&amp;quot; -H ldap://192.168.100.34 &amp;quot;(objectClass=PASS)&amp;quot; uid=* uid | grep dn &amp;gt; /tmp/listUsersDn.txt&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
#Lecture ligne par ligne du fichier listUsersDn.txt &amp;amp; rajout des arguments necessaire&lt;br /&gt;
#Fichier termine : modifyFinal.txt&lt;br /&gt;
while read line&lt;br /&gt;
do&lt;br /&gt;
        echo -e &amp;quot;$line\nchangetype: modify\nadd: quotaCloud\nquotaCloud: 5368709121\n&amp;quot; &amp;gt;&amp;gt; /tmp/modifyFinal.txt&lt;br /&gt;
done &amp;lt; /tmp/listUsersDn.txt&lt;br /&gt;
&lt;br /&gt;
echo -e &amp;quot;Construction fichier modifyFinal\t[OK]&amp;quot;&lt;br /&gt;
&lt;br /&gt;
rm -vf /tmp/listUsersDn.txt&lt;br /&gt;
&lt;br /&gt;
#Modification des entrees dans le serveur&lt;br /&gt;
#ldapmodify -xvD &amp;quot;cn=admin,dc=be&amp;quot; -w multi/2004 -H ldap://192.168.100.34 -f /tmp/modifyFinal.txt&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[[Catégorie:Scripts System]]&lt;/div&gt;</summary>
		<author><name>Ddevleeschauwer</name></author>	</entry>

	</feed>