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