[Simple-cdd-devel] Preseed for libnss-ldapd and libpam-ldapd

paulo bruck paulobruck1 at gmail.com
Mon Apr 11 12:00:57 UTC 2011


2011/4/11 Massimo Barbieri <massimo at fsfe.org>

> Hi!
>

Hi 8-)


> I'm trying to build a personal Debian installer with simple-cdd. I added
> in my profiles packeges file libnss-ldapd and libpam-ldapd.
>
> Obviously during the installation process the user have to insert the
> configuration of those packages: the adress of the ldap server (ex:
> ldap://127.0.0.1), the ldap base (ex: dc=example,dc=it), the
> libnss-ldapd config (ex: group and passwd) and if you want to enable
> shadow through nss.
>
> Is there a way to send those configurations with preseeds without asking
> to the user?
>
>
yes,

a) debconf-get-selections ldap-libnss ( and others)

explo:
root at cerberus.contatogs.com.br:~# debconf-get-selections | grep libnss-ldap
libnss-ldap     libnss-ldap/rootbindpw  password  (insert ldap password
here)
libnss-ldap     libnss-ldap/bindpw      password    (insert ldap password
here)
libnss-ldap     libnss-ldap/dblogin     boolean false
libnss-ldap     shared/ldapns/base-dn   string  dc=contatogs,dc=com,dc=br
libnss-ldap     libnss-ldap/binddn      string
 cn=proxyuser,dc=example,dc=net
libnss-ldap     libnss-ldap/dbrootlogin boolean true
# Actualizar automaticamente o ficheiro de configuração do libnss-ldap?
libnss-ldap     libnss-ldap/override    boolean true
libnss-ldap     shared/ldapns/ldap-server       string  ldap://127.0.0.1/
libnss-ldap     libnss-ldap/confperm    boolean false
libnss-ldap     libnss-ldap/rootbinddn  string
 cn=admin,dc=contatogs,dc=com,dc=br
libnss-ldap     shared/ldapns/ldap_version      select  2
libnss-ldap     libnss-ldap/nsswitch    note

ok change above w/ your own configuration

b) insert the lines above at a profile as

.....profiles/ldap.preseed

c) insert at default.conf something like:
....
dist="squeeze"
force_preseed="true"
locale="pt_BR"

profiles="ldap"
..............


c1)my build-cdd-debian tree

zeus-squeeze-amd64/:
total 24
drwxr-xr-x 2 pauloric pauloric  4096 Abr  7 09:31 profiles
-rw-r--r-- 1 pauloric pauloric 19175 Fev 14 10:25 splash.png

zeus-squeeze-amd64/profiles:
total 132
-rw-r--r-- 1 pauloric pauloric    44 Mar 17 13:21 apolo.description
-rw-r--r-- 1 pauloric pauloric    58 Fev 27 08:15 base.description
-rw-r--r-- 1 pauloric pauloric    18 Fev 26 19:34 base.packages
-rw-r--r-- 1 pauloric pauloric    26 Fev 19 16:54 cerberus.description
-rw-r--r-- 1 pauloric pauloric    45 Fev 26 19:34 cerberus.packages
-rw-r--r-- 1 pauloric pauloric   768 Mar 17 13:18 default.conf
-rw-r--r-- 1 pauloric pauloric   642 Out 30  2009 default.downloads
-rw-r--r-- 1 pauloric pauloric    30 Mar  4 14:57 default.packages
-rw-r--r-- 2 pauloric pauloric 34250 Abr  6 14:12 default.preseed
-rw-r--r-- 1 pauloric pauloric 34670 Abr  7 09:31 default.preseed.raid
-rw-r--r-- 1 pauloric pauloric    53 Out 30  2009 default.udebs
-rw-r--r-- 1 pauloric pauloric    21 Fev 19 16:54 hades.description
-rw-r--r-- 1 pauloric pauloric    42 Fev 26 19:35 hades.packages
-rw-r--r-- 1 pauloric pauloric    51 Fev 19 16:54 hercules.description
-rw-r--r-- 1 pauloric pauloric    45 Fev 26 19:35 hercules.packages
-rw-r--r-- 1 pauloric pauloric    28 Fev 19 16:54 mercurio.description
-rw-r--r-- 1 pauloric pauloric    45 Fev 26 19:35 mercurio.packages

d) call build-simple-cdd

#) build-simple-cdd

Be happy 80)

best regards, and andiamo que a fatto via



> Ciao,
> Massimo
> --
> XMPP: max-b at jabber.org
> OpenPGP Key-Id: 0x5D168FC1
>
>
>
>
>
>
> _______________________________________________
> Simple-cdd-devel mailing list
> Simple-cdd-devel at lists.alioth.debian.org
> http://lists.alioth.debian.org/mailman/listinfo/simple-cdd-devel
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/simple-cdd-devel/attachments/20110411/ddea6d37/attachment.htm>


More information about the Simple-cdd-devel mailing list