summaryrefslogtreecommitdiff
path: root/chat/ejabberd/patches/patch-ad
blob: fb3b83050a058748fed1dd9094b4e9943b20dd14 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
$NetBSD: patch-ad,v 1.2.2.1 2009/03/23 18:34:29 tron Exp $

Modified to use IPv6/v4 patch (https://support.process-one.net/browse/EJAB-389)

--- src/ejabberd.cfg.example.orig	2009-03-12 08:41:02.000000000 +0000
+++ src/ejabberd.cfg.example	2009-03-22 10:27:16.000000000 +0000
@@ -108,10 +108,9 @@
  [
 
   {5222, ejabberd_c2s, [
-
 			%%
 			%% If TLS is compiled and you installed a SSL
-			%% certificate, put the correct path to the 
+			%% certificate, put the correct path to the
 			%% file and uncomment this line:
 			%%
 			%%{certfile, "/path/to/ssl.pem"}, starttls,
@@ -124,12 +123,12 @@
   %%
   %% To enable the old SSL connection method in port 5223:
   %%
-  %%{5223, ejabberd_c2s, [
-  %%			{access, c2s},
-  %%			{shaper, c2s_shaper},
-  %%			{certfile, "/path/to/ssl.pem"}, tls,
-  %%			{max_stanza_size, 65536}
-  %%		       ]},
+  {5223, ejabberd_c2s, [
+			{access, c2s},
+			{shaper, c2s_shaper},
+			{certfile, "/path/to/ssl.pem"}, tls,
+			{max_stanza_size, 65536}
+		       ]},
 
   {5269, ejabberd_s2s_in, [
 			   {shaper, s2s_shaper},
@@ -139,14 +138,14 @@
   %%
   %% ejabberd_service: Interact with external components (transports...)
   %%
-  %%{8888, ejabberd_service, [
-  %%			    {access, all}, 
-  %%			    {shaper_rule, fast},
-  %%			    {ip, {127, 0, 0, 1}},
-  %%			    {hosts, ["icq.example.org", "sms.example.org"],
-  %%			     [{password, "secret"}]
-  %%			    }
-  %%			   ]},
+  %%{{8888, "127.0.0.1"},
+  %% ejabberd_service, [
+  %%		      {access, all}, 
+  %%		      {shaper_rule, fast},
+  %%		      {hosts, ["icq.example.org", "sms.example.org"],
+  %%		       [{password, "secret"}]
+  %%		      }
+  %%		     ]},
 
   {5280, ejabberd_http, [
 			 http_poll, 
@@ -225,17 +224,26 @@
 %% List of LDAP servers:
 %%{ldap_servers, ["localhost"]}.    
 %%
-%% LDAP attribute that holds user ID:
-%%{ldap_uids, [{"mail", "%u@mail.example.org"}]}. 
+%% Encryption of connection to LDAP servers:
+%%{ldap_encrypt, tls}.
 %%
-%% Search base of LDAP directory:
-%%{ldap_base, "dc=example,dc=com"}. 
+%% Port connect to LDAP server:
+%%{ldap_port, 636}.
 %%
 %% LDAP manager:
-%%{ldap_rootdn, "dc=example,dc=com"}. 
+%%{ldap_rootdn, "dc=example,dc=com"}.
 %%
 %% Password to LDAP manager:
-%%{ldap_password, "******"}. 
+%%{ldap_password, "******"}.
+%%
+%% Search base of LDAP directory:
+%%{ldap_base, "dc=example,dc=com"}.
+%%
+%% LDAP attribute that holds user ID:
+%%{ldap_uids, [{"mail", "%u@mail.example.org"}]}.
+%%
+%% LDAP filter:
+%%{ldap_filter, "(objectClass=shadowAccount)"}.
 
 %%
 %% Anonymous login support: