diff options
author | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-22 22:33:20 +0000 |
---|---|---|
committer | tilghman <tilghman@f38db490-d61c-443f-a65b-d21fe96a405b> | 2008-01-22 22:33:20 +0000 |
commit | 533d426fefd676ba437dbb3f9b72fecd0ff43a70 (patch) | |
tree | 063b6003773d63e1065a3e9741ec4bffd43cd147 /configs/res_ldap.conf.sample | |
parent | 395fa10a4b0a21536f0cf2b1b9bcfb9b1287ef66 (diff) |
Add res_config_ldap for realtime LDAP engine.
(closes issue #5768)
Reported by: mguesdon
Patches:
res_config_ldap-v0.7.tar.gz uploaded by mguesdon (license 121)
res_ldap.conf.sample uploaded by suretec (license 70)
asterisk-v3.1.4.ldif uploaded by suretec (license 70)
asterisk-v3.1.4.schema uploaded by suretec (license 70)
Tested by: oej, mguesdon, suretec, cthorner
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@99696 f38db490-d61c-443f-a65b-d21fe96a405b
Diffstat (limited to 'configs/res_ldap.conf.sample')
-rw-r--r-- | configs/res_ldap.conf.sample | 141 |
1 files changed, 141 insertions, 0 deletions
diff --git a/configs/res_ldap.conf.sample b/configs/res_ldap.conf.sample new file mode 100644 index 000000000..8477ec590 --- /dev/null +++ b/configs/res_ldap.conf.sample @@ -0,0 +1,141 @@ +; +; Configuration file for res_config_ldap +; + +; Sample Asterisk config file for res_config_ldap +; in extconfig.conf you can use it like this: +; sipusers = ldap,"dc=myDomain,dc=myDomainExt",sip +; sippeers = ldap,"dc=myDomain,dc=myDomainExt",sip +; extensions = ldap,"dc=myDomain,dc=myDomainExt",extensions +; sip.conf = ldap,"dc=myDomain,dc=myDomainExt",config + + +[_general] +;host=192.168.1.1,ldap.mydomain.com ; LDAP host(s) +;protocol=3 ; Version of the LDAP protocol to use default is 3. +;basedn=MyRootDN ; Base DN +;pass=MyPassword ; Bind password +;user=MyDN ; Bind DN + +; Configuration Table +[config] +; addtional filter - This specifies an additional set of criteria to be used +; when querying the LDAP server. +additionalFilter=(objectClass=PBXConfig) +; 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. +filename = PBXConfigFilename +category = PBXConfigCategory +variable_name = PBXConfigVariableName +variable_value = PBXConfigVariableValue +cat_metric = PBXConfigCategoryMetric +commented = PBXConfigCommented + +; Extensions Table +[extensions] +context = PBXExtensionContext +exten = PBXExtensionExten +priority = PBXExtensionPriority +app = PBXExtensionApplication +appdata = PBXExtensionApplicationData +additionalFilter=(objectClass=PBXExtension) + +; Sip Users Table +[sip] +name = uid +amaflags = PBXAccountAMAFlags +callgroup = PBXAccountCallGroup +callerid = PBXAccountCallerID +canreinvite = PBXAccountCanReinvite +context = PBXAccountContext +dtmfmode = PBXAccountDTMFMode +fromuser = PBXAccountFromUser +fromdomain = PBXAccountFromDomain +fullcontact = PBXAccountFullContact +fullcontact = gecos +host = PBXAccountHost +insecure = PBXAccountInsecure +mailbox = PBXAccountMailbox +md5secret = realmedPassword +nat = PBXAccountNAT +deny = PBXAccountDeny +permit = PBXAccountPermit +pickupgroup = PBXAccountPickupGroup +port = PBXAccountPort +qualify = PBXAccountQualify +restrictcid = PBXAccountRestrictCID +rtptimeout = PBXAccountRTPTimeout +rtpholdtimeout = PBXAccountRTPHoldTimeout +type = PBXAccountType +disallow = PBXAccountDisallowedCodec +allow = PBXAccountAllowedCodec +MusicOnHold = PBXAccountMusicOnHold +regseconds = PBXAccountExpirationTimestamp +regcontext = PBXAccountRegistrationContext +regexten = PBXAccountRegistrationExten +CanCallForward = PBXAccountCanCallForward +additionalFilter=(objectClass=PBXAccountSIP) + +; IAX Users Table +[iax] +amaflags = PBXAccountAMAFlags +callerid = PBXAccountCallerID +context = PBXAccountContext +fullcontact = PBXAccountFullContact +fullcontact = gecos +host = PBXAccountHost +mailbox = PBXAccountMailbox +md5secret = realmedPassword +deny = PBXAccountDeny +permit = PBXAccountPermit +port = PBXAccountPort +qualify = PBXAccountQualify +type = PBXAccountType +disallow = PBXAccountDisallowedCodec +allow = PBXAccountAllowedCodec +regseconds = PBXAccountExpirationTimestamp +regcontext = PBXAccountRegistrationContext +regexten = PBXAccountRegistrationExten +notransfer = PBXAccountNoTransfer +additionalFilter=(objectClass=PBXAccountIAX) + +; A Test Family +[testfamily] +MyUSERID = uid +additionalFilter=(objectClass=*) + +[accounts] +amaflags = PBXAccountAMAFlags +callgroup = PBXAccountCallGroup +callerid = PBXAccountCallerID +canreinvite = PBXAccountCanReinvite +context = PBXAccountContext +dtmfmode = PBXAccountDTMFMode +fromuser = PBXAccountFromUser +fromdomain = PBXAccountFromDomain +fullcontact = PBXAccountFullContact +fullcontact = gecos +host = PBXAccountHost +insecure = PBXAccountInsecure +mailbox = PBXAccountMailbox +md5secret = realmedPassword +nat = PBXAccountNAT +deny = PBXAccountDeny +permit = PBXAccountPermit +pickupgroup = PBXAccountPickupGroup +port = PBXAccountPort +qualify = PBXAccountQualify +restrictcid = PBXAccountRestrictCID +rtptimeout = PBXAccountRTPTimeout +rtpholdtimeout = PBXAccountRTPHoldTimeout +type = PBXAccountType +disallow = PBXAccountDisallowedCodec +allow = PBXAccountAllowedCodec +MusicOnHold = PBXAccountMusicOnHold +regseconds = PBXAccountExpirationTimestamp +regcontext = PBXAccountRegistrationContext +regexten = PBXAccountRegistrationExten +CanCallForward = PBXAccountCanCallForward +additionalFilter=(objectClass=PBXAccount) + |