| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | ; | 
					
						
							|  |  |  | ; Configuration file for res_config_ldap | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2009-10-10 08:28:21 +00:00
										 |  |  | ; Realtime configuration | 
					
						
							|  |  |  | ; ---------------------- | 
					
						
							| 
									
										
										
										
											2017-12-22 09:23:22 -05:00
										 |  |  | ; In order to use this module, you start | 
					
						
							| 
									
										
										
										
											2009-10-10 08:28:21 +00:00
										 |  |  | ; in extconfig.conf with a configuration like this: | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | ; 	extensions = ldap,"dc=myDomain,dc=myDomainExt",extensions | 
					
						
							|  |  |  | ; | 
					
						
							|  |  |  | ; In the case of LDAP the last keyword in each line above specifies | 
					
						
							|  |  |  | ; a section in this file. | 
					
						
							| 
									
										
										
										
											2012-09-05 14:12:11 +00:00
										 |  |  | ; | 
					
						
							|  |  |  | ; LDAP schema and ldif files can be located in contrib/scripts. | 
					
						
							| 
									
										
										
										
											2009-10-10 08:28:21 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ; TLS support | 
					
						
							|  |  |  | ; ----------- | 
					
						
							|  |  |  | ; Note that you can configure an ldaps: url here to get TLS support. | 
					
						
							| 
									
										
										
										
											2017-12-22 09:23:22 -05:00
										 |  |  | ; Detailed configuration of certificates and supported CAs is done in your | 
					
						
							| 
									
										
										
										
											2009-10-10 08:28:21 +00:00
										 |  |  | ; ldap.conf file for OpenLDAP clients on your system. | 
					
						
							| 
									
										
										
										
											2009-10-10 08:29:03 +00:00
										 |  |  | ; This requires that you have OpenLDAP libraries compiled with TLS support | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2010-10-22 21:29:20 +00:00
										 |  |  | ; ********************************************************************************* | 
					
						
							|  |  |  | ; NOTE: res_ldap.conf should be chmod 600 because it contains the plain-text LDAP | 
					
						
							| 
									
										
										
										
											2017-12-22 09:23:22 -05:00
										 |  |  | ;       password to an account with WRITE access to the asterisk configuration. | 
					
						
							| 
									
										
										
										
											2010-10-22 21:29:20 +00:00
										 |  |  | ; ********************************************************************************* | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | [_general] | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							|  |  |  | ; Specify one of either host and port OR url.  URL is preferred, as you can | 
					
						
							|  |  |  | ; use more options. | 
					
						
							|  |  |  | ;host=192.168.1.1                    ; LDAP host | 
					
						
							|  |  |  | ;port=389 | 
					
						
							|  |  |  | ;url=ldap://ldap3.mydomain.com:3890 | 
					
						
							|  |  |  | ;protocol=3                          ; Version of the LDAP protocol to use; default is 3. | 
					
						
							| 
									
										
										
										
											2010-10-22 21:29:20 +00:00
										 |  |  | ;basedn=dc=example,dc=tld            ; Base DN | 
					
						
							|  |  |  | ;user=cn=asterisk,dc=example,dc=tld  ; Bind DN | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ;pass=MyPassword                     ; Bind password | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | ; Configuration Table | 
					
						
							|  |  |  | [config] | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							|  |  |  | ; additionalFilter - This specifies an additional set of criteria to be used | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | ; when querying the LDAP server. | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | additionalFilter=(objectClass=AstConfig) | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | ; Attributes mapping (asterisk variable name = ldap attribute name) | 
					
						
							|  |  |  | ; When Asterisk requests the variable by the name of the value on the left, | 
					
						
							|  |  |  | ; this module will look up the attribute listed on the right. | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | filename = AstConfigFilename | 
					
						
							|  |  |  | category = AstConfigCategory | 
					
						
							|  |  |  | variable_name = AstConfigVariableName | 
					
						
							|  |  |  | variable_value = AstConfigVariableValue | 
					
						
							|  |  |  | cat_metric = AstConfigCategoryMetric | 
					
						
							|  |  |  | commented = AstConfigCommented | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | ; Extensions Table | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | [extensions] | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | context  =  AstExtensionContext | 
					
						
							|  |  |  | exten  =  AstExtensionExten | 
					
						
							|  |  |  | priority = AstExtensionPriority | 
					
						
							|  |  |  | app = AstExtensionApplication | 
					
						
							|  |  |  | appdata = AstExtensionApplicationData | 
					
						
							|  |  |  | additionalFilter=(objectClass=AstExtension) | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | ; IAX Users Table | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | [iax] | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | amaflags = AstAccountAMAFlags | 
					
						
							|  |  |  | callerid = AstAccountCallerID | 
					
						
							|  |  |  | context = AstAccountContext | 
					
						
							|  |  |  | fullcontact = AstAccountFullContact | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | fullcontact = gecos | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | host = AstAccountHost | 
					
						
							|  |  |  | mailbox = AstAccountMailbox | 
					
						
							| 
									
										
										
										
											2010-10-22 21:29:20 +00:00
										 |  |  | md5secret = AstAccountRealmedPassword           ; Must be an MD5 hash. Field value can start with | 
					
						
							|  |  |  |                                                 ; {md5} but it is not required. | 
					
						
							|  |  |  |                                                 ; Generate the password via the md5sum command, e.g. | 
					
						
							|  |  |  |                                                 ; echo "my_password" | md5sum | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | deny = AstAccountDeny | 
					
						
							|  |  |  | permit = AstAccountPermit | 
					
						
							|  |  |  | port = AstAccountPort | 
					
						
							|  |  |  | qualify = AstAccountQualify | 
					
						
							|  |  |  | type = AstAccountType | 
					
						
							|  |  |  | disallow = AstAccountDisallowedCodec | 
					
						
							|  |  |  | allow = AstAccountAllowedCodec | 
					
						
							|  |  |  | regseconds = AstAccountExpirationTimestamp | 
					
						
							|  |  |  | regcontext = AstAccountRegistrationContext | 
					
						
							|  |  |  | regexten = AstAccountRegistrationExten | 
					
						
							|  |  |  | notransfer = AstAccountNoTransfer | 
					
						
							| 
									
										
										
										
											2009-05-28 10:43:51 +00:00
										 |  |  | lastms = AstAccountLastQualifyMilliseconds | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | additionalFilter=(objectClass=AstAccountIAX) | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | ; A Test Family | 
					
						
							| 
									
										
										
										
											2008-03-18 23:22:25 +00:00
										 |  |  | ; | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | [testfamily] | 
					
						
							|  |  |  | MyUSERID = uid | 
					
						
							|  |  |  | additionalFilter=(objectClass=*) | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | [accounts] | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | amaflags = AstAccountAMAFlags | 
					
						
							|  |  |  | callgroup = AstAccountCallGroup | 
					
						
							|  |  |  | callerid = AstAccountCallerID | 
					
						
							| 
									
										
										
										
											2009-08-03 20:48:48 +00:00
										 |  |  | directmedia = AstAccountDirectMedia | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | context = AstAccountContext | 
					
						
							|  |  |  | dtmfmode = AstAccountDTMFMode | 
					
						
							|  |  |  | fromuser = AstAccountFromUser | 
					
						
							|  |  |  | fromdomain = AstAccountFromDomain | 
					
						
							|  |  |  | fullcontact = AstAccountFullContact | 
					
						
							| 
									
										
										
										
											2008-01-22 22:33:20 +00:00
										 |  |  | fullcontact = gecos | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | host = AstAccountHost | 
					
						
							|  |  |  | insecure = AstAccountInsecure | 
					
						
							|  |  |  | mailbox = AstAccountMailbox | 
					
						
							| 
									
										
										
										
											2010-10-22 21:29:20 +00:00
										 |  |  | md5secret = AstAccountRealmedPassword           ; Must be an MD5 hash. Field value can start with | 
					
						
							|  |  |  |                                                 ; {md5} but it is not required. | 
					
						
							|  |  |  |                                                 ; Generate the password via the md5sum command, e.g. | 
					
						
							|  |  |  |                                                 ; echo "my_password" | md5sum | 
					
						
							| 
									
										
										
										
											2008-04-11 23:21:54 +00:00
										 |  |  | nat = AstAccountNAT | 
					
						
							|  |  |  | deny = AstAccountDeny | 
					
						
							|  |  |  | permit = AstAccountPermit | 
					
						
							|  |  |  | pickupgroup = AstAccountPickupGroup | 
					
						
							|  |  |  | port = AstAccountPort | 
					
						
							|  |  |  | qualify = AstAccountQualify | 
					
						
							|  |  |  | restrictcid = AstAccountRestrictCID | 
					
						
							|  |  |  | rtptimeout = AstAccountRTPTimeout | 
					
						
							|  |  |  | rtpholdtimeout = AstAccountRTPHoldTimeout | 
					
						
							|  |  |  | type = AstAccountType | 
					
						
							|  |  |  | disallow = AstAccountDisallowedCodec | 
					
						
							|  |  |  | allow = AstAccountAllowedCodec | 
					
						
							|  |  |  | MusicOnHold = AstAccountMusicOnHold | 
					
						
							|  |  |  | regseconds = AstAccountExpirationTimestamp | 
					
						
							|  |  |  | regcontext = AstAccountRegistrationContext | 
					
						
							|  |  |  | regexten = AstAccountRegistrationExten | 
					
						
							|  |  |  | CanCallForward = AstAccountCanCallForward | 
					
						
							|  |  |  | additionalFilter=(objectClass=AstAccount) |