Messinet Secure Services

Ticket #6: 0005-Add-LDAP-schema-that-is-compatible-with-Fedora-Direc.patch

File 0005-Add-LDAP-schema-that-is-compatible-with-Fedora-Direc.patch, 11.5 KB (added by amessina, 3 years ago)

This patch is updated to remove spaces

  • new file contrib/scripts/99asterisk.ldif

    diff --git a/contrib/scripts/99asterisk.ldif b/contrib/scripts/99asterisk.ldif
    new file mode 100644
    index 0000000..d5cd6a1
    - +  
     1dn: cn=schema 
     2# 
     3attributeTypes: ( 
     4  NAME 'AstContext' 
     5  DESC 'Asterisk Context' 
     6  EQUALITY caseIgnoreMatch 
     7  SUBSTR caseIgnoreSubstringsMatch 
     8  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     9  ) 
     10# 
     11attributeTypes: ( 
     12  NAME 'AstExtension' 
     13  DESC 'Asterisk Extension' 
     14  EQUALITY caseIgnoreMatch 
     15  SUBSTR caseIgnoreSubstringsMatch 
     16  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     17  ) 
     18# 
     19attributeTypes: ( 
     20  NAME 'AstPriority' 
     21  DESC 'Asterisk Priority' 
     22  EQUALITY caseIgnoreMatch 
     23  SUBSTR caseIgnoreSubstringsMatch 
     24  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     25  ) 
     26# 
     27attributeTypes: ( 
     28  NAME 'AstApplication' 
     29  DESC 'Asterisk Application' 
     30  EQUALITY caseIgnoreMatch 
     31  SUBSTR caseIgnoreSubstringsMatch 
     32  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     33  ) 
     34# 
     35attributeTypes: ( 
     36  NAME 'AstApplicationData' 
     37  DESC 'Asterisk Application Data' 
     38  EQUALITY caseIgnoreMatch 
     39  SUBSTR caseIgnoreSubstringsMatch 
     40  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     41  ) 
     42# 
     43attributeTypes: ( 
     44  NAME 'AstAccountAMAFlags' 
     45  DESC 'Asterisk Account AMA Flags' 
     46  EQUALITY caseIgnoreMatch 
     47  SUBSTR caseIgnoreSubstringsMatch 
     48  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     49  ) 
     50# 
     51attributeTypes: ( 
     52  NAME 'AstAccountCallerID' 
     53  DESC 'Asterisk Account CallerID' 
     54  EQUALITY caseIgnoreMatch 
     55  SUBSTR caseIgnoreSubstringsMatch 
     56  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     57  ) 
     58# 
     59attributeTypes: ( 
     60  NAME 'AstAccountContext' 
     61  DESC 'Asterisk Account Context' 
     62  EQUALITY caseIgnoreMatch 
     63  SUBSTR caseIgnoreSubstringsMatch 
     64  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     65  ) 
     66# 
     67attributeTypes: ( 
     68  NAME 'AstAccountMailbox' 
     69  DESC 'Asterisk Account Mailbox' 
     70  EQUALITY caseIgnoreMatch 
     71  SUBSTR caseIgnoreSubstringsMatch 
     72  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     73  ) 
     74# 
     75attributeTypes: ( 
     76  NAME 'AstMD5secret' 
     77  DESC 'Asterisk Account MD5 Secret' 
     78  EQUALITY caseIgnoreMatch 
     79  SUBSTR caseIgnoreSubstringsMatch 
     80  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     81  ) 
     82# 
     83attributeTypes: ( 
     84  NAME 'AstAccountDeny' 
     85  DESC 'Asterisk Account Deny' 
     86  EQUALITY caseIgnoreMatch 
     87  SUBSTR caseIgnoreSubstringsMatch 
     88  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     89  ) 
     90# 
     91attributeTypes: ( 
     92  NAME 'AstAccountPermit' 
     93  DESC 'Asterisk Account Permit' 
     94  EQUALITY caseIgnoreMatch 
     95  SUBSTR caseIgnoreSubstringsMatch 
     96  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     97  ) 
     98# 
     99attributeTypes: ( 
     100  NAME 'AstAccountQualify' 
     101  DESC 'Asterisk Account Qualify' 
     102  EQUALITY caseIgnoreMatch 
     103  SUBSTR caseIgnoreSubstringsMatch 
     104  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     105  ) 
     106# 
     107attributeTypes: ( 
     108  NAME 'AstAccountType' 
     109  DESC 'Asterisk Account Type' 
     110  EQUALITY caseIgnoreMatch 
     111  SUBSTR caseIgnoreSubstringsMatch 
     112  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     113  ) 
     114# 
     115attributeTypes: ( 
     116  NAME 'AstAccountDisallowedCodec' 
     117  DESC 'Asterisk Account Disallowed Codec' 
     118  EQUALITY caseIgnoreMatch 
     119  SUBSTR caseIgnoreSubstringsMatch 
     120  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     121  ) 
     122# 
     123attributeTypes: ( 
     124  NAME 'AstAccountExpirationTimestamp' 
     125  DESC 'Asterisk Account Allowed Codec' 
     126  EQUALITY caseIgnoreMatch 
     127  SUBSTR caseIgnoreSubstringsMatch 
     128  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     129  ) 
     130# 
     131attributeTypes: ( 
     132  NAME 'AstAccountRegistrationContext' 
     133  DESC 'Asterisk Account AMA Flags' 
     134  EQUALITY caseIgnoreMatch 
     135  SUBSTR caseIgnoreSubstringsMatch 
     136  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     137  ) 
     138# 
     139attributeTypes: ( 
     140  NAME 'AstAccountRegistrationExten' 
     141  DESC 'Asterisk Account AMA Flags' 
     142  EQUALITY caseIgnoreMatch 
     143  SUBSTR caseIgnoreSubstringsMatch 
     144  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     145  ) 
     146# 
     147attributeTypes: ( 
     148  NAME 'AstAccountNoTransfer' 
     149  DESC 'Asterisk Account AMA Flags' 
     150  EQUALITY caseIgnoreMatch 
     151  SUBSTR caseIgnoreSubstringsMatch 
     152  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     153  ) 
     154# 
     155attributeTypes: ( 
     156  NAME 'AstAccountCallGroup' 
     157  DESC 'Asterisk Account Call Group' 
     158  EQUALITY caseIgnoreMatch 
     159  SUBSTR caseIgnoreSubstringsMatch 
     160  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     161  ) 
     162# 
     163attributeTypes: ( 
     164  NAME 'AstAccountCanReinvite' 
     165  DESC 'Asterisk Account Can Reinvite' 
     166  EQUALITY caseIgnoreMatch 
     167  SUBSTR caseIgnoreSubstringsMatch 
     168  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     169  ) 
     170# 
     171attributeTypes: ( 
     172  NAME 'AstAccountDTMFMode' 
     173  DESC 'Asterisk Account DTMF Flags' 
     174  EQUALITY caseIgnoreMatch 
     175  SUBSTR caseIgnoreSubstringsMatch 
     176  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     177  ) 
     178# 
     179attributeTypes: ( 
     180  NAME 'AstAccountFromUser' 
     181  DESC 'Asterisk Account From User' 
     182  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     183  ) 
     184# 
     185attributeTypes: ( 
     186  NAME 'AstAccountFromDomain' 
     187  DESC 'Asterisk Account From Domain' 
     188  EQUALITY caseIgnoreMatch 
     189  SUBSTR caseIgnoreSubstringsMatch 
     190  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     191  ) 
     192# 
     193attributeTypes: ( 
     194  NAME 'AstAccountFullContact' 
     195  DESC 'Asterisk Account Full Contact' 
     196  EQUALITY caseIgnoreMatch 
     197  SUBSTR caseIgnoreSubstringsMatch 
     198  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     199  ) 
     200# 
     201attributeTypes: ( 
     202  NAME 'AstAccountHost' 
     203  DESC 'Asterisk Account Host' 
     204  EQUALITY caseIgnoreMatch 
     205  SUBSTR caseIgnoreSubstringsMatch 
     206  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     207  ) 
     208# 
     209attributeTypes: ( 
     210  NAME 'AstAccountInsecure' 
     211  DESC 'Asterisk Account Insecure' 
     212  EQUALITY caseIgnoreMatch 
     213  SUBSTR caseIgnoreSubstringsMatch 
     214  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     215  ) 
     216# 
     217attributeTypes: ( 
     218  NAME 'AstAccountNAT' 
     219  DESC 'Asterisk Account NAT' 
     220  EQUALITY caseIgnoreMatch 
     221  SUBSTR caseIgnoreSubstringsMatch 
     222  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     223  ) 
     224# 
     225attributeTypes: ( 
     226  NAME 'AstAccountPickupGroup' 
     227  DESC 'Asterisk Account PickupGroup' 
     228  EQUALITY caseIgnoreMatch 
     229  SUBSTR caseIgnoreSubstringsMatch 
     230  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     231  ) 
     232# 
     233attributeTypes: ( 
     234  NAME 'AstAccountPort' 
     235  DESC 'Asterisk Account Port' 
     236  EQUALITY caseIgnoreMatch 
     237  SUBSTR caseIgnoreSubstringsMatch 
     238  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     239  ) 
     240# 
     241attributeTypes: ( 
     242  NAME 'AstAccountRestrictCID' 
     243  DESC 'Asterisk Restrict CallerID' 
     244  EQUALITY caseIgnoreMatch 
     245  SUBSTR caseIgnoreSubstringsMatch 
     246  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     247  ) 
     248# 
     249attributeTypes: ( 
     250  NAME 'AstAccountRTPTimeout' 
     251  DESC 'Asterisk RTP Timeout' 
     252  EQUALITY caseIgnoreMatch 
     253  SUBSTR caseIgnoreSubstringsMatch 
     254  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     255  ) 
     256# 
     257attributeTypes: ( 
     258  NAME 'AstAccountRTPHoldTimeout' 
     259  DESC 'Asterisk RTP Hold Timeout' 
     260  EQUALITY caseIgnoreMatch 
     261  SUBSTR caseIgnoreSubstringsMatch 
     262  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     263  ) 
     264# 
     265attributeTypes: ( 
     266  NAME 'AstAccountRealmedPassword' 
     267  DESC 'Asterisk RTP Hold Timeout' 
     268  EQUALITY caseIgnoreMatch 
     269  SUBSTR caseIgnoreSubstringsMatch 
     270  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     271  ) 
     272# 
     273attributeTypes: ( 
     274  NAME 'AstAccountAllowedCodec' 
     275  DESC 'Asterisk Account Allowed Codec' 
     276  EQUALITY caseIgnoreMatch 
     277  SUBSTR caseIgnoreSubstringsMatch 
     278  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     279  ) 
     280# 
     281attributeTypes: ( 
     282  NAME 'AstAccountMusicOnHold' 
     283  DESC 'Asterisk Account Allowed Codec' 
     284  EQUALITY caseIgnoreMatch 
     285  SUBSTR caseIgnoreSubstringsMatch 
     286  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     287  ) 
     288# 
     289attributeTypes: ( 
     290  NAME 'AstAccountCanCallForward' 
     291  DESC 'Asterisk Can CAll Forward' 
     292  EQUALITY caseIgnoreMatch 
     293  SUBSTR caseIgnoreSubstringsMatch 
     294  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     295  ) 
     296# 
     297attributeTypes: ( 
     298  NAME 'AstAccountSecret' 
     299  DESC 'Asterisk Can CAll Forward' 
     300  EQUALITY caseIgnoreMatch 
     301  SUBSTR caseIgnoreSubstringsMatch 
     302  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     303  ) 
     304# 
     305attributeTypes: ( 
     306  NAME 'AstAccountName' 
     307  DESC 'Asterisk Account Username' 
     308  EQUALITY caseIgnoreMatch 
     309  SUBSTR caseIgnoreSubstringsMatch 
     310  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     311  ) 
     312# 
     313attributeTypes: ( 
     314  NAME 'AstConfigFilename' 
     315  DESC 'Asterisk LDAP Configuration Filename' 
     316  EQUALITY caseIgnoreMatch 
     317  SUBSTR caseIgnoreSubstringsMatch 
     318  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     319  ) 
     320# 
     321attributeTypes: ( 
     322  NAME 'AstConfigCategory' 
     323  DESC 'Asterisk LDAP Configuration Category' 
     324  EQUALITY caseIgnoreMatch 
     325  SUBSTR caseIgnoreSubstringsMatch 
     326  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     327  ) 
     328# 
     329attributeTypes: ( 
     330  NAME 'AstConfigCategoryMetric' 
     331  DESC 'Asterisk LDAP Configuration Category Metric' 
     332  EQUALITY caseIgnoreMatch 
     333  SUBSTR caseIgnoreSubstringsMatch 
     334  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     335  ) 
     336# 
     337attributeTypes: ( 
     338  NAME 'AstConfigVariableName' 
     339  DESC 'Asterisk LDAP Configuration Variable Name' 
     340  EQUALITY caseIgnoreMatch 
     341  SUBSTR caseIgnoreSubstringsMatch 
     342  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     343  ) 
     344# 
     345attributeTypes: ( 
     346  NAME 'AstConfigVariableValue' 
     347  DESC 'Asterisk LDAP Configuration Variable Value' 
     348  EQUALITY caseIgnoreMatch 
     349  SUBSTR caseIgnoreSubstringsMatch 
     350  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     351  ) 
     352# 
     353attributeTypes: ( 
     354  NAME 'AstConfigCommented' 
     355  DESC 'Asterisk LDAP Configuration Commented' 
     356  EQUALITY caseIgnoreMatch 
     357  SUBSTR caseIgnoreSubstringsMatch 
     358  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     359  ) 
     360# 
     361attributeTypes: ( 
     362  NAME 'AstAccountIPAddress' 
     363  DESC 'Asterisk Account IP Address' 
     364  EQUALITY caseIgnoreMatch 
     365  SUBSTR caseIgnoreSubstringsMatch 
     366  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     367  ) 
     368# 
     369attributeTypes: ( 
     370  NAME 'AstAccountDefaultUser' 
     371  DESC 'Asterisk Account Default User' 
     372  EQUALITY caseIgnoreMatch 
     373  SUBSTR caseIgnoreSubstringsMatch 
     374  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     375  ) 
     376# 
     377attributeTypes: ( 
     378  NAME 'AstAccountRegistrationServer' 
     379  DESC 'Asterisk Account Registration Server' 
     380  EQUALITY caseIgnoreMatch 
     381  SUBSTR caseIgnoreSubstringsMatch 
     382  SYNTAX 1.3.6.1.4.1.1466.115.121.1.15 
     383  ) 
     384# 
     385objectClasses: ( 
     386  NAME 'AsteriskExtension' 
     387  DESC 'PBX Extension Information for Asterisk' 
     388  SUP top 
     389  AUXILIARY 
     390  MUST cn 
     391  MAY ( AstContext $ AstExtension $ AstPriority $ AstApplication 
     392      $ AstApplicationData ) 
     393  ) 
     394# 
     395objectClasses: ( 
     396  NAME 'AsteriskIAXUser' 
     397  DESC 'IAX2 User information for Asterisk' 
     398  SUP AsteriskExtension 
     399  AUXILIARY 
     400  MUST cn 
     401  MAY ( AstAccountAMAFlags $ AstAccountCallerID $ AstAccountContext 
     402      $ AstAccountFullContact $ AstAccountHost $ AstAccountMailbox $ AstMD5secret 
     403      $ AstAccountDeny $ AstAccountPermit $ AstAccountPort $ AstAccountQualify 
     404      $ AstAccountType $ AstAccountDisallowedCodec $ AstAccountExpirationTimestamp 
     405      $ AstAccountRegistrationContext$ AstAccountRegistrationExten 
     406      $ AstAccountNoTransfer $ AstAccountName ) 
     407  ) 
     408# 
     409objectClasses: ( 
     410  NAME 'AsteriskSIPUser' 
     411  DESC 'SIP User information for Asterisk' 
     412  SUP AsteriskExtension 
     413  AUXILIARY 
     414  MUST cn 
     415  MAY ( AstAccountAMAFlags $ AstAccountCallGroup $ AstAccountCallerID 
     416      $ AstAccountCanReinvite $ AstAccountContext $ AstAccountDefaultUser 
     417      $ AstAccountDTMFMode $ AstAccountFromUser $ AstAccountFromDomain 
     418      $ AstAccountFullContact $ AstAccountHost $ AstAccountInsecure 
     419      $ AstAccountIPAddress $ AstAccountMailbox $ AstAccountRealmedPassword 
     420      $ AstAccountNAT $ AstAccountDeny $ AstAccountPermit $ AstAccountPickupGroup 
     421      $ AstAccountPort $ AstAccountQualify $ AstAccountRestrictCID 
     422      $ AstAccountRTPTimeout $ AstAccountRTPHoldTimeout $ AstAccountType 
     423      $ AstAccountDisallowedCodec $ AstAccountAllowedCodec $ AstAccountMusicOnHold 
     424      $ AstAccountExpirationTimestamp $ AstAccountRegistrationContext 
     425      $ AstAccountRegistrationExten $ AstAccountRegistrationServer 
     426      $ AstAccountCanCallForward $ AstAccountSecret $ AstAccountName ) 
     427  ) 
     428# 
     429objectClasses: ( 
     430  NAME 'AsteriskConfig' 
     431  DESC 'Asterisk configuration Information' 
     432  SUP top 
     433  AUXILIARY 
     434  MUST cn 
     435  MAY ( AstConfigFilename $ AstConfigCategory $ AstConfigCategoryMetric 
     436      $ AstConfigVariableName $ AstConfigVariableValue $ AstConfigCommented ) 
     437  )