Migration guideline from Sun Directory Server 5.2 to 6.2

Although Sun Directory Server 6.2 has
been out for many months, some users are only starting to get their
feet wet with the new commands and Graphical User Interface. This
is an outline of tasks in Directory Server 5.2 and their equivalent
in Directory 6.2 . First a table of equivalent commands in 5.2 and 6.2, below that screenshots of equivalent tasks in 5.2 and 6.2

Command line

Task

Directory
5.2 command

Directory
6.2 command

Server management

Create server

N/A

dsadm create

Delete server

N/A

dsadm delete

Start server

start-slapd

dsadm start

Stop server

stop-slapd

dsadm stop

Restart

restart-slapd

dsadm restart

Backups

Backup

db2bak

dsadm backup

Restore

bak2db

dsadm restore

Import

ldif2db

dsadm import

Export

db2ldif

dsadm export

Certificates

Generate request

N/A

dsamd request-cert

Import certificate

N/A

dsadm add-cert

Key database

Replication

Create agreeement

N/A

dsconf create-repl-agmt

Delete agreement

N/A

dsconf delete-repl-agmt

Enable replication

N/A

dsconf enable-repl

Replication status

N/A

dsconf
show-repl-agmt-status

Suffix

Create

N/A

dsconf create-suffix

Reindex

N/A

dsconf reindex

Delete

N/A

dsconf delete-suffix

Export

N/A

dsconf export

Initialize/import

N/A

dsconf import

Indexes

Create index

N/A

dsconf create-index

Delete index

N/A

dsconf delete-index

Get index property

N/A

dsconf get-index-prop

Set index property

N/A

dsconf set-index-prop

List indexes

N/A

dsconf list-index

Reindex

N/A

dsconf reindex

Logs

Manage properties

N/A

dsconf set-log-prop


Graphical User Interface

Create server – version 5.2

Create server – version 6.2


Start & stop server – version 5.2

Start & stop server –
version 6.2


Backup & restore server – version 5.2

Backup & restore server
– version 6.2


Replication – version 5.2

Replication – version 6.2


Suffix management – version 5.2

Suffix management – version 6.2


LDIF import/export – version 5.2

LDIF import/export –
version 6.2


Manage certificates – version 5.2

Manage certificates – version 6.2


Configure logs
– version 5.2

Configure logs- version 6.2

Advertisements

Automating Directory Server 6 with Perl scripts

I am very grateful to Marina Sum for assisting with the publication of my article on SDN.
Perl scripts, combined with the Sun Java Directory Server 6 command line interface, provide a powerful mechanism for automating the rollout and configuration of Sun Java Directory Server.
Get all the details here
Thank you Marina…

Technorati Tags: , ,

Israel Web Tour 2008 & בלוג רישון בעיברית

Sun Microsystems was a sponsor of the Israel Web Tour -representatives from 15 select Web 2.0 Israeli startups visiting Silicon Valley. Representatives from the startups visited the Sun Menlo Park campus, on Tuesday February 5th, where Juan Carlos Soto briefed them in the Sun Executive Business Center.
I was fortunate to get a ticket to the showcase which took place at Microsoft on Wednesday the 6th of February. Each of the 15 companies had five minutes to pitch their company’s concept.
I was intrigued by:
1.5min    – user submitted content of “how to” guides.
2.AllofMe – you basically add photos and videos of yourself and your family and make an online movie of your life, relatives etc. What’s neat is you can zoom in or out to view a snapshot of your life on a day or even over a century.
3.BlogTv – blogging via video. The IsraelWebTour showcase at Microsoft was broadcast via BlogTv.
4.Clicktale & nuConomy – web analytics beyond page views. In particular, Clicktale can make a video of a customer’s entire interaction on your webpage. Thus for example, you can see why a customer completed half the shopping cart form and then discarded the transaction.  nuConomy will deliver reports on all customer interactions on your website.
5.Pageonce – an aggregation tool for all your finances, email, airline miles etc. It will also alert you, for example when a payment is due, when you are about to reach your maximum free cellular minutes or  when airline miles will expire.
6.Ply – a platform for video. They demo’d a cute video clip of the movie “When Harry met Sally” and the user can mouse over Sally and a little pop up window will display a brief bio of Meg Ryan.
7.Velingo (used to be Tagsense) – web search enhanced by tag words. Try it here: When I tried a search on Sun Microsystems, I got this: There is a firefox extension but for Windows only <sigh>

