<div class="gmail_quote">2011/4/11 Massimo Barbieri <span dir="ltr"><<a href="mailto:massimo@fsfe.org">massimo@fsfe.org</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Hi!<br></blockquote><div><br></div><div>Hi 8-)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
I'm trying to build a personal Debian installer with simple-cdd. I added<br>
in my profiles packeges file libnss-ldapd and libpam-ldapd.<br>
<br>
Obviously during the installation process the user have to insert the<br>
configuration of those packages: the adress of the ldap server (ex:<br>
ldap://<a href="http://127.0.0.1" target="_blank">127.0.0.1</a>), the ldap base (ex: dc=example,dc=it), the<br>
libnss-ldapd config (ex: group and passwd) and if you want to enable<br>
shadow through nss.<br>
<br>
Is there a way to send those configurations with preseeds without asking<br>
to the user?<br>
<br></blockquote><div><br></div><div>yes, </div><div><br></div><div>a) debconf-get-selections ldap-libnss ( and others)</div><div><br></div><div>explo:</div><div><div>root@cerberus.contatogs.com.br:~# debconf-get-selections | grep libnss-ldap</div>
<div>libnss-ldap libnss-ldap/rootbindpw password (insert ldap password here)</div><div>libnss-ldap libnss-ldap/bindpw password (insert ldap password here)</div><div>libnss-ldap libnss-ldap/dblogin boolean false</div>
<div>libnss-ldap shared/ldapns/base-dn string dc=contatogs,dc=com,dc=br</div><div>libnss-ldap libnss-ldap/binddn string cn=proxyuser,dc=example,dc=net</div><div>libnss-ldap libnss-ldap/dbrootlogin boolean true</div>
<div># Actualizar automaticamente o ficheiro de configuração do libnss-ldap?</div><div>libnss-ldap libnss-ldap/override boolean true</div><div>libnss-ldap shared/ldapns/ldap-server string ldap://<a href="http://127.0.0.1/">127.0.0.1/</a></div>
<div>libnss-ldap libnss-ldap/confperm boolean false</div><div>libnss-ldap libnss-ldap/rootbinddn string cn=admin,dc=contatogs,dc=com,dc=br</div><div>libnss-ldap shared/ldapns/ldap_version select 2</div>
<div>libnss-ldap libnss-ldap/nsswitch note</div></div><div><br></div><div>ok change above w/ your own configuration</div><div><br></div><div>b) insert the lines above at a profile as</div><div><br></div><div>.....profiles/ldap.preseed</div>
<div><br></div><div>c) insert at default.conf something like:</div><div>....</div><div><div>dist="squeeze" </div><div>force_preseed="true"</div><div>locale="pt_BR"</div><div><br></div><div>profiles="ldap"</div>
</div><div>..............</div><div><br></div><div><br></div><div>c1)my build-cdd-debian tree</div><div><br></div><div><div>zeus-squeeze-amd64/:</div><div>total 24</div><div>drwxr-xr-x 2 pauloric pauloric 4096 Abr 7 09:31 profiles</div>
<div>-rw-r--r-- 1 pauloric pauloric 19175 Fev 14 10:25 splash.png</div><div><br></div><div>zeus-squeeze-amd64/profiles:</div><div>total 132</div><div>-rw-r--r-- 1 pauloric pauloric 44 Mar 17 13:21 apolo.description</div>
<div>-rw-r--r-- 1 pauloric pauloric 58 Fev 27 08:15 base.description</div><div>-rw-r--r-- 1 pauloric pauloric 18 Fev 26 19:34 base.packages</div><div>-rw-r--r-- 1 pauloric pauloric 26 Fev 19 16:54 cerberus.description</div>
<div>-rw-r--r-- 1 pauloric pauloric 45 Fev 26 19:34 cerberus.packages</div><div>-rw-r--r-- 1 pauloric pauloric 768 Mar 17 13:18 default.conf</div><div>-rw-r--r-- 1 pauloric pauloric 642 Out 30 2009 default.downloads</div>
<div>-rw-r--r-- 1 pauloric pauloric 30 Mar 4 14:57 default.packages</div><div>-rw-r--r-- 2 pauloric pauloric 34250 Abr 6 14:12 default.preseed</div><div>-rw-r--r-- 1 pauloric pauloric 34670 Abr 7 09:31 default.preseed.raid</div>
<div>-rw-r--r-- 1 pauloric pauloric 53 Out 30 2009 default.udebs</div><div>-rw-r--r-- 1 pauloric pauloric 21 Fev 19 16:54 hades.description</div><div>-rw-r--r-- 1 pauloric pauloric 42 Fev 26 19:35 hades.packages</div>
<div>-rw-r--r-- 1 pauloric pauloric 51 Fev 19 16:54 hercules.description</div><div>-rw-r--r-- 1 pauloric pauloric 45 Fev 26 19:35 hercules.packages</div><div>-rw-r--r-- 1 pauloric pauloric 28 Fev 19 16:54 mercurio.description</div>
<div>-rw-r--r-- 1 pauloric pauloric 45 Fev 26 19:35 mercurio.packages</div></div><div><br></div><div>d) call build-simple-cdd</div><div><br></div><div>#) build-simple-cdd</div><div><br></div><div>Be happy 80)</div><div>
<br></div><div>best regards, and andiamo que a fatto via </div><div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">
Ciao,<br>
Massimo<br>
<font color="#888888">--<br>
XMPP: <a href="mailto:max-b@jabber.org">max-b@jabber.org</a><br>
OpenPGP Key-Id: 0x5D168FC1<br>
<br>
<br>
<br>
<br>
<br>
</font><br>_______________________________________________<br>
Simple-cdd-devel mailing list<br>
<a href="mailto:Simple-cdd-devel@lists.alioth.debian.org">Simple-cdd-devel@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/simple-cdd-devel" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/simple-cdd-devel</a><br>
<br></blockquote></div><br>