# # mozillaOrgPerson schema v. 0.6.3 # # req. core # req. cosine # req. inetorgperson # attribute defs attributetype ( 1.3.6.1.4.1.13769.2.1.1 NAME ( 'mozillaNickname' ) SUP name ) attributetype ( 1.3.6.1.4.1.13769.2.1.2 NAME ( 'mozillaUseHtmlMail' ) SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.13769.2.1.3 NAME 'mozillaSecondEmail' EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} ) attributetype ( 1.3.6.1.4.1.13769.2.1.4 NAME 'mozillaHomeLocalityName' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} ) attributetype ( 1.3.6.1.4.1.13769.2.1.5 NAME 'mozillaPostalAddress2' EQUALITY caseIgnoreListMatch SUBSTR caseIgnoreListSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.41 ) attributetype ( 1.3.6.1.4.1.13769.2.1.6 NAME 'mozillaHomePostalAddress2' EQUALITY caseIgnoreListMatch SUBSTR caseIgnoreListSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.41 ) attributetype ( 1.3.6.1.4.1.13769.2.1.7 NAME ( 'mozillaHomeState' ) SUP name ) attributetype ( 1.3.6.1.4.1.13769.2.1.8 NAME 'mozillaHomePostalCode' EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{40} ) attributetype ( 1.3.6.1.4.1.13769.2.1.9 NAME ( 'mozillaHomeCountryName' ) SUP name SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.13769.2.1.10 NAME ( 'mozillaHomeFriendlyCountryName' ) EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) attributetype ( 1.3.6.1.4.1.13769.2.1.11 NAME ( 'mozillaHomeUrl' ) EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} ) attributetype ( 1.3.6.1.4.1.13769.2.1.12 NAME ( 'mozillaWorkUrl' ) EQUALITY caseIgnoreIA5Match SUBSTR caseIgnoreIA5SubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} ) # un-comment for all LDAP server NOT supporting SYNTAX 2.16.840.1.113730.3.7.1 attributetype ( 1.3.6.1.4.1.13769.2.1.13 NAME ( 'nsAIMid' ) DESC 'AOL Instant Messenger (AIM) Identity' EQUALITY telephoneNumberMatch SUBSTR telephoneNumberSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 ) attributetype ( 1.3.6.1.4.1.13769.2.1.14 NAME ( 'mozillaHomeStreet' ) EQUALITY caseIgnoreMatch SUBSTR caseIgnoreSubstringsMatch SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} ) # un-comment for Netscape 6.x and all other LDAP server supporting SYNTAX 2.16.840.1.113730.3.7.1 # attributeTypes ( 2.16.840.1.113730.3.1.2013 # NAME ( 'nsAIMid' ) # DESC 'AOL Instant Messenger (AIM) Identity' # SYNTAX 2.16.840.1.113730.3.7.1 ) attributetype ( 1.3.6.1.4.1.13769.2.1.96 NAME ( 'mozillaCustom1' ) SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.13769.2.1.97 NAME ( 'mozillaCustom2' ) SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.13769.2.1.98 NAME ( 'mozillaCustom3' ) SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE ) attributetype ( 1.3.6.1.4.1.13769.2.1.99 NAME ( 'mozillaCustom4' ) SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 SINGLE-VALUE ) # defined in "A Summary of the X.500(96) User Schema for use with LDAPv3" - RFC 2256 # # attributetype ( 2.5.4.6 NAME ( 'c' 'countryName' ) # DESC 'RFC2256: ISO-3166 country 2-letter code' # SUP name SINGLE-VALUE ) # defined in "The COSINE and Internet X.500 Schema" - RFC 1274 # # attributetype ( 0.9.2342.19200300.100.1.43 # NAME ( 'co' 'friendlyCountryName' ) # DESC 'RFC1274: friendly country name' # EQUALITY caseIgnoreMatch # SUBSTR caseIgnoreSubstringsMatch # SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 ) # objectClass defs objectclass ( 1.3.6.1.4.1.13769.2.2.1 NAME 'mozillaOrgPerson' SUP top AUXILIARY MAY ( sn $ givenName $ cn $ mozillaNickname $ title $ telephoneNumber $ facsimileTelephoneNumber $ mobile $ pager $ homePhone $ street $ postalCode $ mozillaPostalAddress2 $ mozillaHomeStreet $ mozillaHomePostalAddress2 $ l $ mozillaHomeLocalityName $ st $ mozillaHomeState $ mozillaHomePostalCode $ c $ mozillaHomeCountryName $ co $ mozillaHomeFriendlyCountryName $ ou $ o $ mail $ mozillaSecondEmail $ mozillaUseHtmlMail $ nsAIMid $ mozillaHomeUrl $ mozillaWorkUrl $ description $ mozillaCustom1 $ mozillaCustom2 $ mozillaCustom3 $ mozillaCustom4 ) ) # not part of the official Mozilla schema but read by Mozilla: 'departmentNumber' and 'postOfficeBox' # -Modifier le fichier sldap.conf pour qu'il contienne au moins: include C:/openldap/etc/schema/core.schema include C:/openldap/etc/schema/cosine.schema include C:/openldap/etc/schema/inetorgperson.schema include C:/openldap/etc/schema/MozillaOrgPerson.schema pidfile C:/openldap/var/run/slapd.pid argsfile C:/openldap/var/run/slapd.args database bdb suffix "dc=foxmail,dc=fr" rootdn "cn=Manager,dc=foxmail,dc=fr" rootpw secret directory C:/openldap/var/openldap-data secret de rootpw correspond au resultat de la commande C:\openldap>slappasswd -s motdepassechoisi et renvoi un résulta du type: {SSHA}VKU1HxiKz87DakKe6fHsATdKMzEXDVS à coller à la place de "secret" dans le fichier de conf. -Préparer un fichier texte nommé defdir.ldif contenant : dn: dc=foxmail,dc=fr objectclass: top objectclass: dcObject objectclass: organization o: foxmail dc: foxmail dn: ou=annuaire,dc=foxmail,dc=fr objectclass: top objectclass: organizationalUnit ou: annuaire description: annuaire et l'enregistrer dans le dossier d'installation d'OpenLDAP (C:\openldap par défaut) -Préparer un fichier texte nommé adresses.ldif contenant quelques contacts sous la forme: dn: cn=Alain Terrieur, ou=annuaire, dc=foxmail, dc=fr objectclass: top objectclass: person objectClass: organizationalPerson objectclass: inetOrgPerson objectclass: mozillaOrgPerson cn: Alain Terrieur sn: Terrieur gn: Alain mail: alain.terrieur@jesors.fr dn: cn=Alex Terrieur, ou=annuaire, dc=foxmail, dc=fr objectclass: top objectclass: person objectClass: organizationalPerson objectclass: inetOrgPerson objectclass: mozillaOrgPerson cn: Alex Terrieur sn: Terrieur gn: Alex mail: alex.terrieur@jerentre.fr dn: cn=Jean-Philippe Hervitmonslip, ou=annuaire, dc=foxmail, dc=fr objectclass: top objectclass: person objectClass: organizationalPerson objectclass: inetOrgPerson objectclass: mozillaOrgPerson cn: Jean-Philippe Hervitmonslip sn: Hervitmonslip gn: Jean-Philippe mail: jeanphilippe.hervitmonslip@houra.fr et l'enregistrer dans le dossier d'installation d'OpenLDAP (C:\openldap par défaut) -Cela étant fait, lancer le serveur LDAP par une commande: slapd -d 1 dans une invite de commande localisée en C:\openldap -Intégrer les définitions de la structure LDAP en utilisant une autre invite de commande: C:\openldap>ldapadd -xv -D "cn=Manager,dc=foxmail,dc=fr" -f dirdef.ldif -W -Intégrer les adresses au format LDIF dans la base de données LDAP via la commande: C:\openldap>ldapadd -xv -D "cn=Manager,dc=foxmail,dc=fr" -f adresses.ldif -W -Lancer Foxmail, ouvrir son carnet d'adresse, puis définir un nouveau compte LDAP via le menu outil > comptes LDAP > [Ajouter], -Configurer dans l'onglet "Normal": un nom de serveur ("test" par exemple), puis un nom de serveur("localhot" ou "127.0.0.1" ou une autre adresse IP accessible par la machine utilisant Foxmail) -Configurer dans l'onglet "Advancés": le port 389 et ne pas cocher SSL, remplir le champs "Recherche dans la base" avec "dc=foxmail, dc=fr" sans les guillemets