11 | | |
12 | | === Configurando o Servidor Jabber ===#configurando_jabber |
13 | | |
14 | | Caso você queira configurar o servidor Jabberd2, execute os seguintes passos: |
15 | | |
16 | | ==== 1 - Configurando o arquivo c2s.xml ==== |
17 | | |
18 | | Configure o arquivo c2s.xml, como mostrado abaixo : |
19 | | |
20 | | '''Importante''' :[[BR]] |
21 | | As tags “<!--” e “ -->”, significam que o conteúdo entre elas está comentado.[[BR]] |
22 | | |
23 | | '''1.1 Localize a sessão;'''[[BR]] |
24 | | <!-- Router connection configuration -->[[BR]] |
25 | | |
26 | | '''1.2 Localize a sessão;'''[[BR]] |
27 | | <!-- Local network configuration -->[[BR]] |
28 | | |
29 | | '''1.3 Informe o Nome do Servidor Jabber instalado;'''[[BR]] |
30 | | <id>URI</id>[[BR]] |
31 | | Exemplo : <id>jabber.example.com</id>[[BR]] |
32 | | |
33 | | '''1.4 Caso queira informar outra porta para a comunicação com o Jabber;'''[[BR]] |
34 | | <port>PORT</port>[[BR]] |
35 | | Exemplo : <port>5222</port>[[BR]] |
36 | | |
37 | | '''1.5 Localize a sessão;'''[[BR]] |
38 | | <!-- Input/output settings -->[[BR]] |
39 | | |
40 | | '''1.6 Parametrize o número de conexões;'''[[BR]] |
41 | | (default : 1024)[[BR]] |
42 | | <max_fds>QUANT_CONEXÕES</max_fds>[[BR]] |
43 | | Exemplo : <max_fds>2048</max_fds>[[BR]] |
44 | | |
45 | | '''1.7 Localize a sessão;'''[[BR]] |
46 | | <!-- Authentication/registration database configuration -->[[BR]] |
47 | | |
48 | | '''1.8 Informe o tipo de autenticação;'''[[BR]] |
49 | | <module>ldap</module>[[BR]] |
50 | | |
51 | | '''1.9 Comente a tag enabled;'''[[BR]] |
52 | | Uitilizando o serviço LDAP para autenticação não é possível a criação de usuários[[BR]] |
53 | | diretamente via servidor Jabber, portanto é necessário que esta diretiva esteja comentada.[[BR]] |
54 | | |
55 | | <!-- Account registration is enabled by default (provided the auth/reg module in use supports it). Comment this out to |
56 | | disable. -->[[BR]] |
57 | | |
58 | | <!--<enable/>-->[[BR]] |
59 | | |
60 | | '''1.10 Localize a sessão;'''[[BR]] |
61 | | <!-- LDAP module configuration --> |
62 | | |
63 | | '''1.11 Configurando o servidor Ldap, informe o Servidor Ldap e a porta;'''[[BR]] |
64 | | <host>ldap.server</host>[[BR]] |
65 | | <port>389</port>[[BR]] |
66 | | |
67 | | '''1.12 Habilite o uso do Ldap V3 se possível;'''[[BR]] |
68 | | <!-- Use LDAP v3 if possible. If disabled, v2 will be used. Encryption options are only available if v3 is enabled. -->[[BR]] |
69 | | <v3/>[[BR]] |
70 | | |
71 | | '''1.13 Informe o DN e a senha para autenticação do LDAP;'''[[BR]] |
72 | | <!-- DN to bind as for searches. If unspecified, the searches will be done anonymously.-->[[BR]] |
73 | | <binddn>uid=UID,dc=servidor,dc=jabber,dc=example</binddn>[[BR]] |
74 | | <bindpw>PASSWORD</bindpw>[[BR]] |
75 | | |
76 | | '''1.14 Base DN de sua árvore LDAP;'''[[BR]] |
77 | | <!-- base DN of the tree. You should specify a DN for each authentication realm declared in the <local/> section above, by using the realm attribute. -->[[BR]] |
78 | | <!--<basedn realm='company'>o=Company.com</basedn>-->[[BR]] |
79 | | <basedn>ou=CELEPAR,dc=pr,dc=gov,dc=br</basedn>[[BR]] |
80 | | |
81 | | ==== 2 - Configurando o arquivo sm.xml ==== |
82 | | |
83 | | Configure o arquivo s.xml, como mostrado abaixo :[[BR]] |
84 | | |
85 | | '''4.1 Importante;'''[[BR]] |
86 | | As tags “<!--” e “ -->”, significam que o conteúdo entre elas está comentado. |
87 | | |
88 | | '''4.2 Localize a sessão;'''[[BR]] |
89 | | <!-- Session manager configuration --> |
90 | | |
91 | | '''4.3 Informe o Nome do Servidor Jabber instalado;'''[[BR]] |
92 | | <id>im.pr.gov.br</id> |
93 | | |
94 | | '''4.4 Localize a sessão;'''[[BR]] |
95 | | <!-- User options --> |
96 | | |
97 | | '''4.5 Habilite a tag “auto-create” para a criação de sessões;'''[[BR]] |
98 | | <auto-create/> |