Hi there. Is there a howto move from hdb to mdb?
What we need to do is to transfer our directory from hdb to the mdb. Is there a book to learn about openldap? With the new OLC way of doing things?
Can i have hdb and mdb running at the same time?
Currently I have done the following: 1. Load the Module back_mdb 2. Created a OlcBackend 3. Created a OlcDatabase
Thank you in advance
On 09/20/16 12:40 +0000, Nikolas Stylianides wrote:
Hi there. Is there a howto move from hdb to mdb?
What we need to do is to transfer our directory from hdb to the mdb. Is there a book to learn about openldap? With the new OLC way of doing things?
Can i have hdb and mdb running at the same time?
Currently I have done the following:
- Load the Module back_mdb
- Created a OlcBackend
- Created a OlcDatabase
See http://www.openldap.org/doc/admin24/ and slapcat(8), slapadd(8), slapd-mdb(5), and slapd-config.
Consider converting in two steps - converting your database to mdb first, then converting to slapd-config.
On Tue, Sep 20, 2016 at 2:40 PM, Nikolas Stylianides <nstylianides@gmail.com
wrote:
Is there a howto move from hdb to mdb?
Can i have hdb and mdb running at the same time?
I see no problem to have them on different servers. You can set a new server with mdb backend, import a dump (slapcat(8) + slapadd(8)) and start replicating from your actual servers.
And then, after some testing, you can make the switch between servers.
Regards,
*Oscar Remírez de Ganuza Satrústegui* IT Services Universidad de Navarra Tel. +34 948425600 x803130 http://www.unav.edu/web/it/
Thank you Dan. I tried to do that but it took me like forever. I am using Apache Directory Studio and doing modifications from this tool really gave big headaches. Is there a better tool to manage both config and the databases?
Στις Πέμ, 22 Σεπ 2016 στις 4:21 π.μ., ο/η Dan White < dwhite@cafedemocracy.org> έγραψε:
On 09/20/16 12:40 +0000, Nikolas Stylianides wrote:
Hi there. Is there a howto move from hdb to mdb?
What we need to do is to transfer our directory from hdb to the mdb. Is there a book to learn about openldap? With the new OLC way of doing things?
Can i have hdb and mdb running at the same time?
Currently I have done the following:
- Load the Module back_mdb
- Created a OlcBackend
- Created a OlcDatabase
See http://www.openldap.org/doc/admin24/ and slapcat(8), slapadd(8), slapd-mdb(5), and slapd-config.
Consider converting in two steps - converting your database to mdb first, then converting to slapd-config.
Thank you Oscar. Dan also provided a good solution. I think both of them work like a charm. The problem for me is that i wanted to do it all in a GUI (Apache Directory Studio) which messes up with backend and database or even object indexes.
Anyway now i managed to do that using slapxxx and old good ldapmodify. Thank you a lot. Do you know a good policy for increamental backup? I mean i only have now 10000 users but in the future it will really get bigger and i hate to dump the whole database every night.
Στις Πέμ, 22 Σεπ 2016 στις 9:37 π.μ., ο/η Óscar Remírez de Ganuza Satrústegui oscarrdg@unav.es έγραψε:
On Tue, Sep 20, 2016 at 2:40 PM, Nikolas Stylianides < nstylianides@gmail.com> wrote:
Is there a howto move from hdb to mdb?
Can i have hdb and mdb running at the same time?
I see no problem to have them on different servers. You can set a new server with mdb backend, import a dump (slapcat(8) + slapadd(8)) and start replicating from your actual servers.
And then, after some testing, you can make the switch between servers.
Regards,
*Oscar Remírez de Ganuza Satrústegui* IT Services Universidad de Navarra Tel. +34 948425600 x803130 http://www.unav.edu/web/it/
--
Δρ. Νικόλας Στυλιανίδης Ηλεκτρολόγος Μηχανικός και Μηχ. Υπολογιστών
Nikolas Stylianides, Dr. Dr. Eng. in Electrical & Computer Engineering
Contacts ------------- Mobile Tel.: +35796741315 Email: nstylianides@leafnet.com.cy, nstylianides@gmail.com Skype: nicostyl
Affilication --------------- LEAF NET LTD: Research & Development Open University of Cyprus: Research Associate, APPLIED HEALTH INFORMATICS Master Programme Academic Board Member
Tο λακωνίζειν εστί φιλοσοφείν / Μηδέν Άγαν - Χίλων ο Λακεδαιμόνιος:
Brevity is the soul of wit - Shakespeare William (Hamlet)
Hi,
Do you know a good policy for increamental backup? I mean i only have now 10000 users but in the future it will really get bigger and i hate to dump the whole database every night.
Why not? I'm dumping our directory with 70.000 entries using slapcat every night in less than a minute.
Dirk
Ok. Maybe you are right. Sometimes "Less is more". I am moving forward to high availability and i am planning to set two ldap servers in Mirror mode. I have already setup a haproxy in front but i have two problems.
1. Not able to enable StartTLS (currently only SSL is functional) 2. It seems quite slower. Is this normal?
Στις Πέμ, 22 Σεπ 2016 στις 12:20 μ.μ., ο/η Dirk Kastens < dirk.kastens@uni-osnabrueck.de> έγραψε:
Hi,
Do you know a good policy for increamental backup? I mean i only have now 10000 users but in the future it will really get bigger and i hate to dump the whole database every night.
Why not? I'm dumping our directory with 70.000 entries using slapcat every night in less than a minute.
Dirk
--
Δρ. Νικόλας Στυλιανίδης Ηλεκτρολόγος Μηχανικός και Μηχ. Υπολογιστών
Nikolas Stylianides, Dr. Dr. Eng. in Electrical & Computer Engineering
Contacts ------------- Mobile Tel.: +35796741315 Email: nstylianides@leafnet.com.cy, nstylianides@gmail.com Skype: nicostyl
Affilication --------------- LEAF NET LTD: Research & Development Open University of Cyprus: Research Associate, APPLIED HEALTH INFORMATICS Master Programme Academic Board Member
Tο λακωνίζειν εστί φιλοσοφείν / Μηδέν Άγαν - Χίλων ο Λακεδαιμόνιος:
Brevity is the soul of wit - Shakespeare William (Hamlet)
On 22/09/16 02:21, Dan White wrote:
Consider converting in two steps - converting your database to mdb first, then converting to slapd-config.
I did things the opposite way round:
1. slapcat your data database 2. slapcat your config database 3. Modify the generated config database ldif to correspond with that of an mdb database i.e. change the objectclass, remove any bdb-specific configuration, add the mdb specifics (MaxSize, maxReaders etc- there's a lot less tunables in mdb) 3. Stop slapd and move your "old" config aside 4. slapadd your new config database 5. If 4 is successful, move your data directory aside and 6. Slapadd your data ldif. 7. Go for a (short) cup of tea 8. Fire up slapd.
openldap-technical@openldap.org