Now will have a go at blogging in Hebrew, painstakingly slow one letter at a time, as  I cannot touch-type in Hebrew

                                                                               סן מיפרו חברה טחנולוגי באמק הסיליקון נתמה חסות ל15 חברות ווב 2.0 לבקר אמק הסיליקון.

הם פגשו עים משקיעות וחברות.

נהנתי ליפגוש ישראלים וללמוד קצת ווב 2.0 תחנולוגים

Sun Java Directory Server 6.2 corruption and recovery…


This has not been classified as a Sun Directory Server error, rather it led to
a method of recovery that I would like to share.

I was working on a pair of Sun Directory Servers (version 6.2)
recently, with a custom plugin. The servers would only start with a very peculiar error
logged every second in the error log (anyone know what this means?)

[18/Jan/2008:18:49:15
+0000] – INFORMATION – conn=-1 op=-1 msgId=-1 – allow_operation:
component identity is NULL

After
a day of researching the error proved futile, we decided to rebuild
from scratch. Fortunately the data appeared intact, though there were
replication errors galore! Secondly, the partner master server logged
the same error every second so that server also needed to be rebuilt.

I
followed the following steps. Note that this was a pair of Sun
Directory Servers (version 6.2) with only a few thousand objects
(development and QA environment). The steps below may not be optimal
for many replicated servers containing hundreds of thousands or
millions of users.

  • Export
    the old instance to LDIF

  • Create
    a new instance

  • Copy
    the certificates and schema from the old instance to the new

  • Import
    the LDIF file

  • Enable
    replication

Assumptions

  1. Sun
    Java Directory Server 6.2

  2. Solaris
    10

  3. PKG
    version of Directory Server.(location of commands differs for the
    ZIP version)

  4. The
    hostname & IP address of the new and faulty Directory instances
    are the same

  5. Two
    servers in MMR (multi-master replication)

  6. Custom
    schema in 99user.ldif

Perform
the following……………..

First Solaris
host

1.
Shutdown the faulty Directory Server

/opt/SUNWdsee/ds6/bin/dsadm
stop /var/opt/SUNWdsee/dsins1

2.Export
the data without replication information

/opt/SUNWdsee/ds6/bin/dsadm
export -Q /var/opt/SUNWdsee/dsins1 dc=company,dc=com
/export/home/CleanExport.ldif

3.
Create a new instance on port 389 since the faulty instance is not
running

/opt/SUNWdsee/ds6/bin/dsadm
create /var/opt/SUNWdsee/dsins2

4.
Copy custom schema from the faulty directory server to the new
instance

(a)
backup the new 99user.ldif

cp
/var/opt/SUNWdsee/dsins2/config/schema/99user.ldif
/var/opt/SUNWdsee/dsins2/config/schema/99user.ldif.BACKUP

(b)
copy the schema

cp
/var/opt/SUNWdsee/dsins1/config/schema/99user.ldif
/var/opt/SUNWdsee/dsins1/config/schema/

5.
Start the new instance

/opt/SUNWdsee/ds6/bin/dsadm
start /var/opt/SUNWdsee/dsins2

6.
Create the suffix

/opt/SUNWdsee/ds6/bin/dsconf
create-suffix dc=company,dc=com

7.
Import the data into the new instance

/opt/SUNWdsee/ds6/bin/dsadm
import /var/opt/SUNWdsee/dsins2 /export/home/CleanExport.ldif
dc=company,dc=com

8.
Enable replication on the new instance

