Add res_config_ldap for realtime LDAP engine.
[asterisk/asterisk.git] / configs / res_ldap.conf.sample
1 ;
2 ; Configuration file for res_config_ldap
3 ;
4
5 ; Sample Asterisk config file for res_config_ldap
6 ; in extconfig.conf you can use it like this:
7 ; sipusers = ldap,"dc=myDomain,dc=myDomainExt",sip
8 ; sippeers = ldap,"dc=myDomain,dc=myDomainExt",sip
9 ; extensions = ldap,"dc=myDomain,dc=myDomainExt",extensions
10 ; sip.conf = ldap,"dc=myDomain,dc=myDomainExt",config
11
12
13 [_general]
14 ;host=192.168.1.1,ldap.mydomain.com     ; LDAP host(s)
15 ;protocol=3             ; Version of the LDAP protocol to use default is 3.
16 ;basedn=MyRootDN        ; Base DN
17 ;pass=MyPassword        ; Bind password
18 ;user=MyDN              ; Bind DN
19
20 ; Configuration Table
21 [config]
22 ; addtional filter - This specifies an additional set of criteria to be used
23 ; when querying the LDAP server.
24 additionalFilter=(objectClass=PBXConfig)
25 ; Attributes mapping (asterisk variable name = ldap attribute name)
26 ; When Asterisk requests the variable by the name of the value on the left,
27 ; this module will look up the attribute listed on the right.
28 filename = PBXConfigFilename
29 category = PBXConfigCategory
30 variable_name = PBXConfigVariableName
31 variable_value = PBXConfigVariableValue
32 cat_metric = PBXConfigCategoryMetric
33 commented = PBXConfigCommented
34
35 ; Extensions Table
36 [extensions]
37 context  =  PBXExtensionContext
38 exten  =  PBXExtensionExten
39 priority = PBXExtensionPriority
40 app = PBXExtensionApplication
41 appdata = PBXExtensionApplicationData
42 additionalFilter=(objectClass=PBXExtension)
43
44 ; Sip Users Table
45 [sip]
46 name = uid
47 amaflags = PBXAccountAMAFlags
48 callgroup = PBXAccountCallGroup
49 callerid = PBXAccountCallerID
50 canreinvite = PBXAccountCanReinvite
51 context = PBXAccountContext
52 dtmfmode = PBXAccountDTMFMode
53 fromuser = PBXAccountFromUser
54 fromdomain = PBXAccountFromDomain
55 fullcontact = PBXAccountFullContact
56 fullcontact = gecos
57 host = PBXAccountHost
58 insecure = PBXAccountInsecure
59 mailbox = PBXAccountMailbox
60 md5secret = realmedPassword
61 nat = PBXAccountNAT
62 deny = PBXAccountDeny
63 permit = PBXAccountPermit
64 pickupgroup = PBXAccountPickupGroup
65 port = PBXAccountPort
66 qualify = PBXAccountQualify
67 restrictcid = PBXAccountRestrictCID
68 rtptimeout = PBXAccountRTPTimeout
69 rtpholdtimeout = PBXAccountRTPHoldTimeout
70 type = PBXAccountType
71 disallow = PBXAccountDisallowedCodec
72 allow = PBXAccountAllowedCodec
73 MusicOnHold = PBXAccountMusicOnHold
74 regseconds = PBXAccountExpirationTimestamp
75 regcontext = PBXAccountRegistrationContext
76 regexten = PBXAccountRegistrationExten
77 CanCallForward = PBXAccountCanCallForward
78 additionalFilter=(objectClass=PBXAccountSIP)
79
80 ; IAX Users Table
81 [iax]
82 amaflags = PBXAccountAMAFlags
83 callerid = PBXAccountCallerID
84 context = PBXAccountContext
85 fullcontact = PBXAccountFullContact
86 fullcontact = gecos
87 host = PBXAccountHost
88 mailbox = PBXAccountMailbox
89 md5secret = realmedPassword
90 deny = PBXAccountDeny
91 permit = PBXAccountPermit
92 port = PBXAccountPort
93 qualify = PBXAccountQualify
94 type = PBXAccountType
95 disallow = PBXAccountDisallowedCodec
96 allow = PBXAccountAllowedCodec
97 regseconds = PBXAccountExpirationTimestamp
98 regcontext = PBXAccountRegistrationContext
99 regexten = PBXAccountRegistrationExten
100 notransfer = PBXAccountNoTransfer
101 additionalFilter=(objectClass=PBXAccountIAX)
102
103 ; A Test Family
104 [testfamily]
105 MyUSERID = uid
106 additionalFilter=(objectClass=*)
107
108 [accounts]
109 amaflags = PBXAccountAMAFlags
110 callgroup = PBXAccountCallGroup
111 callerid = PBXAccountCallerID
112 canreinvite = PBXAccountCanReinvite
113 context = PBXAccountContext
114 dtmfmode = PBXAccountDTMFMode
115 fromuser = PBXAccountFromUser
116 fromdomain = PBXAccountFromDomain
117 fullcontact = PBXAccountFullContact
118 fullcontact = gecos
119 host = PBXAccountHost
120 insecure = PBXAccountInsecure
121 mailbox = PBXAccountMailbox
122 md5secret = realmedPassword
123 nat = PBXAccountNAT
124 deny = PBXAccountDeny
125 permit = PBXAccountPermit
126 pickupgroup = PBXAccountPickupGroup
127 port = PBXAccountPort
128 qualify = PBXAccountQualify
129 restrictcid = PBXAccountRestrictCID
130 rtptimeout = PBXAccountRTPTimeout
131 rtpholdtimeout = PBXAccountRTPHoldTimeout
132 type = PBXAccountType
133 disallow = PBXAccountDisallowedCodec
134 allow = PBXAccountAllowedCodec
135 MusicOnHold = PBXAccountMusicOnHold
136 regseconds = PBXAccountExpirationTimestamp
137 regcontext = PBXAccountRegistrationContext
138 regexten = PBXAccountRegistrationExten
139 CanCallForward = PBXAccountCanCallForward
140 additionalFilter=(objectClass=PBXAccount)
141