Re: How to move from hdb to mdb

2016-09-22 Thread Mark Cairney


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.
-- 
/

Mark Cairney
ITI Enterprise Services
Information Services
University of Edinburgh

Tel: 0131 650 6565
Email: mark.cair...@ed.ac.uk
PGP: 0x435A9621

***/

The University of Edinburgh is a charitable body, registered in
Scotland, with registration number SC005336.



signature.asc
Description: OpenPGP digital signature


Re: How to move from hdb to mdb

2016-09-22 Thread Nikolas Stylianides
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.kast...@uni-osnabrueck.de> έγραψε:

> Hi,
>
> > Do you know a good policy for increamental backup? I mean i only have
> > now 1 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: nstyliani...@leafnet.com.cy, nstyliani...@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)


Re: How to move from hdb to mdb

2016-09-22 Thread Dirk Kastens

Hi,


Do you know a good policy for increamental backup? I mean i only have
now 1 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



smime.p7s
Description: S/MIME Cryptographic Signature


Re: How to move from hdb to mdb

2016-09-22 Thread Nikolas Stylianides
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
1 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  έγραψε:

> On Tue, Sep 20, 2016 at 2:40 PM, Nikolas Stylianides <
> nstyliani...@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: nstyliani...@leafnet.com.cy, nstyliani...@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)


Re: How to move from hdb to mdb

2016-09-22 Thread Nikolas Stylianides
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 <
dwh...@cafedemocracy.org> έγραψε:

> On 09/20/16 12:40 +, 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:
> >1. Load the Module back_mdb
> >2. Created a OlcBackend
> >3. 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.
>
-- 
Δρ. Νικόλας Στυλιανίδης
Ηλεκτρολόγος Μηχανικός και Μηχ. Υπολογιστών

Nikolas Stylianides, Dr.
Dr. Eng. in Electrical & Computer Engineering

Contacts
-
Mobile Tel.: +35796741315
Email: nstyliani...@leafnet.com.cy, nstyliani...@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)


Re: How to move from hdb to mdb

2016-09-22 Thread Óscar Remírez de Ganuza Satrústegui
On Tue, Sep 20, 2016 at 2:40 PM, Nikolas Stylianides  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/


Re: How to move from hdb to mdb

2016-09-21 Thread Dan White

On 09/20/16 12:40 +, 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:
1. Load the Module back_mdb
2. Created a OlcBackend
3. 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.



How to move from hdb to mdb

2016-09-21 Thread Nikolas Stylianides
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
-- 
Δρ. Νικόλας Στυλιανίδης
Ηλεκτρολόγος Μηχανικός και Μηχ. Υπολογιστών

Nikolas Stylianides, Dr.
Dr. Eng. in Electrical & Computer Engineering

Contacts
-
Mobile Tel.: +35796741315
Email: nstyliani...@leafnet.com.cy, nstyliani...@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)