/opt/SUNWdsee/ds6/bin/dsconf
enable-repl /var/opt/SUNWdsee/dsins2 -d 40404 master
dc=company,dc=com

Second
Solaris host

1.
Shutdown the faulty Directory Server


/opt/SUNWdsee/ds6/bin/dsadm stop
/var/opt/SUNWdsee/dsins1

2.Create
a new instance on port 389 since the faulty instance is not running


/opt/SUNWdsee/ds6/bin/dsadm create
/var/opt/SUNWdsee/dsins2

3.
Copy custom schema from the faulty directory server to the new
instance

(a)
backup the new 99user.ldif

cp
/var/opt/SUNWdsee/dsins2/config/schema/99user.ldif
/var/opt/SUNWdsee/dsins2/config/schema/99user.ldif.BACKUP

(b)
copy the schema

cp
/var/opt/SUNWdsee/dsins1/config/schema/99user.ldif
/var/opt/SUNWdsee/dsins1/config/schema/

4.
Create the suffix

/opt/SUNWdsee/ds6/bin/dsconf
create-suffix dc=company,dc=com

5.
Start the new instance

/opt/SUNWdsee/ds6/bin/dsadm
start /var/opt/SUNWdsee/dsins2

6.
Enable replication on the new instance

/opt/SUNWdsee/ds6/bin/dsconf
enable-repl /var/opt/SUNWdsee/dsins2 -d 50505 master
dc=company,dc=com

First Solaris
host

1.Create
replication agreement from host 1 to host 2

/opt/SUNWdsee/ds6/bin/dsconf
create-repl-agmt dc=company,dc=com secondhost:389

2.Initialize
the second Directory Server with data from the first Directory Server

/opt/SUNWdsee/ds6/bin/dsconf
init-repl-dest dc=company,dc=com secondhost:389

Technorati Tags:

Patches required to enable Solaris servers and workstations to migrate to native-ldap clients




Notes:



  1. The tables below
    list patches required to allow Solaris SPARC servers and
    workstations to migrate to native-ldap clients. (The equivalent x86 patch is available on the download links below).


  2. The patch column
    contains a number which references the patch to install. The number
    is hyperlinked to http://sunsolve.sun.com
    to enable patch downloads. The links are current as of January
    8
    th, 2008.


  3. IMPORTANT: Solaris
    patches are revised and replaced by newer patches. The links in the
    patch column to download the patch, may not resolve the latest patch
    available. Please read the patch notes carefully, be aware of
    obsoleted patches and download the newer patch.






Solaris 10 patches


Install
SUNWnisu package from the Solaris 10 DVD, before installing patches



















































































































Order



Patch



Prerequisite
patch



1



119213
(NSS patch)



n/a



2



119042



n/a



3



119963



n/a



4



119574



n/a



5



119578



n/a



6



126419



n/a



7



118918



n/a



8



120900



n/a



9



125547



n/a



10



125378



n/a



11



121133



120900



12



126538



119042



13



119254



121133



14



118833



118918


119042


119578


119254



15



120272



119042


126538


118833



16



126897



119578



17



122640



118833



18



125503



118833


118918


119042


119574


119578


120272


120900


121133


126538


122640


126897



19



125369



118833


119578


126897



20



120011



119574


126538


122640


125369


125503


125547


126419


126897











Solaris 9 patches



































Order



Patch



Prerequisite
patch



1



119211
(NSS patch)



n/a



2



112233



n/a



3



112874



112233



4



112960



112874



Solaris 8
patches


























































































Order



Patch



Prerequisite
patch



1



119209
(NSS patch)



n/a



2



111310



n/a



3



111111



n/a



4



112936



n/a



5



116602



n/a



6



115827



n/a



7



113648



n/a



8



111317



n/a



9



111023



n/a



10



110386



n/a



11



108987



112936



12



108528



108987


111111


111310



13



108989



108528



14



128624



108528


108989


110386


111023


111317


113648


115827


116602



15



108993



108528


108989


110386


111023


111317


113648


115827


116602