Sun Java logo    ��һҳ     Ŀ¼     ����     ��һҳ    

Sun logo
Sun Java System Instant Messaging 7 2005Q1 ����ָ�� 

�� 4 ��
���� Instant Messaging ���

����˵����ι��� Instant Messaging ������������·��������������ͼ��ӳ��򣩼�ִ��������������������ò���͹�����־��¼��

���°����¼��ڣ��ֱ������ Instant Messaging �еĸ��ֹ�������


���������û�

Instant Messaging �еĹ�����������һ�����г���ҽ��ڱ���ʣ��ƪ���н���������ע���ñ��͹��������û��ķ���������������

Instant Messaging ���ṩ���û��ñ����ߡ���Ҫʹ��Ŀ¼���ñ������ñ���� Instant Messaging �����û���Ĭ������£�Instant Messaging ���ṩ��ӡ��޸Ļ�ɾ�� Instant Messaging �����û��ľ���������ǣ������Զ��� Instant Messenger �������û����Լ���ӵ�Ŀ¼�С��й���Ϣ���μ�ע�����û���

���ڽ� LDAP ������һ��������ֹ�����û�ʹ�� Instant Messenger���ڽ� LDAP �����У���ֹ�����û�ʹ�� Instant Messaging ��Ψһ�����Ǵ�Ŀ¼��ɾ�����ǡ���ʹ�� Sun Java System Access Manager �������ԵIJ����У�������ֹ�����û����� Instant Messenger�����ʹ�� Access Manager ���� Instant Messaging����Ӧʹ���� Access Manager �ṩ���ñ����ߣ���Ҫ�����û�ע���Լ���

����Ա����ʹ�á�Instant Messaging ����Ա���ʿ��ơ�����4���� Instant Messaging �����û����йء�Instant Messaging ����Ա���ʿ��ơ��ĸ����Ϣ���μ������ԡ���ȫ�Ժ�վ����Ը��������ʹ�õ��� Sun Java System Access Manager����ʹ�� Access Manager �ñ� Instant Messaging �����û����йظ����Ϣ���μ� Sun Java System Communications Services Deployment Planning Guide��


����    

���ͨ��༭ sysWatch.acl �ļ���ʹ�����û���Ȩ��b�����������û��ļ��ӣ��� Instant Messenger ��ڲ������Щ�����û���ʾ������Ϳ���Ч����ֹ�����û�ʹ���޷����ͼ�ʱ��Ϣ�����ǣ������û���Ȼ�ܹ��鿴����������Ƶ�!�



ע�����û�

����ͨ���Զ��� Instant Messenger �������û�ע�ᡣ���û�ע���Instant Messaging ������ʹ��ע��ʱ�ṩ����Ϣִ�� ldapadd ��������Ŀ¼�д����û���Ŀ��


ע

�����ͨ�� Sun Java System Access Manager ʹ�� Instant Messaging����Ӧ�����û�ʹ�ô˷���ע�ᡣ��Ӧʹ���� Access Manager �ṩ���ñ����ߡ�


Ϊ�������û�ע�ᣬ��Ҫ�� im.jnlp.template �� im.html.template �ļ������һ��������� configure ʵ�ó���Ȼ�������Ҫ�����²�����Դ�ļ���

����˵��

�й��Զ�����Դ�ļ��ĸ����Ϣ���μ��� 5 �¡����� Instant Messenger����

�Զ��� Instant Messenger ���������û�ע��

���Զ�����Դ�ļ����������û�ע��ʱ������¼���Ի����л����һ���°�ť���û�����˰�ť���Է��ʡ����û�ע�ᡱ�Ի���ͨ��öԻ����û����Խ���ע�ᡣ���û�ע������ǵ���Ϣ����ӵ� LDAP Ŀ¼�С�

  �Զ��� Instant Messenger ���������û�ע��
  1. ���ı��༭���д� im.jnlp.template �ļ���
  2. Ĭ������£����ļ��洢�� im_svr_base/html �С�

  3. �����������
  4. <application-desc main-class="com.iplanet.im.client.iIM">

  5. �����в�����ӵ��ò���ĩβ��
  6. <argument>register=true</argument>

  7. ���沢�ر� im.jnlp.template �ļ���
  8. �� im.html.template �ظ����� 1 �� 4��
  9. ���� configure ʵ�ó��򣬲��ҽ���ʾ��ָ��Ҫ���õ����ʱ����ѡ��Messenger ��Դ�����й�˵��μ���װ��������� Instant Messaging��
  10. ���ʹ�õ��� Sun Java System Access Manager �� Sun Java System Web Server���밴���²�����Դ�ļ��е�˵�����²�����Դ�ļ���
  11. �� Instant Messenger��
  12. ����¼���Ի����н����֡��������û�����ť��

ע�����û�

�������û�ע�������ӵ� im.jnlp �� im.html �ļ��У��������²�����Դ�ļ����û��Ϳ���ע���Լ��ˡ�

  ע��Ϊ���û�
  1. �� Web ������У�ת�� Instant Messaging ��ҳ��
  2. �����ʼ���򵥻�ʹ�� Java Plug-in����
  3. ���֡���¼���Ի�����ʾ���������û�����ť��

  4. �����������û�����
  5. ���֡����û�ע�ᡱ�Ի���

  6. ���ṩ���ֶ���������Ϣ��Ȼ�󵥻�ȷ������
  7. �������Ϣ���洢��Ŀ¼�С�


ֹͣ�����ˢ�� Instant Messaging ���

ʹ�� imadmin ������ԣ�

imadmin ������ʵ�ó������ɳ����û�������� Instant Messaging ������Ͷ�·�������ϵͳӵ�й���Ȩ���û�ִ�С��������û�ͨ������4���з�������Ǹ���ݣ����ڰ�װ�ڼ�ָ����

imadmin ������ʵ�ó���λ������Ŀ¼�У�

im_svr_base/sbin

�� Instant Messaging �������ʹ Instant Messenger l�ӵ��÷������ϡ�ֹͣ Instant Messaging ��������ֹ����l�ӣ����Ͽ������� Instant Messenger �ͻ���֮���l�ӡ�

�� Instant Messaging ���

����һ�������������Ҳ���Էֱ�����������

ʹ�� imadmin ��������� Instant Messaging �������·��������������ͼ��ӳ�����ȡ���������õ������

  ���������
  ��������

ֹͣ Instant Messaging ���

����һ��ֹͣ���������Ҳ���Էֱ�ֹͣ���������

ʹ�� imadmin �������ֹͣ Instant Messaging �������·��������������ͼ��ӳ�����ȡ���������õ������

  ֹͣ�������
  ֹͣ�������

ˢ���������

ʹ�ô��� refresh ����� imadmin �������ֹͣ����������� Instant Messaging �������ˢ�¸���������á�

����һ��ˢ�����������Ҳ���Էֱ�ˢ�µ��������

���ۺ�ʱ�� iim.conf �ļ��и�����ò��������ˢ�����á�

  ˢ���������
  ˢ�µ������

��� Instant Messaging �����״̬

����ʹ�� imadmin ����һ��������������״̬����ֱ��鵥�������״̬��

  ������������״̬
  ��鵥�������״̬


��� Instant Messaging ������Ͷ�·���������ò���

Instant Messaging �����ò���洢�� iim.conf �ļ��С��й����ò���������б?�μ� Instant Messaging ���ò�����

Ҫ������ò������ֶ��༭ iim.conf �ļ��е����ò�����ֵ��Ȼ��ˢ�� Instant Messaging ���������á�����Ķ�·�����������ֻ��ʹ������ imadmin ����ˢ�¶�·������

imadmin refresh multiplexor

�йز�����ֵ�������б?�μ� Instant Messaging ���ò�����

  ������ò���
  1. ת�� config Ŀ¼�����磬�� Solaris �ϣ����룺
  2. cd etc/opt/SUNWiim/default/config

  3. �༭ iim.conf �ļ������磺
  4. vi iim.conf

  5. �����ġ�
  6. ˢ�����á�

  7. ����    

    ����Ķ�·����������˿� (iim_mux.listenport) ���·�������������Ӧ�ظ��� im.html �� im.jnlp �ļ�������ʹ Instant Messenger �޷�l�ӵ��������йظ����Ϣ���μ����� Instant Messenger �еIJ��֡�



������־��¼

Instant Messaging �ᴴ����־�ļ������ڼ�¼�¼������������������״̬��ϵͳ�����Լ��������·��������������ͼ��ӳ���������档ͨ��鿴��־�ļ������ԴӶ����Է����������м��ӡ����⣬����������ҪʱΪ Instant Messenger �ռ���־��¼��ݡ����������������ж���־��¼������˵��

��־��¼����

����ͨ���� iim.conf �ļ���ָ���������� Instant Messaging �������·��������������ͼ��ӳ������־��¼�����й��� iim.conf �ļ���������־��¼�������Ϣ���μ���� Instant Messaging ������Ͷ�·���������ò�����

��־�ļ���λ�������� Instant Messaging �����ָ����ͨ������־�ļ��洢�� im_runtime_base/log �С����� im_runtime_base ��Ĭ��ֵ���£�

��Ϊ����ϵͳά����һ���֣�����Ҫ���ڼ���������־�ļ����Է�ֹ��ռ�ù��Ĵ��̿ռ䡣������ִ�д˲���

�� 4-1 �ṩ����־�ļ�������Լ� iim.conf ����������ÿ����־�ļ���־��¼��������ò���

�� 4-1  ��־�ļ���ƺ���־��¼�������ò��� 

���

��־�ļ����

��־��¼�������ò���

������

xmppd.log

iim.log.iim_server.severity

��·������

mux.log

iim.log.iim_mux.severity

�������

agent-calendar.log

iim.log.agent-calendar.severity

���ӳ���

iim_wd.log

iim.log.iim_wd.severity

��Щ���ò�����Ծ�������ֵ��

���⣬��ʹ�� Sun Java System Access Manager �IJ����У���־��¼������ com.iplanet.services.debug.level ����ȷ������������ Sun Java System Access Manager ����ϵ� AMConfig.properties �ļ������á�Ĭ������£����ļ���װ������λ�ã�

AM_svr_base/lib/AMConfig.properties

���У�AM_svr_base �����ڰ�װ Access Manager ��Ŀ¼��

�����Կ��ܰ�����ֵ��

Ĭ������£�Sun Java System Portal Server ������־�ļ� (desktop.debug) �͹鵵��־�ļ���IMArchiveSearch.log �� IMArchiveSubmit.log���洢������λ�ã�

��־��¼����

ά��������־�ļ��ļ�������ȼ���������־�ļ�����ϸ���߳����̶ȡ����ȼ��ϸ߱�ʾ��ϸ��Ϣ���٣���Ϊ����־�ļ��н�ֻ��¼�����ȼ����������ԣ��¼����෴���ϵ͵����ȼ���ζ�Ż��н϶���ϸ��Ϣ����Ϊ����־�ļ��н���¼�϶��¼���

����Ϊ Instant Messaging �������·��������ӳ���͡��������ֱ�������־��¼����

�� 4-2 ˵�����������־��¼������Щ��־��¼������ Unix syslog �������弶���һ���Ӽ���

�� 4-2  Instant Messaging �������־��¼���� 

����

˵��

FATAL

�����ȼ�������־�ļ��м�¼���ٵ���־��¼��ϸ��Ϣ��ֻҪ�������������Σ��״��ͻ�����־�ļ������һ����־��¼������� FATAL ���⣬Ӧ�ó������ֹͣ����

ERROR

ֻҪ����ɻָ�������������λ��⵽������ϣ��ͻ�����־�ļ����һ����־��¼�����磬������δ����ͻ������һ������l�ӡ�

WARNING

ֻҪ��⵽�û����󣬾ͻ�����־�ļ����һ����־��¼�����磬�������޷����Ϳͻ����͵�ͨ�����ݡ�

INFO

ֻҪ������Ҫ����ͻ�����־�ļ����һ����־��¼�����磬�����û��ɹ���¼��ע��

DEBUG

����־�ļ��м�¼���񡣴���Ϣ������ڵ���Ŀ�ġ���ÿ���̻������У������ÿ���¼�����д����־�ļ����԰��������û��ڵ���Ӧ�ó���ʱȷ����������⡣

����ѡ�����ض�����־��¼����󣬽���¼��ü������Ӧ���¼����Լ��������ȼ���ߡ���ϸ�ȸ�͵ļ�����¼���

INFO �Ƿ������Ĭ�ϼ���ERROR �Ƕ�·������ͼ��ӳ�����־�ļ���Ĭ�ϼ���


ע

��� DEBUG ָ��Ϊ��־��¼������־�ļ�����ռ�ýϴ���̿ռ䡣Ӧ���Ӳ�������־�ļ����Է�ֹ��ռ�ù����̿ռ䡣


������־����

��ͨ���޸� iim.conf �ļ��еIJ���������־������ 4-1 ��һ����־�ļ��б����ҪΪÿ��������õIJ���

�йظ�IJ���ĸ����Ϣ���μ���� Instant Messaging ������Ͷ�·���������ò������йؼ��ӳ���ĸ����Ϣ���μ�������ӳ��������йء��������ĸ����Ϣ���μ�ʹ���������ʾ��

����ͻ�����־��¼

Ĭ������£�����¼�ͻ�����ݡ���֧�ֺ���п��ܻ�Ҫ���ռ��ͻ�����ݡ��ڴ�����£���Ҫ��������־��¼�����ܲ鿴�ͻ�����־��ݡ�

Ҫ���ÿͻ�����־��¼����Ҫ������²��裺

  1. �ڿͻ�������ϵġ�Java Web Start Ӧ�ó���������Java ���������塱��������־��¼��
  2. �����Բ�����ӵ� im.jnlp �ļ��С�
  3. ���б�Ҫ�����²��� Instant Messenger ��Դ��
  ���ÿͻ�����־��¼
  1. �������ڡ�Java Web Start Ӧ�ó���������Java ���������塱��������־��¼���ܡ�
  2. ���ͻ���ʹ�ú��н���汾 JDK �� Java ����������С�Java ���������塱���й�������־��¼��˵��μ�Java ���������塱��j�����

    ���ͻ���ʹ�� Java Web Start ��ʹ�ú��� JDK 5.0 �IJ���������С�Java Web Start Ӧ�ó���������Ȼ��

    1. ѡ���ļ���|����ѡ���
    2. ���֡���ѡ��Ի���

    3. �ڡ��߼���ѡ��У�ѡ����־����ѡ��Ȼ�����롰��־�ļ���ơ���
    4. ����ȷ������
  3. ���ı��༭���д� im.jnlp��
  4. �����������
  5. <application-desc main-class="com.iplanet.im.client.iIM">

  6. �����в�����ӵ��ò���ĩβ��
  7. <argument>debug=true</argument>

  8. ���沢�ر� im.jnlp �ļ���
  9. ���ʹ�õ��� Sun Java System Access Manager �� Sun Java System Web Server���밴���²�����Դ�ļ��е�˵�����²�����Դ�ļ���
  10. ������ Instant Messenger��


��� Instant Messaging �������j�ϲ���

�ڽ� LDAP �����У����j�϶�� Instant Messaging ���𣬽����һ����� Instant Messaging ���塣4�Բ�ͬ������������û����Ի��ڷ���Ȩ�ޱ˴�ͨ�š�ʹ���������ϵĻ����ң��Լ�����Զ�̷������ϵ�����Ƶ�!�

��ʹ�� Sun Java System Access Manager �IJ����У����� Instant Messaging ���������פ�ж���򡣿��Խ�������ָ��Ϊ Instant Messaging ������ʵ���Ĭ������ͬһ�������йܵIJ�ͬ���е������û����ܱ˴˽�������j�϶�� Instant Messaging ����ʱ��Ĭ�����е������û����Կ�������Զ�� Instant Messaging �������Ĭ�����е������û���

Ϊ�����������еĶ�� Instant Messaging ������֮��ͨ�ţ���Ҫ������ķ�������ʹ�����е����� Instant Messaging �������ʶ��÷��������ݡ�Instant Messaging ������ͨ�����������Ͷ˿ںš������� ID �Ϳ����ʶ�Լ���

�ڽ� LDAP �����У�}�������Ӧλ�ڲ�ͬ����

�ڷ����������У�����Ϊÿ�� Instant Messaging ������ָ��һ��������������ĸ��������ɣ����� IMserver1��


����    

����ʹ�� TLS (SSL) ��֤������Է�����ͨ�ŵİ�ȫ������}�������֮�佻�����ʱ����Ҫʹ��������ֹ����İ�ȫ�ֺ�����}�������֮���t��ʹ�ù�����j��ʱ���͸����Ҫ���ַ7������밴������˵������ Instant Messaging ������֮��� SSL��


���� Instant Messaging ������֮���ͨ��

����̽�˵�������}�� Instant Messaging ������iim.company22.com �� iim.i-zed.com��֮��ʵ��ͨ�š�

  ����}�������֮���ͨ��
  1. �ռ��� 4-3 ���г��������Ϣ��
  2. �� 4-3 �г��� iim.conf �ļ������ڽ��з�����Է�����ͨ�ŵIJ����Լ��� Instant Messaging ������iim.company22.com �� iim.i-zed.com.������Щ�����ֵ��

    �� 4-3  ������Է�����ͨ�ŵ�������Ϣ

    �� iim.conf �ļ��еIJ���

    ������ iim.company22.com �е�ֵ

    ������ iim.i-zed.com �е�ֵ

    iim_server.serverid

    Iamcompany22

    Iami-zed

    iim_server.password

    secretforcompany22

    secret4i-zed

    iim_server.coservers

    coserver1

    coserver1

    iim_server.domain

    iim.company22.com

    iim.i-zed.com

    iim_server.coserver1.host

    iim.i-zed.com:9919

    iim.company22.com:9919

    iim_server.coserver1.serverid

    Iami-zed

    Iamcompany22

    iim_server.coserver1.password

    secret4i-zed

    secretforcompany22

    iim_server.coserver1.domain

    i-zed.com

    company22.com

    �й����ò���ĸ����Ϣ���μ� Instant Messaging ���ò�����


    ע

    ����������Լ��ķ������Ա�ͬ���� Instant Messaging ������ͨ�š�ÿ�� Instant Messaging ���������������ƽ��б�ʶ��������ķ����ᱻ��ӵ� iim.conf �ļ��ڵ� iim_server.coservers �����С��˲����ж��ֵ�����ֵ֮���Զ������


  3. ת�������� iim.company22.com �е� config Ŀ¼�����磬�� Solaris �ϣ�
  4. cd /etc/opt/SUNWiim/default/config

  5. �༭ iim.conf �ļ������磺
  6. vi iim.conf


    ע

    iim.conf �ļ�Ӧ���û��ڰ�װ����д����� Instant Messaging �������ʻ����С���� Instant Messaging �������ʻ����ܶ�ȡ iim.conf �ļ����� Instant Messaging ������Ͷ�·�������޷���ȡ���á����⣬������޷��༭ iim.conf �ļ���


    ������ʾ�� iim.company22.com ���������Է�����ͨ�����Ӧ�IJ��� iim.conf �ļ����û��ɶ�������޸ģ�

    iim_server.serverid=Iamcompany22

    iim_server.password=secretforcompany22

    iim_server.domain=iim.icompany22.com

    iim_server.coservers=coserver1

    iim_server.coserver1.host=iim.i-zed.com:9919

    iim_server.coserver1.serverid=Iami-zed

    iim_server.coserver1.password=secret4i-zed

    iim_server.coserver1.domain=i-zed.com

  7. ���ڷ����� iim.i-zed.com �ϵ� iim.conf �ļ�����ִ������ 2 ������ 3 �еIJ���
  8. ������ʾ�� iim.i-zed.com ���������Է�����ͨ�����Ӧ�IJ��� iim.conf �ļ����û��ɶ�������޸ģ�

    iim_server.serverid=Iami-zed

    iim_server.password=secret4i-zed

    iim_server.domain=iim.i-zed.com

    iim_server.coservers=coserver1

    iim_server.coserver1.host=iim.company22.com:9919

    iim_server.coserver1.serverid=Iamcompany22

    iim_server.coserver1.password=secretforcompany22

    iim_server.coserver1.domain=company22.com

  9. �����IJ�ˢ��}��������ϵ����á�


�� Instant Messaging ��ʹ�� SSL

Instant Messaging ֧�֡���ȫ�׽��ֲ� (SSL)��Э�飬�Խ��м���ͨ�źͻ���֤��� Instant Messaging ��������֤��Instant Messaging ������֧�� SSL 3.0 �档

Instant Messaging ��·������� Instant Messenger Ҳ֧�� SSL�����ڿͻ���Ͷ�·������֮����м���ͨ�š�

Ϊ Instant Messaging ���������� SSL �����������������

  1. Ϊ��� Instant Messaging �������ȡ����װһ��֤�飬���� Instant Messaging ����������Ϊ���Ρ�֤����Ȩ����֤�顣
  2. ȷ��ÿ̨��Ҫʹ�� SSL ����ķ��������ͨ�ŵ� Instant Messaging ��������ȡ����װ֤�顣
  3. �ڷ������ iim.conf �ļ��������ʵ��IJ���Ӷ�� SSL��

�ڶ�·������� Instant Messenger ֮������ SSL �����������������

�йع���֤��ĸ����Ϣ���μ�λ�� http://docs.sun.com �� Web Server �� Application Server ��Ʒ�ĵ���

��֤��䷢������֤��

Ҫ�� Instant Messenger �Ͷ�·������֮������ SSL����Ҫ��װ֤�鲢�������ڰ�ȫͨ�ŵ���ݿ⡣����ʹ�� Web Server �� Application Server ����Ͱ�װ֤�顣

  ����Ͱ�װ֤��
  1. ��������� URL ���������������������
  2. http://hostname.domain-name:administration_port

    ����һ��ڣ���ʾ�������û���Ϳ��

  3. �����ڰ�װ Web Server �� Application Server ʱָ���Ĺ����û���Ϳ��
  4. ���֡����������ҳ�档

  5. �������5� Web Server �� Application Server ʵ���йذ�װ��������ʵ��ĸ����Ϣ���μ�λ������λ�õIJ�Ʒ�ĵ���
  6. http://docs.sun.com/

  7. ����������ݿ��Դ洢���ú�ר����Կ������Ϊ��Կ���ļ�����Կ���ļ����� SSL ���ܡ�
  8. �йش���������ݿ����Ϣ���μ�λ������λ�õ� Web Server �� Application Server ��Ʒ�ĵ���

    http://docs.sun.com/

  9. ��֤��䷢������֤�顣
  10. �й�����֤��ĸ����Ϣ���μ�λ������λ�õ� Web Server �� Application Server ��Ʒ�ĵ���

    http://docs.sun.com/

��װ֤��

�ӡ�֤��䷢���յ�������֤�����Ҫ��װ֤�顣

  ��װ֤��
  1. ��������� URL ���������������������
  2. http://hostname.domain-name:administration_port

    ����һ��ڣ���ʾ�������û���Ϳ��

  3. �����ڰ�װ Web Server �� Application Server ʱָ���Ĺ����û���Ϳ��
  4. ���֡����������ҳ�档

  5. ��װ������֤�顣
  6. �йذ�װ֤��ĸ����Ϣ���μ�λ������λ�õ� Web Server �� Application Server ��Ʒ�ĵ���

    http://docs.sun.com/

  7. ת�� Web Server �� Application Server �� alias Ŀ¼��
  8. ����ݿ��ļ��� alias Ŀ¼���Ƶ� Instant Messenger config Ŀ¼��
  9. Ҫ����ݿ��ļ��� alias Ŀ¼���Ƶ� Instant Messenger config Ŀ¼��������������

    cp https-serverid-hostname-cert8.db /etc/opt/SUNWiim/default/config/cert8.db

    cp https-serverid-hostname-key3.db /etc/opt/SUNWiim/default/config/key3.db

    cp secmod.db /etc/opt/SUNWiim/default/config/secmod.db


    ע

    Instant Messaging ����������ʱ����������û��� cert7.db��key3.db �� secmod.db �ļ�Ӧ���� Read Ȩ����


  10. ת�� Instant Messaging im_cfg_base Ŀ¼�����磬�� Solaris �ϣ�
  11. cd /etc/opt/SUNWiim/default/config

  12. ʹ����ѡ��ı༭��� sslpassword.conf �ļ������磬����Լ��룺
  13. vi sslpassword.conf

  14. �����������뵽 sslpassword.conf �ļ���
  15. Internal (Software) Token:password

    Password���ڴ���������ݿ��ڼ�ָ���Ŀ��

  16. �����ļ���

  17. ע

    ���� Instant Messenger �����û�Ӧ��ӵ�� sslpassword.conf �ļ��� Ownership �� Read Ȩ����


  18. �ڼ��� SSL �Ĺ���״����Թ���Ա��ݵ�¼ Web Server �� Application Server����ɾ��������֤��ʱ�����ķ�����ʵ��

