doc:appunti:linux:sa:sldap_2_5
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionNext revisionBoth sides next revision | ||
doc:appunti:linux:sa:sldap_2_5 [2023/12/02 11:11] – niccolo | doc:appunti:linux:sa:sldap_2_5 [2023/12/02 11:45] – [Migrazione da HDB a MDB] niccolo | ||
---|---|---|---|
Line 14: | Line 14: | ||
FIXME La **[[https:// | FIXME La **[[https:// | ||
+ | |||
+ | Per ripristinare il servizio si sono eseguite ex-nove tutte le operazoni necessarie, in particolare: | ||
+ | |||
+ | * Caricato lo schema **mozillaAbPersonAlpha**. | ||
+ | * Creato il database #2 per gestire il suffisso **ou=Addressbook, | ||
+ | * Creata la organizationalUnit **Addressbook**. | ||
+ | * Creata la inetOrgPerson **cn=guest**. | ||
+ | * Caricate tutte le entry objectClass **mozillaAbPersonAlpha**. | ||
===== (Re)installation from scratch ===== | ===== (Re)installation from scratch ===== | ||
Line 43: | Line 51: | ||
Using '' | Using '' | ||
- | Here it is the example of an LDIF file to create a new DIT database, supposed to contain an addressbook. We will use the MDB backend and the ''/ | + | Here it is the example of an LDIF file to create a new DIT database, supposed to contain an addressbook. We will use the MDB backend and the ''/ |
The file was named **abook-db.ldif**: | The file was named **abook-db.ldif**: | ||
Line 65: | Line 73: | ||
</ | </ | ||
- | Notice we will grant read-only privileges to an item **cn=guest** in the same LDAP tree. Before creating the database we create the destination directory and assign the required permissions: | + | Notice we will grant read-only privileges to an item **cn=guest** in the same LDAP tree; that item will be added into the database later. Before creating the database we create the destination directory and assign the required permissions: |
< | < | ||
Line 155: | Line 163: | ||
The upgrade process created a backup of the existing LDAP database into the **/ | The upgrade process created a backup of the existing LDAP database into the **/ | ||
- | Beware that the restore will be not a perfect copy of the previous database. Several | + | Beware that the restore will be not a perfect copy of the previous database. Several |
* structuralObjectClass | * structuralObjectClass | ||
Line 170: | Line 178: | ||
ldapadd -x -W -D " | ldapadd -x -W -D " | ||
</ | </ | ||
+ | |||
+ | In the following three paragraphs we will see what is needed for a full restore. | ||
+ | |||
==== Create the Addressbook organizationalUnit ==== | ==== Create the Addressbook organizationalUnit ==== | ||
Line 215: | Line 226: | ||
</ | </ | ||
+ | ==== Testing an ldapsearch ==== | ||
+ | |||
+ | Finally you can test if the LDAP database is working doing a full search with **ldapsearch**: | ||
+ | |||
+ | <code bash> | ||
+ | ldapsearch -W \ | ||
+ | -H ldap:// | ||
+ | -D " | ||
+ | -b ' | ||
+ | </ | ||
+ | |||
+ | The **ldap** protocol is on port **389/ | ||
===== Web References ===== | ===== Web References ===== | ||
doc/appunti/linux/sa/sldap_2_5.txt · Last modified: 2023/12/02 12:31 by niccolo