<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>http://studioware.com/wikislax/index.php?action=history&amp;feed=atom&amp;title=Res_ldap.conf</id>
		<title>Res ldap.conf - Revision history</title>
		<link rel="self" type="application/atom+xml" href="http://studioware.com/wikislax/index.php?action=history&amp;feed=atom&amp;title=Res_ldap.conf"/>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=Res_ldap.conf&amp;action=history"/>
		<updated>2026-05-07T15:21:19Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.29.2</generator>

	<entry>
		<id>http://studioware.com/wikislax/index.php?title=Res_ldap.conf&amp;diff=63&amp;oldid=prev</id>
		<title>Wikislax: /* Adding Asterisk users */</title>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=Res_ldap.conf&amp;diff=63&amp;oldid=prev"/>
				<updated>2018-07-07T07:57:07Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;Adding Asterisk users&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 07:57, 7 July 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l154&quot; &gt;Line 154:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 154:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Adding Asterisk users ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== Adding Asterisk users ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A small [{{SERVER}}/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;slax&lt;/del&gt;/download/cu.sh script] will afford adding users to the '''users''' and '''extensions''' subtrees of the directory. In this script we create users in context '''[internal]''' and extensions in contexts '''[internal]''' and '''[freephonie]''', creating two values in multivalued field '''AstAccountContext'''. Once the user created in LDAP,&amp;#160; SIP registration can be checked on the display of the phone and on the Asterisk console:&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;A small [{{SERVER}}/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;wikislax&lt;/ins&gt;/download/cu.sh script] will afford adding users to the '''users''' and '''extensions''' subtrees of the directory. In this script we create users in context '''[internal]''' and extensions in contexts '''[internal]''' and '''[freephonie]''', creating two values in multivalued field '''AstAccountContext'''. Once the user created in LDAP,&amp;#160; SIP registration can be checked on the display of the phone and on the Asterisk console:&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; root@inner:/usr/local/etc/asterisk# '''asterisk -r'''&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; root@inner:/usr/local/etc/asterisk# '''asterisk -r'''&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wikislax</name></author>	</entry>

	<entry>
		<id>http://studioware.com/wikislax/index.php?title=Res_ldap.conf&amp;diff=56&amp;oldid=prev</id>
		<title>Wikislax: /* res_ldap.conf */</title>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=Res_ldap.conf&amp;diff=56&amp;oldid=prev"/>
				<updated>2018-07-07T04:29:50Z</updated>
		
		<summary type="html">&lt;p&gt;‎&lt;span dir=&quot;auto&quot;&gt;&lt;span class=&quot;autocomment&quot;&gt;res_ldap.conf&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;' lang='en'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 04:29, 7 July 2018&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l74&quot; &gt;Line 74:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 74:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; additionalFilter=(objectClass=AsteriskExtension)&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;#160; additionalFilter=(objectClass=AsteriskExtension)&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;−&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For a full content example of the res_ldap.conf file please click [{{SERVER}}/&lt;del class=&quot;diffchange diffchange-inline&quot;&gt;slax&lt;/del&gt;/download/res_ldap.conf here]. But please note that some names in your particular situation might differ from the names listed in this file and you could have to fix it.&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;For a full content example of the res_ldap.conf file please click [{{SERVER}}/&lt;ins class=&quot;diffchange diffchange-inline&quot;&gt;wikislax&lt;/ins&gt;/download/res_ldap.conf here]. But please note that some names in your particular situation might differ from the names listed in this file and you could have to fix it.&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== extconfig.conf ==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;== extconfig.conf ==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Wikislax</name></author>	</entry>

	<entry>
		<id>http://studioware.com/wikislax/index.php?title=Res_ldap.conf&amp;diff=42&amp;oldid=prev</id>
		<title>Wikislax: Created page with &quot;{{RightTOC}}  == LDAP configuration ==  The [http://studioware.com/wikislax/index.php?title=OpenLDAP OpenLDAP] directory built earlier must be modified to include the asterisk...&quot;</title>
		<link rel="alternate" type="text/html" href="http://studioware.com/wikislax/index.php?title=Res_ldap.conf&amp;diff=42&amp;oldid=prev"/>
				<updated>2017-12-06T21:37:08Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{RightTOC}}  == LDAP configuration ==  The [http://studioware.com/wikislax/index.php?title=OpenLDAP OpenLDAP] directory built earlier must be modified to include the asterisk...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{RightTOC}}&lt;br /&gt;
&lt;br /&gt;
== LDAP configuration ==&lt;br /&gt;
&lt;br /&gt;
The [http://studioware.com/wikislax/index.php?title=OpenLDAP OpenLDAP] directory built earlier must be modified to include the asterisk schema, that can be copied from '''/usr/local/asterisk-x.y.z.t/contrib/scripts/asterisk.ldap-schema''' into '''/usr/local/etc/openldap/schema'''. The schema must then be included from '''/usr/local/etc/openldap/slapd.conf''':&lt;br /&gt;
&lt;br /&gt;
 #&lt;br /&gt;
 # See slapd.conf(5) for details on configuration options.&lt;br /&gt;
 # This file should NOT be world readable.&lt;br /&gt;
 #&lt;br /&gt;
 include         /usr/local/etc/openldap/schema/core.schema&lt;br /&gt;
 include         /usr/local/etc/openldap/schema/cosine.schema&lt;br /&gt;
 include         /usr/local/etc/openldap/schema/inetorgperson.schema&lt;br /&gt;
 '''include         /usr/local/etc/openldap/schema/asterisk.schema'''&lt;br /&gt;
 . . .&lt;br /&gt;
&lt;br /&gt;
A restart is required:&lt;br /&gt;
&lt;br /&gt;
 # /etc/rc.d/rc.slapd restart&lt;br /&gt;
&lt;br /&gt;
We need to define a structure in the OpenLDAP directory where to store the asterisk information. For example we can put our '''users''' and '''extentions''' under entries by the same name just below the root of the directory. This can be done with the following LDIF file that we add to the directory using the '''ldapadd''' command:&lt;br /&gt;
&lt;br /&gt;
 #OU users&lt;br /&gt;
 dn: ou=users,dc=studioware,dc=com&lt;br /&gt;
 objectClass: top&lt;br /&gt;
 objectClass: organizationalUnit&lt;br /&gt;
 ou: users&lt;br /&gt;
 # OU extensions&lt;br /&gt;
 dn: ou=extensions,dc=studioware,dc=com&lt;br /&gt;
 objectClass: top&lt;br /&gt;
 objectClass: organizationalUnit&lt;br /&gt;
 ou: extensions&lt;br /&gt;
 &lt;br /&gt;
 # '''ldapadd -x -D &amp;quot;cn=Manager,dc=studioware,dc=com&amp;quot; -W -f yourLDIFpath'''&lt;br /&gt;
&lt;br /&gt;
* '''-x''' : affords using a simple authentication (as opposed to SASL tricky schemes)&lt;br /&gt;
* '''-D''' : affords defining the user (here cn=Manager,dc=studioware,dc=com)&lt;br /&gt;
* '''-W''' : affords being prompted to enter the password&lt;br /&gt;
* '''-f''' : affords specifying the LDIF file name&lt;br /&gt;
&lt;br /&gt;
== res_ldap.conf ==&lt;br /&gt;
&lt;br /&gt;
The '''res_ldap.conf''' file affords detailing how to access the LDAP database and which schema variables to use. Let's start with the LDAP connection information, located in the '''[_general]''' context:&lt;br /&gt;
&lt;br /&gt;
 [_general]&lt;br /&gt;
 ;&lt;br /&gt;
 ; Specify one of either host and port OR url.  URL is preferred, as you can&lt;br /&gt;
 ; use more options.&lt;br /&gt;
 host=localhost                       ; LDAP host&lt;br /&gt;
 port=389&lt;br /&gt;
 url=ldap://localhost&lt;br /&gt;
 protocol=3                           ; Version of the LDAP protocol to use; default is 3.&lt;br /&gt;
 basedn=dc=studioware,dc=com          ; Base DN&lt;br /&gt;
 user=cn=Manager,dc=studioware,dc=com ; Bind DN&lt;br /&gt;
 pass=mysecret                        ; Bind password&lt;br /&gt;
&lt;br /&gt;
The other contexts, '''[extensions]''', '''[sip]''', and '''[IAX]''', afford defining the correspondance between the variable names in Asterisk (on the left) and the variable names in the LDAP schema (on the right). Here is an example for the '''[extensions]''' context:&lt;br /&gt;
&lt;br /&gt;
 ;&lt;br /&gt;
 ; Extensions Table&lt;br /&gt;
 ;&lt;br /&gt;
 [extensions]&lt;br /&gt;
 ;context  =  AstExtensionContext&lt;br /&gt;
 ;exten  =  AstExtensionExten&lt;br /&gt;
 ;priority = AstExtensionPriority&lt;br /&gt;
 ;app = AstExtensionApplication&lt;br /&gt;
 ;appdata = AstExtensionApplicationData&lt;br /&gt;
 ;additionalFilter=(objectClass=AstExtension)&lt;br /&gt;
 context  =  AstContext&lt;br /&gt;
 exten  =  AstExtension&lt;br /&gt;
 priority = AstPriority&lt;br /&gt;
 app = AstApplication&lt;br /&gt;
 appdata = AstApplicationData&lt;br /&gt;
 additionalFilter=(objectClass=AsteriskExtension)&lt;br /&gt;
&lt;br /&gt;
For a full content example of the res_ldap.conf file please click [{{SERVER}}/slax/download/res_ldap.conf here]. But please note that some names in your particular situation might differ from the names listed in this file and you could have to fix it.&lt;br /&gt;
&lt;br /&gt;
== extconfig.conf ==&lt;br /&gt;
&lt;br /&gt;
The '''[settings]''' context of '''extconfig.conf''' affords defining in which subtrees Asterisk should get the '''users''' and '''extension''' entries:&lt;br /&gt;
&lt;br /&gt;
 ;&lt;br /&gt;
 ; Static and realtime external configuration&lt;br /&gt;
 ; engine configuration&lt;br /&gt;
 ;&lt;br /&gt;
 ; See https://wiki.asterisk.org/wiki/display/AST/Realtime+Database+Configuration&lt;br /&gt;
 ; for basic table formatting information.&lt;br /&gt;
 ;&lt;br /&gt;
 [settings]&lt;br /&gt;
 &lt;br /&gt;
 '''sipusers =&amp;gt; ldap,&amp;quot;ou=users,dc=studioware,dc=com&amp;quot;,sip'''&lt;br /&gt;
 '''sippeers =&amp;gt; ldap,&amp;quot;ou=users,dc=studioware,dc=com&amp;quot;,sip'''&lt;br /&gt;
 '''extensions =&amp;gt; ldap,&amp;quot;ou=extensions,dc=studioware,dc=com&amp;quot;,extensions'''&lt;br /&gt;
 . . .&lt;br /&gt;
&lt;br /&gt;
== sip.conf ==&lt;br /&gt;
&lt;br /&gt;
For OpenLDAP to properly work these options must be added to the '''[general]''' context of the '''sip.conf''' file:&lt;br /&gt;
&lt;br /&gt;
 [general]&lt;br /&gt;
 rtcachefriends=yes&lt;br /&gt;
 callevents=yes&lt;br /&gt;
 realm=studioware.com&lt;br /&gt;
 . . .&lt;br /&gt;
&lt;br /&gt;
* rtcachefriends=yes // affords putting in cache the user info (mandatory at it affords keeping in memory the IP address with which the user connected).&lt;br /&gt;
* callevents=yes // affords raising information about a call&lt;br /&gt;
* realm=studioware.com // LDAP domain name&lt;br /&gt;
&lt;br /&gt;
== extensions.conf ==&lt;br /&gt;
&lt;br /&gt;
The switch statement can be declared in one or more contexts to include the users or extensions LDAP records that have an '''AstAccountContext''' field matching the context name, for example:&lt;br /&gt;
&lt;br /&gt;
 [internal]&lt;br /&gt;
 '''switch =&amp;gt; Realtime/@'''&lt;br /&gt;
 . . .&lt;br /&gt;
 &lt;br /&gt;
 [freephonie]&lt;br /&gt;
 . . .&lt;br /&gt;
 '''switch =&amp;gt; Realtime/@'''&lt;br /&gt;
 . . .&lt;br /&gt;
&lt;br /&gt;
&amp;lt;u&amp;gt;Note&amp;lt;/u&amp;gt; : including the extensions LDAP records in several contexts is possible thanks to the fact the the '''AstAccountContext''' field is multivalued.&lt;br /&gt;
&lt;br /&gt;
== Making sure ==&lt;br /&gt;
&lt;br /&gt;
At this point Asterisk should be able to take the new configuration into account (with no user defined). Connect to the asterisk console, reload the modules and the configuration files and display the ldap status:&lt;br /&gt;
&lt;br /&gt;
 # '''asterisk -r'''&lt;br /&gt;
 Asterisk 15.0.0, Copyright (C) 1999 - 2016, Digium, Inc. and others.&lt;br /&gt;
 Created by Mark Spencer &amp;lt;markster@digium.com&amp;gt;&lt;br /&gt;
 Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.&lt;br /&gt;
 This is free software, with components licensed under the GNU General Public&lt;br /&gt;
 License version 2 and other licenses; you are welcome to redistribute it under&lt;br /&gt;
 certain conditions. Type 'core show license' for details.&lt;br /&gt;
 =========================================================================&lt;br /&gt;
 Connected to Asterisk 15.0.0 currently running on inner (pid = 2563)&lt;br /&gt;
 inner*CLI&amp;gt; '''module reload'''&lt;br /&gt;
 [Nov 28 21:29:09] NOTICE[2827]: sorcery.c:1407 sorcery_object_load: Type 'system' is not reloadable, maintaining previous values&lt;br /&gt;
 [Nov 28 21:29:09] WARNING[2818]: res_phoneprov.c:1230 get_defaults: Unable to find a valid server address or name.&lt;br /&gt;
 [Nov 28 21:29:09] NOTICE[2818]: chan_skinny.c:8445 config_load: Configuring skinny from skinny.conf&lt;br /&gt;
 [Nov 28 21:29:09] NOTICE[2818]: cel_custom.c:95 load_config: No mappings found in cel_custom.conf. Not logging CEL to custom CSVs.&lt;br /&gt;
 [Nov 28 21:29:09] NOTICE[2818]: app_queue.c:8999 reload_queue_rules: queuerules.conf has not changed since it was last loaded. Not taking any action.&lt;br /&gt;
 inner*CLI&amp;gt; '''sip reload'''&lt;br /&gt;
 inner*CLI&amp;gt; '''dialplan reload'''&lt;br /&gt;
 Dialplan reloaded.&lt;br /&gt;
 inner*CLI&amp;gt; '''realtime show ldap status'''&lt;br /&gt;
 Connected to 'ldap://localhost', baseDN dc=studioware,dc=com with username cn=Manager,dc=studioware,dc=com for 40 seconds&lt;br /&gt;
 inner*CLI&amp;gt; quit&lt;br /&gt;
 Asterisk cleanly ending (0).&lt;br /&gt;
 Executing last minute cleanups&lt;br /&gt;
 root@inner:/usr/local/etc/asterisk#&lt;br /&gt;
&lt;br /&gt;
== Adding Asterisk users ==&lt;br /&gt;
&lt;br /&gt;
A small [{{SERVER}}/slax/download/cu.sh script] will afford adding users to the '''users''' and '''extensions''' subtrees of the directory. In this script we create users in context '''[internal]''' and extensions in contexts '''[internal]''' and '''[freephonie]''', creating two values in multivalued field '''AstAccountContext'''. Once the user created in LDAP,  SIP registration can be checked on the display of the phone and on the Asterisk console:&lt;br /&gt;
&lt;br /&gt;
 root@inner:/usr/local/etc/asterisk# '''asterisk -r'''&lt;br /&gt;
 Asterisk 15.0.0, Copyright (C) 1999 - 2016, Digium, Inc. and others.&lt;br /&gt;
 Created by Mark Spencer &amp;lt;markster@digium.com&amp;gt;&lt;br /&gt;
 Asterisk comes with ABSOLUTELY NO WARRANTY; type 'core show warranty' for details.&lt;br /&gt;
 This is free software, with components licensed under the GNU General Public&lt;br /&gt;
 License version 2 and other licenses; you are welcome to redistribute it under&lt;br /&gt;
 certain conditions. Type 'core show license' for details.&lt;br /&gt;
 =========================================================================&lt;br /&gt;
 Connected to Asterisk 15.0.0 currently running on inner (pid = 2563)&lt;br /&gt;
 [Nov 28 21:39:46] NOTICE[2678]: chan_sip.c:24648 handle_response_peerpoke: Peer 'jp' is now Reachable. (9ms / 2000ms)&lt;br /&gt;
 inner*CLI&amp;gt; '''quit'''&lt;br /&gt;
 Asterisk cleanly ending (0).&lt;br /&gt;
 Executing last minute cleanups&lt;br /&gt;
 root@inner:/usr/local/etc/asterisk#&lt;br /&gt;
&lt;br /&gt;
&amp;lt;br/&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{pFoot|[[Sip.conf]]|[[Main Page]]|[[Confbridge.conf]]}}&lt;/div&gt;</summary>
		<author><name>Wikislax</name></author>	</entry>

	</feed>