Openldap : Différence entre versions

De Wiki_DR13
Aller à : navigation, rechercher
Ligne 16 : Ligne 16 :
  
 
  [root@ldap root]#cd openldap-2.3.36
 
  [root@ldap root]#cd openldap-2.3.36
  [root@ldap openldap-2.3.36]# ./configure --enable-bdb=yes --enable-crypt=yes --with-tls=yes  --enable-spaswd=yes \
+
  [root@ldap openldap-2.3.36]# CPPFLAGS=-DSLAPD_MULTIMASTER ./configure --enable-bdb=yes --enable-crypt=yes --with-tls=yes  --enable-spaswd=yes \
 
  --enable-cleartext=yes --enable-dyngroup=yes  --enable-dynlist=yes --enable-refint=yes --enable-sasl=no  \
 
  --enable-cleartext=yes --enable-dyngroup=yes  --enable-dynlist=yes --enable-refint=yes --enable-sasl=no  \
 
  --prefix=/usr --libexecdir=/usr/sbin --sysconfdir=/etc --localstatedir=/var/lib  
 
  --prefix=/usr --libexecdir=/usr/sbin --sysconfdir=/etc --localstatedir=/var/lib  

Version du 22 juin 2007 à 13:58

Installation

On travaille dans root :

#cd /root

Préparation de la machine et des dependances :

 #apt-get install libdb4.4 libdb4.4-dev libssl-dev openssl make gcc libsasl2-dev

Recuperation et décompression du logiciel :

#wget ftp://ftp.openldap.org/pub/OpenLDAP/openldap-release/openldap-2.3.36.tgz
#tar xvzf openldap-2.3.36.tgz


[root@ldap root]#cd openldap-2.3.36
[root@ldap openldap-2.3.36]# CPPFLAGS=-DSLAPD_MULTIMASTER ./configure --enable-bdb=yes --enable-crypt=yes --with-tls=yes  --enable-spaswd=yes \
--enable-cleartext=yes --enable-dyngroup=yes  --enable-dynlist=yes --enable-refint=yes --enable-sasl=no  \
--prefix=/usr --libexecdir=/usr/sbin --sysconfdir=/etc --localstatedir=/var/lib 

Comme il est ecrit on fait :

[root@ldap openldap-2.3.36]# make depend

Puis on compile et on installe :

[root@ldap openldap-2.3.36]# make -j 4
[root@ldap openldap-2.3.36]# make install

include         /usr/local/etc/openldap/schema/core.schema
include         /usr/local/etc/openldap/schema/cosine.schema
include         /usr/local/etc/openldap/schema/inetorgperson.schema
include         /usr/local/etc/openldap/schema/dyngroup.schema

database        ldbm
suffix          "dc=cnrs,dc=fr"
rootdn          "cn=Manager,dc=cnrs,dc=fr"


Démarrage du démon :

On initialise la racine de l'annuaire: on creer un fichier rootdse.ldif :

dn: dc=cnrs,dc=fr
objectclass: dcObject
objectclass: organization
o: cnrs DR13
dc: cnrs

puis on ajoute cela a l'arbre :

[root@ldap openldap]# ldapadd -x -D "cn=Manager,dc=cnrs,dc=fr" -W -f rootdse.ldif
Enter LDAP Password: (secret)
adding new entry "dc=cnrs,dc=fr"