Jim's Blog
Intalling Sun Directory 6.2 by hand.
I followed the following steps on installing Sun Directory Server 6.2 on Solaris 10 08/07 in a container that lives on a zfs. Click here to see how I set up zones on zfs. I did take advantage of having snapshots during this install. To err is easy with zfs :)
First - Install Sun Application Server 9.1. Accept most defaults except for selecting for 80 over 8080 and 443 over 8181.
Second, I setup Applicaiton Server 9.1 to start at boot the old fashion way.
# cd /etc/init.d
# cp nfs.server appserver9.1
Update it to look like.... (Left as an exercise, add a restart option)
#!/sbin/sh
#
case "$1" in
'start')
/opt/SUNWappserver/bin/asadmin start-domain --user=admin --passwordfile=/opt/SUNWappserver/.key
;;
'stop')
/opt/SUNWappserver/bin/asadmin stop-domain
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
# cd /etc/rc0.d
# ln /etc/init.d/appserver9.1 K99appserver9.1
# cd /etc/rc3.d
# ln /etc/init.d/appserver9.1 S99appserver9.1
Be sure to create a /opt/SUNWappserver/.key that looks like...
AS_ADMIN_PASSWORD=password
AS_ADMIN_MASTERPASSWORD=password
Now, you can start the application server...
# /etc/init.d/appserver9.1 start
It is at this point, I shutdown this zone, create a zfs snapshot of the filesystem so I can rollback to a clean zone with just application server installed.
Deploy directory 6.2...
# cd <where you unziped the bits>/DSEE_ZIP_Distribution
If you followed my previous blog about creating the repository of software....
# cd /share/software/dir62/DSEE_ZIP_Distribution
./dsee_deploy install -i /opt/ds62 -I -N
You will see lots of output.....
Now, setup cacao for dscc.
vi /opt/ds62/dsee6/cacao_2/etc/cacao/instances/default/private/cacao.properties
Default cacao using 111XX port numbers. I change them to 211XX.
Then run...
/opt/ds62/dsee6/cacao_2/usr/sbin/cacaoadm enable
/opt/ds62/dsee6/cacao_2/usr/sbin/cacaoadm start
Deploy /opt/ds62/var/dscc6/dscc.war to your application server.
Add this to /opt/SUNWappserver/domains/domain1/config/server.policy
// Permissions for Directory Service Control Center
grant codeBase "file:${com.sun.aas.instanceRoot}/applications/j2ee-modules/dscc/-"
{
permission java.security.AllPermission;
};
/opt/ds62/dscc6/bin/dsccsetup initialize
***
DSCC Application cannot be registered because it is not installed
***
DSCC Agent is already registered
***
Choose password for Directory Service Manager: <password>
Confirm password for Directory Service Manager: <password>
Creating DSCC registry...
DSCC Registry has been created successfully
***
http://<host>/dscc
And you are own your way to creating a new directory server and more...
To setup auto start at boot...
# cd /etc/init.d
# cp nfs.server dir62
# vi dir62 (This just start the dscc at boot - You'll add similiar entries for other directory servers you create)
# cat dir62
#!/sbin/sh
#
case "$1" in
'start')
/opt/ds62/var/dscc6/dcc/ads/start-slapd
;;
'stop')
/opt/ds62/var/dscc6/dcc/ads/stop-slapd
;;
'restart')
/opt/ds62/var/dscc6/dcc/ads/restart-slapd
;;
*)
echo "Usage: $0 { start | stop }"
exit 1
;;
esac
# cd /etc/rc0.d
# ln /etc/init.d/dir62 K99ds62
# cd /etc/rc3.d
# ln /etc/init.d/dir62 S99ds62
Now is a good time to take a zfs snapshot of the zone to rollback to a clean directory with just dscc running.
Posted at 02:40PM Oct 27, 2007 by jimblog in Software | Comments[2]
Saturday Oct 27, 2007
You could also use
dsadm enable-service /opt/ds62/var/dscc6/dcc/ads
to convert it to an SMF service.
Posted by William Hathaway on October 27, 2007 at 03:17 PM EDT #
According to the man page, to use enable-service feature, it has to installed by native packages.
Enables a Directory Server instance to be managed as a
service. This command is available on Windows distribu-
tions and on Solaris native package distributions only.
Posted by jimblog on October 27, 2007 at 05:15 PM EDT #