�ڶ�·������� Instant Messenger ֮������ SSL

�� 4-4 �г��� iim.conf �ļ��������� Instant Messenger �Ͷ�·������֮������ SSL �IJ������л�����Щ�����˵���Ĭ��ֵ��

�� 4-4  Instant Messenger �Ͷ�·������ SSL ����

����

Ĭ��ֵ

˵��

iim_mux.usessl

off

����ֵ����Ϊ "on"�����·�������ڽ���Ӧ�����֮ǰ��Ҫ��������ܵ�ÿһl�Ӿ���� SSL �źŽ�����

iim_mux.secconfigdir

Solaris��/etc/opt/SUNWiim/default/config

Linux��/etc/opt/sun/im/default/config

��Ŀ¼����Կ��֤����ݿ⡣ͨ����ȫģ����ݿ⡣

iim_mux.keydbprefix

�����ַ�

��ֵ����Կ��ݿ��ļ����ǰ׺����Կ��ݿ��ļ������ʼ���� key3.db ��β��

���磬�����Կ��ݿ��ǰ׺ This-Database-key3.db����˲����ֵΪ This-Database��

iim_mux.certdbprefix

�����ַ�

��ֵ��֤����ݿ��ļ����ǰ׺��֤����ݿ��ļ������ʼ���� cert7.db ��β��

���磬���֤����ݿ��ǰ׺ Secret-stuff-cert7.db����˲����ֵΪ Secret-stuff��

iim_mux.secmodfile

secmod.db

��ֵ��ȫģ���ļ�����ơ�

iim_mux.certnickname

Server-Cert

��ֵ���ڰ�װ֤��ʱ�����֤����ơ�

֤�������ִ�Сд��

iim_mux.keystorepasswordfile

sslpassword.conf

��ֵ�������Կ��ݿ������ļ������·������ơ����ļ��������У�

Internal (Software) Token:password

���� password �DZ�����Կ��ݿ�Ŀ��

  �� Instant Messenger �Ͷ�·������֮������ SSL
  1. ת�� im_cfg_base Ŀ¼�����磬�� Solaris �ϣ�
  2. cd /etc/opt/SUNWiim/default/config

  3. �༭ iim.conf �ļ������磺
  4. vi iim.conf

  5. ���� 4-4 ���ἰ��ֵ��ӵ���·���������ò����С�
  6. ������һ����·���������ò���� iim.conf �ļ�ʾ��

    ! IIM multiplexor configuration

    ! =============================

    !

    ! Multiplexor specific options

    ! IP address and listening port for the multiplexor.

    ! WARNING: If this value is changed, the port value of ’-server’ argument

    ! in the client��s im.html and im.jnlp files should also be changed to match th

    is.

    iim_mux.listenport = "siroe.com:5222"

    ! The IM server and port the multiplexor talks to.

    iim_mux.serverport = "siroe.com:45222"

    ! Number of instances of the multiplexor.

    iim_mux.numinstances = "1"

    ! Maximum number of threads per instance

    iim_mux.maxthreads = "10"

    ! Maximum number of concurrent connections per multiplexor process

    iim_mux.maxsessions = "1000"

    iim_mux.usessl = "on"

    iim_mux.secconfigdir = "/etc/opt/SUNWiim/default/config"

    iim_mux.keydbprefix = "This-Database"

    iim_mux.certdbprefix = "Secret-stuff"

    iim_mux.secmodfile = "secmod.db"

    iim_mux.certnickname = "Server_Cert"

    iim_mux.keystorepasswordfile = "sslpassword.conf"

���� Instant Messenger �İ�ȫ�汾

ͨ���������� imssl.html �ļ��� imssl.jnlp �ļ����Ե��� Instant Messenger �İ�ȫ�汾����Щ�ļ�λ����ԴĿ¼�£���ԴĿ¼�Ǵ洢���� Instant Messenger ��Դ�Ļ�Ŀ¼��

Ҳ�ɽ�ָ����Щ applet ������ļ���t����ӵ� index.html �ļ��С�

���� SSL �Խ��з�����䰲ȫͨ��

��ǰ�������ڼ��� SSL ֮ǰ�����봴��֤����ݿ⡢��ȡ����װ������֤�顢���� CA��֤��䷢����֤�顣

  ���� SSL
  1. �������� iim.conf ����
    • iim_server.usesslport=true
    • iim_server.sslport=5223
    • ��Щ����Ӧ������ iim.conf �ļ��С�

  2. ����� Instant Messaging �������j�ϲ������������÷�����Է��������ã�Ȼ��������в���
    • iim_server.coserver1.usessl=true
    • �������Ķ˿ںţ�

    • iim_server.coserver1.host=hostname:5223
    • �˿ں�ӦΪ���������� SSL �˿ڡ�

      �����ǰ����� SSL ���õIJ��� iim.conf �ļ���

      ! Server to server communication port.

      iim_server.port = "5269��

      ! Should the server listen on the server to server communication port

      iim_server.useport = "True��

      ! Should this server listen for server-to-server communication using ssl port

      iim_server.usesslport = "True��

      iim_server.sslport=5223

      iim_server.coservers=coserver1

      iim_server.coserver1.serverid=Iamcompany22

      iim_server.coserver1.password=secretforcompany22

      iim_server.coserver1.usessl=true

      iim_server.coserver1.host=iim.i-zed.com:5223

      iim_server.serverid=Iami-zed

      iim_server.password=secret4i-zed

      iim_server.secconfigdir = "/etc/opt/SUNWiim/default/config"

      iim_server.keydbprefix = "This-Database"

      iim_server.certdbprefix = "Secret-stuff"

      iim_server.secmodfile = "secmod.db"

      iim_server.certnickname = "Server_Cert"

      iim_server.keystorepasswordfile = "sslpassword.conf"

��}�������֮������ SSL

�� 4-5 �г� iim.conf �ļ���������}�� Instant Messaging ������֮������ SSL �IJ������л�����Щ�����˵���Ĭ��ֵ��

�� 4-5  ������Է������ SSL ���ò��� 

����

Ĭ��ֵ

˵��

iim_server.secconfigdir

Solaris��/etc/opt/SUNWiim/default/config

Linux��/etc/opt/sun/im/default/config

��Ŀ¼����Կ��֤����ݿ⡣ͨ����ȫģ����ݿ⡣

iim_server.keydbprefix

��

��ֵ����Կ��ݿ��ļ����ǰ׺����Կ��ݿ��ļ������ʼ���� key3.db ��β��

���磬�����Կ��ݿ��ǰ׺ This-Database-key3.db����˲����ֵΪ This-Database��

iim_server.certdbprefix

��

��ֵ��֤����ݿ��ļ����ǰ׺��֤����ݿ��ļ������ʼ���� cert7.db ��β��

���磬���֤����ݿ��ǰ׺ Secret-stuff-cert7.db����˲����ֵΪ Secret-stuff��

iim_server.secmodfile

secmod.db

��ֵ��ȫģ���ļ�����ơ�

iim_server.certnickname

Server-Cert

��ֵ���ڰ�װ֤��ʱ�����֤����ơ�

֤�������ִ�Сд��

iim_server.
keystorepasswordfile

sslpassword.conf

��ֵ�������Կ��ݿ������ļ������·������ơ����ļ��������У�

Internal (Software) Token:password

���� password �DZ�����Կ��ݿ�Ŀ��

iim_server.trust_all_cert

false

����ֵΪ true�����������������֤�飬���һ������֤����Ϣ����־�ļ��С�


���� Instant Messaging �� LDAP ��������

Instant Messaging ������Ľ� LDAP ������Ҫһ��Ŀ¼�������ڽ� LDAP �����У�Instant Messaging ������ʹ��Ŀ¼������ִ�������û���֤�����������û���

��ʹ�� Sun Java System Access Manager �IJ����У�Instant Messaging ������ʹ�� Sun Java System Portal Server ���õ�Ŀ¼���� Access Manager ���𻷾��а�װ��Instant Messaging ������ʹ�� Access Manager ���õ�Ŀ¼���������û�����������ִ�������û���֤���� Access Manager �����У�Access Manager ִ����֤��

�����ʹ�� LDAP Ŀ¼ά���û���ƿռ䣬��Ĭ�����ý��ʹ�Ŀ¼����ģʽ�����¼��裺

�����ͨ��༭ iim.conf �ļ������ЩĬ�����á��йظ����Ϣ���μ�ʹ�� iim.conf �ļ���

��Ϊ�����û�����Ŀ¼

Instant Messaging ��Ҫ�ܹ�����Ŀ¼�����������Ŀ¼����Ϊ���������û�����Instant Messaging �Ϳ�������Ŀ¼�����Ŀ¼�����������û���ȡ�����������ͨ��ִ�и��Ӳ��裬ʹ������ӵ�д�Ŀ¼��ȡ����Ȩ�޵��û� ID ��֤��4���� iim.conf �ļ���

��Щ֤�������и�����ɣ�

  ʹ���������Ϊָ���������û�ִ��Ŀ¼����
  1. ȷ�� iim.conf �ļ������в����ֵ��
    • iim_ldap.usergroupbinddn - ָ�����ڰ󶨵�Ŀ¼�Ա��������ı�ʶ�� (dn)��
    • iim_ldap.usergroupbindcred - ָ�����ʶ�� (dn) һ��ʹ�õĿ���
    • ���磺

      iim_ldap.usergroupbinddn="cn=iim server,o=i-zed.com"

      iim_ldap.usergroupbindcred=secret


      ע

      ����ʹ�þ���д�뼶����Ȩ�޵Ĺ���Ա��֤�飬��Ϊ���б�Ҫ�����ݾ��Ƕ�����Ķ�ȡ����Ȩ�ޡ���ˣ������ھ��ж�ȡ������Ȩ�޵� LDAP �û�����ʹ�ô��û���֤�顣����һ���ȫ�ı�ѡ��������Ϊ��ǿ���û�ɢ������Ա��֤�顣


  2. ��ʹ�� Access Manager �IJ����У�Ŀ¼ͨ�������������û������ڴ�����£�Ӧ�� iim_ldap.useidentityadmin ���ò�������Ϊ true����Ҳ����ɾ���ע�͵��������ò���
    • iim_ldap.usergroupbinddn
    • iim_ldap.usergroupbindcred.
  3. �༭ iim.conf �ļ���
  4. �йر༭ iim.conf �ļ���˵��μ���� Instant Messaging ������Ͷ�·���������ò�����

    ��� iim_ldap.usergroupbinddn �� iim_ldap.usergroupbindcred ����δ������ iim.conf �ļ��У�����Խ�����ӵ��ļ��ڵ�����λ�á�

