[asterisk-commits] russell: branch group/res_config_ldap r39433 - /team/group/res_config_ldap/co...

asterisk-commits at lists.digium.com asterisk-commits at lists.digium.com
Tue Aug 8 18:41:26 MST 2006


Author: russell
Date: Tue Aug  8 20:41:26 2006
New Revision: 39433

URL: http://svn.digium.com/view/asterisk?rev=39433&view=rev
Log:
add example ldap schema

Added:
    team/group/res_config_ldap/contrib/asterisk.ldap-schema   (with props)

Added: team/group/res_config_ldap/contrib/asterisk.ldap-schema
URL: http://svn.digium.com/view/asterisk/team/group/res_config_ldap/contrib/asterisk.ldap-schema?rev=39433&view=auto
==============================================================================
--- team/group/res_config_ldap/contrib/asterisk.ldap-schema (added)
+++ team/group/res_config_ldap/contrib/asterisk.ldap-schema Tue Aug  8 20:41:26 2006
@@ -1,0 +1,415 @@
+#SIP && IAX
+# multi value: {MD5}, {SHA}...
+attributetype (1.3.6.1.4.1.4980.1.2.81
+        NAME 'realmedPassword'
+        DESC 'RealmedPassword (Hashes of <user>:<realm>:<secret>) begining with the hash tag like {MD5}'
+        EQUALITY octetStringMatch
+        SYNTAX 1.3.6.1.4.1.1466.115.121.1.40{80} )
+        )
+
+# ======== EXTENSIONS =============
+
+attributetype (1.3.6.1.4.1.4980.10.2.1.1
+        NAME 'AstExtensionContext'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Extension: Context {20}'
+        )
+
+attributetype (1.3.6.1.4.1.4980.10.2.1.2
+        NAME 'AstExtensionExten'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Extension: Exten {20}'
+        )
+
+#Integer
+attributetype (1.3.6.1.4.1.4980.10.2.1.3
+        NAME 'AstExtensionPriority'
+	SINGLE-VALUE
+	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+	EQUALITY integerMatch
+        DESC 'PBX Extension: Priority'
+        )
+
+attributetype (1.3.6.1.4.1.4980.10.2.1.4
+        NAME 'AstExtensionApplication'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Extension: Application {20}'
+        )
+
+attributetype (1.3.6.1.4.1.4980.10.2.1.5
+        NAME 'AstExtensionApplicationData'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Extension: Application Data {128}'
+        )
+
+# ======== Accounts =============
+
+#SIP & IAX
+attributetype (1.3.6.1.4.1.4980.10.2.2.1
+        NAME 'AstAccountAccountingCode'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: Accounting Code {20}'
+        )
+
+#SIP & IAX
+attributetype (1.3.6.1.4.1.4980.10.2.2.2
+        NAME 'AstAccountAMAFlags'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: AMA Flags (default|omit|billing|documentation)'
+        )
+
+#SIP
+attributetype (1.3.6.1.4.1.4980.10.2.2.3
+        NAME 'AstAccountCallGroup'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: CallGroup {10}'
+        )
+
+#SIP & IAX
+attributetype (1.3.6.1.4.1.4980.10.2.2.4
+        NAME 'AstAccountCallerID'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: CallerID {sip=80 or iax=100}'
+        )
+#SIP
+attributetype (1.3.6.1.4.1.4980.10.2.2.5
+        NAME 'AstAccountCanReinvite'
+	SINGLE-VALUE
+        SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
+        DESC 'PBX Account: CallReinvite (TRUE/FALSE)'
+        )
+
+#SIP && IAX
+attributetype (1.3.6.1.4.1.4980.10.2.2.6
+        NAME 'AstAccountContext'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: Context {sip=80 or iax=100}'
+        )
+
+#SIP && IAX (defaultip)
+attributetype (1.3.6.1.4.1.4980.10.2.2.7
+        NAME 'AstAccountDefaultHost'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: DefaultHost (IP or Host name)'
+        )
+
+#SIP
+attributetype (1.3.6.1.4.1.4980.10.2.2.8
+        NAME 'AstAccountDTMFMode'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: DTMFMode (inband|rfc2833|info|auto)'
+        )
+
+#SIP
+attributetype (1.3.6.1.4.1.4980.10.2.2.9
+        NAME 'AstAccountFromUser'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: FromUser {80}'
+        )
+
+#SIP
+attributetype (1.3.6.1.4.1.4980.10.2.2.10
+        NAME 'AstAccountFromDomain'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: FromDomain {80}'
+        )
+
+#SIP
+attributetype (1.3.6.1.4.1.4980.10.2.2.11
+        NAME 'AstAccountFullContact'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: FullContact {80}'
+        )
+
+#SIP && IAX
+attributetype (1.3.6.1.4.1.4980.10.2.2.12
+        NAME 'AstAccountHost'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: Host (or "dynamic") {31}'
+        )
+
+#SIP
+attributetype (1.3.6.1.4.1.4980.10.2.2.13
+        NAME 'AstAccountInsecure'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: Insecure {4}'
+        )
+
+#SIP && IAX
+attributetype (1.3.6.1.4.1.4980.10.2.2.14
+        NAME 'AstAccountUserName'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: Username {80}'
+        )
+
+#SIP && IAX
+attributetype (1.3.6.1.4.1.4980.10.2.2.15
+        NAME 'AstAccountMailbox'
+        SUP name
+        DESC 'PBX Account: Mailbox {50}'
+        )
+
+#SIP
+attributetype (1.3.6.1.4.1.4980.10.2.2.17
+        NAME 'AstAccountNAT'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: NAT (yes|no|never|route)'
+        )
+
+#SIP && IAX
+attributetype (1.3.6.1.4.1.4980.10.2.2.18
+        NAME 'AstAccountDeny'
+        SUP name
+        DESC 'PBX Account: Deny {95}'
+        )
+
+#SIP && IAX
+attributetype (1.3.6.1.4.1.4980.10.2.2.19
+        NAME 'AstAccountPermit'
+        SUP name
+        DESC 'PBX Account: Permit {95}'
+        )
+
+#SIP
+attributetype (1.3.6.1.4.1.4980.10.2.2.20
+        NAME 'AstAccountPickupGroup'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: PickupGroup {10}'
+        )
+
+#SIP && IAX
+# Integer
+attributetype (1.3.6.1.4.1.4980.10.2.2.21
+        NAME 'AstAccountPort'
+	SINGLE-VALUE
+	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+	EQUALITY integerMatch
+        DESC 'PBX Account: Port'
+        )
+
+#SIP && IAX
+attributetype (1.3.6.1.4.1.4980.10.2.2.22
+        NAME 'AstAccountQualify'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: Qualify (xxx|no|yes), xxx is the number of seconds'
+        )
+
+#SIP
+#Boolean
+attributetype (1.3.6.1.4.1.4980.10.2.2.23
+        NAME 'AstAccountRestrictCID'
+	SINGLE-VALUE
+        SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
+        DESC 'PBX Account: RestrictCID (TRUE/FALSE)'
+        )
+
+#SIP
+#Integer
+attributetype (1.3.6.1.4.1.4980.10.2.2.24
+        NAME 'AstAccountRTPTimeout'
+	SINGLE-VALUE
+	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+	EQUALITY integerMatch
+        DESC 'PBX Account: RTPTimeout (seconds)'
+        )
+
+#SIP
+#Integer
+attributetype (1.3.6.1.4.1.4980.10.2.2.25
+        NAME 'AstAccountRTPHoldTimeout'
+	SINGLE-VALUE
+	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+	EQUALITY integerMatch
+        DESC 'PBX Account: RTPHoldTimeout (seconds)'
+        )
+
+#SIP && IAX
+attributetype (1.3.6.1.4.1.4980.10.2.2.26
+        NAME 'AstAccountType'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: Account type (peer|user|friend)'
+        )
+
+#SIP && IAX (disallow)
+attributetype (1.3.6.1.4.1.4980.10.2.2.27
+        NAME 'AstAccountDisallowedCodec'
+        SUP name
+        DESC 'PBX Account: DisallowedCodec {15}'
+        )
+
+#SIP && IAX (allow)
+attributetype (1.3.6.1.4.1.4980.10.2.2.28
+        NAME 'AstAccountAllowedCodec'
+        SUP name
+        DESC 'PBX Account: AllowedCodec {15}'
+        )
+
+#SIP
+attributetype (1.3.6.1.4.1.4980.10.2.2.29
+        NAME 'AstAccountMusicOnHold'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: MusicOnHold {100}'
+        )
+
+#SIP && IAX (regseconds)
+#Generalized Time
+attributetype (1.3.6.1.4.1.4980.10.2.2.30
+        NAME 'AstAccountExpirationTimestamp'
+	SINGLE-VALUE
+	SYNTAX 1.3.6.1.4.1.1466.115.121.1.24
+        DESC 'PBX Account: ExpirationTimestamp'
+        )
+
+
+#SIP && IAX regcontext
+attributetype (1.3.6.1.4.1.4980.10.2.2.31
+        NAME 'AstAccountRegistrationContext'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: RegistrationContext {80}'
+        )
+
+#SIP && IAX regexten
+attributetype (1.3.6.1.4.1.4980.10.2.2.32
+        NAME 'AstAccountRegistrationExten'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Account: RegistrationExten {80}'
+        )
+
+#SIP
+#Boolean
+attributetype (1.3.6.1.4.1.4980.10.2.2.33
+        NAME 'AstAccountCanCallForward'
+	SINGLE-VALUE
+        SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
+        DESC 'PBX Account: CanCallForward (TRUE/FALSE)'
+        )
+
+
+#IAX
+#Boolean
+attributetype (1.3.6.1.4.1.4980.10.2.2.34
+        NAME 'AstAccountNoTransfer'
+	SINGLE-VALUE
+        SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
+        DESC 'PBX Account: NoTransfer (TRUE/FALSE)'
+        )
+
+#SIP & IAX
+attributetype (1.3.6.1.4.1.4980.10.2.2.35
+        NAME 'AstAccountBaseDN'
+	EQUALITY distinguishedNameMatch
+        SYNTAX 1.3.6.1.4.1.1466.115.121.1.12
+        DESC 'PBX Account: Account base DN'
+        )
+
+# ======== CONFIG =============
+
+attributetype (1.3.6.1.4.1.4980.10.2.3.1
+        NAME 'AstConfigFilename'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Config: filename {80}'
+        )
+
+attributetype (1.3.6.1.4.1.4980.10.2.3.2
+        NAME 'AstConfigCategory'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Config: Category {80}'
+        )
+
+attributetype (1.3.6.1.4.1.4980.10.2.3.3
+        NAME 'AstConfigVariableName'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Config: Variable Name {80}'
+        )
+
+attributetype (1.3.6.1.4.1.4980.10.2.3.4
+        NAME 'AstConfigVariableValue'
+        SUP name
+	SINGLE-VALUE
+        DESC 'PBX Config: VariableValue'
+        )
+
+#Integer
+attributetype (1.3.6.1.4.1.4980.10.2.3.5
+        NAME 'AstConfigCategoryMetric'
+	SINGLE-VALUE
+	SYNTAX 1.3.6.1.4.1.1466.115.121.1.27
+	EQUALITY integerMatch
+        DESC 'PBX Config: CategoryMetric'
+        )
+
+attributetype (1.3.6.1.4.1.4980.10.2.3.6
+        NAME 'AstConfigCommented'
+	SINGLE-VALUE
+        SYNTAX 1.3.6.1.4.1.1466.115.121.1.7
+	EQUALITY booleanMatch
+        DESC 'PBX Config: Commented (TRUE/FALSE)'
+        )
+
+objectclass ( 1.3.6.1.4.1.4980.10.3.1.1
+        NAME 'AstExtension' 
+        SUP top STRUCTURAL
+        DESC 'Asterisk PBX Extension'
+        MUST ( AstExtensionContext $ AstExtensionExten $ AstExtensionPriority $ AstExtensionApplication )
+        MAY ( AstExtensionApplicationData )
+        )
+
+objectclass ( 1.3.6.1.4.1.4980.10.3.2.1
+        NAME 'AstAccount'
+        SUP top STRUCTURAL
+        DESC 'Asterisk PBX Account'
+        MUST ( uid )
+        MAY ( realmedPassword $ AstAccountBaseDN $ AstAccountAccountingCode $ AstAccountAMAFlags $ AstAccountCallerID $ AstAccountContext $ AstAccountDefaultHost $ AstAccountHost $ preferredLanguage $ AstAccountMailbox $ realmedPassword $ AstAccountDeny $ AstAccountPermit $ AstAccountPort $ AstAccountQualify $ AstAccountType $ AstAccountDisallowedCodec $ AstAccountAllowedCodec $ AstAccountExpirationTimestamp $ AstAccountRegistrationContext $ AstAccountRegistrationExten )
+        )
+
+objectclass ( 1.3.6.1.4.1.4980.10.3.2.2
+        NAME 'AstAccountSIP' 
+        SUP AstAccount STRUCTURAL
+        DESC 'Asterisk PBX Account'
+        MUST ( uid )
+        MAY ( AstAccountCallGroup $ AstAccountCanReinvite $ AstAccountDTMFMode $ AstAccountFromUser $ AstAccountFromDomain $ AstAccountFullContact $ AstAccountInsecure $ AstAccountNAT $ AstAccountPickupGroup $ AstAccountRestrictCID $ AstAccountRTPTimeout $ AstAccountRTPHoldTimeout $ AstAccountMusicOnHold $ AstAccountCanCallForward )
+       )
+
+objectclass ( 1.3.6.1.4.1.4980.10.3.2.3
+        NAME 'AstAccountIAX' 
+        SUP AstAccount STRUCTURAL
+        DESC 'Asterisk PBX Account'
+        MUST ( uid )
+        MAY ( AstAccountNoTransfer)
+        )
+
+objectclass ( 1.3.6.1.4.1.4980.10.3.2.4
+        NAME 'AstConfig'
+        SUP top STRUCTURAL
+        DESC 'Asterisk PBX Config'
+        MUST ( AstConfigFilename $ AstConfigCommented $ AstConfigCategory $ AstConfigVariableName $ AstConfigVariableValue )
+	MAY ( AstConfigCategoryMetric)
+	)
+

Propchange: team/group/res_config_ldap/contrib/asterisk.ldap-schema
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: team/group/res_config_ldap/contrib/asterisk.ldap-schema
------------------------------------------------------------------------------
    svn:keywords = Author Date Id Revision

Propchange: team/group/res_config_ldap/contrib/asterisk.ldap-schema
------------------------------------------------------------------------------
    svn:mime-type = text/plain



More information about the asterisk-commits mailing list