Debian Codegraph @

configs/samples/res_ldap.conf.sample

raw
1 ;
2 ; Configuration file for res_config_ldap
3 ;
4
5 ; Realtime configuration
6 ; ----------------------
7 ; In order to use this module, you start
8 ; in extconfig.conf with a configuration like this:
9 ;
10 ; extensions = ldap,"dc=myDomain,dc=myDomainExt",extensions
11 ;
12 ; In the case of LDAP the last keyword in each line above specifies
13 ; a section in this file.
14 ;
15 ; LDAP schema and ldif files can be located in contrib/scripts.
16
17 ; TLS support
18 ; -----------
19 ; Note that you can configure an ldaps: url here to get TLS support.
20 ; Detailed configuration of certificates and supported CAs is done in your
21 ; ldap.conf file for OpenLDAP clients on your system.
22 ; This requires that you have OpenLDAP libraries compiled with TLS support
23
24 ; *********************************************************************************
25 ; NOTE: res_ldap.conf should be chmod 600 because it contains the plain-text LDAP
26 ; password to an account with WRITE access to the asterisk configuration.
27 ; *********************************************************************************
28
29 [_general]
30 ;
31 ; Specify one of either host and port OR url. URL is preferred, as you can
32 ; use more options.
33 ;host=192.168.1.1 ; LDAP host
34 ;port=389
35 ;url=ldap://ldap3.mydomain.com:3890
36 ;protocol=3 ; Version of the LDAP protocol to use; default is 3.
37 ;basedn=dc=example,dc=tld ; Base DN
38 ;user=cn=asterisk,dc=example,dc=tld ; Bind DN
39 ;pass=MyPassword ; Bind password
40
41 ; Configuration Table
42 [config]
43 ;
44 ; additionalFilter - This specifies an additional set of criteria to be used
45 ; when querying the LDAP server.
46 ;
47 additionalFilter=(objectClass=AstConfig)
48 ;
49 ; Attributes mapping (asterisk variable name = ldap attribute name)
50 ; When Asterisk requests the variable by the name of the value on the left,
51 ; this module will look up the attribute listed on the right.
52 ;
53 filename = AstConfigFilename
54 category = AstConfigCategory
55 variable_name = AstConfigVariableName
56 variable_value = AstConfigVariableValue
57 cat_metric = AstConfigCategoryMetric
58 commented = AstConfigCommented
59
60 ;
61 ; Extensions Table
62 ;
63 [extensions]
64 context = AstExtensionContext
65 exten = AstExtensionExten
66 priority = AstExtensionPriority
67 app = AstExtensionApplication
68 appdata = AstExtensionApplicationData
69 additionalFilter=(objectClass=AstExtension)
70
71 ;
72 ; IAX Users Table
73 ;
74 [iax]
75 amaflags = AstAccountAMAFlags
76 callerid = AstAccountCallerID
77 context = AstAccountContext
78 fullcontact = AstAccountFullContact
79 fullcontact = gecos
80 host = AstAccountHost
81 mailbox = AstAccountMailbox
82 md5secret = AstAccountRealmedPassword ; Must be an MD5 hash. Field value can start with
83 ; {md5} but it is not required.
84 ; Generate the password via the md5sum command, e.g.
85 ; echo "my_password" | md5sum
86 deny = AstAccountDeny
87 permit = AstAccountPermit
88 port = AstAccountPort
89 qualify = AstAccountQualify
90 type = AstAccountType
91 disallow = AstAccountDisallowedCodec
92 allow = AstAccountAllowedCodec
93 regseconds = AstAccountExpirationTimestamp
94 regcontext = AstAccountRegistrationContext
95 regexten = AstAccountRegistrationExten
96 notransfer = AstAccountNoTransfer
97 lastms = AstAccountLastQualifyMilliseconds
98 additionalFilter=(objectClass=AstAccountIAX)
99
100 ;
101 ; A Test Family
102 ;
103 [testfamily]
104 MyUSERID = uid
105 additionalFilter=(objectClass=*)
106
107 [accounts]
108 amaflags = AstAccountAMAFlags
109 callgroup = AstAccountCallGroup
110 callerid = AstAccountCallerID
111 directmedia = AstAccountDirectMedia
112 context = AstAccountContext
113 dtmfmode = AstAccountDTMFMode
114 fromuser = AstAccountFromUser
115 fromdomain = AstAccountFromDomain
116 fullcontact = AstAccountFullContact
117 fullcontact = gecos
118 host = AstAccountHost
119 insecure = AstAccountInsecure
120 mailbox = AstAccountMailbox
121 md5secret = AstAccountRealmedPassword ; Must be an MD5 hash. Field value can start with
122 ; {md5} but it is not required.
123 ; Generate the password via the md5sum command, e.g.
124 ; echo "my_password" | md5sum
125 nat = AstAccountNAT
126 deny = AstAccountDeny
127 permit = AstAccountPermit
128 pickupgroup = AstAccountPickupGroup
129 port = AstAccountPort
130 qualify = AstAccountQualify
131 restrictcid = AstAccountRestrictCID
132 rtptimeout = AstAccountRTPTimeout
133 rtpholdtimeout = AstAccountRTPHoldTimeout
134 type = AstAccountType
135 disallow = AstAccountDisallowedCodec
136 allow = AstAccountAllowedCodec
137 MusicOnHold = AstAccountMusicOnHold
138 regseconds = AstAccountExpirationTimestamp
139 regcontext = AstAccountRegistrationContext
140 regexten = AstAccountRegistrationExten
141 CanCallForward = AstAccountCanCallForward
142 additionalFilter=(objectClass=AstAccount)