���ö�̬ LDAP ��������

�ڡ�LDAP �������У���̬����������û��ı�ʶ��4�������ǣ��������(�ڵ������С���̬���� Directory Server �б�����Ϊ groupOfUrls �����ࡣ

Ϊʹ�����û��ܹ����������в鿴��̬�鲢����̬����ӵ���jϵ���б��У�����Ҫ�� groupOfUrls �����(���������С�

��Ҫ�Է����������ļ� iim.conf ���������޸ģ�

  1. ת�� config Ŀ¼�����磬�� Solaris �ϣ�
  2. cd /etc/opt/SUNWiim/default/config

  3. �༭ iim.conf �ļ������磺
  4. vi iim.conf

  5. ��������Ϣ��ӵ� iim.conf �ļ���
  6. iim_ldap.usergroupbynamesearchfilter=(|(&(|(objectclass=groupofuniquenames)(objectclass=groupofurls)))(cn={0}))(&(objectclass=inetorgperson)(cn={0})))

    iim_ldap.groupbrowsefilter=(|(objectclass=groupofuniquenames)(objectclass=groupofurls))

    iim_ldap.groupclass=groupOfUniqueNames,groupOfURLs

���ԺͶ���������ǿ������õġ�Ĭ������£����� memberOfUrls ������̬��ij�Ա���ԡ������Ҫʹ�ò�ͬ�� memberOfUrls ��������ƣ��뽫 iim_ldap.groupmemberurlattr ѡ������Ϊ��Ҫʹ�õ�������ơ�


���� Instant Messaging ���

Instant Messaging �������κι��ϻָ����ߡ���ʹ��վ��ı���ϵͳ���ڱ������ú���ݿ�Ŀ¼��

������Ϣ

��Ҫ���ݵ� Instant Messaging ��Ϣ��(�������ͣ�

������Ϣ�洢������Ŀ¼ (im_cfg_base) �С�Ĭ��·�����£�

Instant Messaging ��ݴ洢����ݿ�Ŀ¼ (im_db_base) �С�im_db_base ��Ĭ��ֵ���£�

����Ѿ��Զ��� Instant Messenger ��Դ������뱸����Щ��Դ��Instant Messenger ��Դ��λ���ڰ�װ������ṩ��

ִ�б���

��Ȼ������Ϣ���ᾭ����ģ��� Instant Messaging �����û������ȴ����Ƶ������ˣ�Ϊ���������û���ݵĶ�ʧ��Ӧ�ö��ڱ��� Instant Messaging �����û���ݡ�������Ҫ�����а�װ�����ж�س���֮ǰִ�С�

Ҫ���������û���ݺ�������Ϣ������ֹͣ Instant Messaging ��������Ϊ�����ɷ�������Ĵ����ύ���Զ�ִ�С�

�ָ�������Ϣ

�����ִ��̹��ϲ������������û���ݺ�������Ϣ��ʧʱ����Ҫ�ָ������û���ݺ�������Ϣ�ı��ݡ�

  �ӱ��ݻָ������û����
  1. ת������ʱĿ¼��
  2. ���磺

    cd im_runtime_base

    im_runtime_base ��Ĭ��ֵ���£�

    Solaris��/var/opt/SUNWiim/default

    Linux��/var/opt/sun/im/

  3. ֹͣ Instant Messaging ����������룺
  4. imadmin stop

  5. ��������ݸ��Ƶ� im_db_base Ŀ¼��ȷ�����ֱ�����ݵ�Ŀ¼�ṹ��
  6. �����»ָ���ݵ�Ȩ�޺������ߡ�
  7. ��Щ�ļ�Ӧ���� Instant Messaging ϵͳ�û�ӵ�С��йش��û�����Ϣ���μ����� UNIX ϵͳ�û�������Ӧ��������Ȩ�ޣ�

    • �ļ���600�����ʾ�����ߵĶz�дȨ�ޣ�
    • Ŀ¼��700�����ʾ�����ߵĶa�д��ִ��Ȩ�ޣ�
    • �йظ��Ȩ�޺������ߵ���Ϣ��������IJ���ϵͳ�ĵ���

  8. �� Instant Messaging ������
  9. imadmin start



��һҳ     Ŀ¼     ����     ��һҳ    


�ļ����� 819-1489�� ��Ȩ���� 2005 Sun Microsystems, Inc. ��������Ȩ��