Bonjour,
après quelques configurations je n'arrive pas à authentifier mes Users via LDAP, je vous montre mes fichiers de conf qui sera plus précis que des mots:
sip.conf
Code:
[general]
context=internal
rtcachefriends=yes
callevents=yes
realm=192.168.1.15
bindport=5060
srvlookup=yes
disallow=all
allow=ulaw
allow=gsm
language=en
trustrpid = yes
sendrpid = yes
register => 2000:Azerty95@192.168.1.15:5060
extconfig.conf
Code:
[sip]
sipusers = ldap,"dc=voip,dc=local",sip
sippeers = ldap,"dc=voip,dc=local",sip
res_ldap.conf
Code:
[_general]
;
; Specify one of either host and port OR url. URL is preferred, as you can
; use more options.
host=192.168.1.15 ; LDAP host
port=389
;url=ldap://192.168.1.14:389
protocol=3 ; Version of the LDAP protocol to use; default is 3.
basedn=dc=voip,dc=local ; Base DN
user=cn=Administrateur,dc=voip,dc=local ; Bind DN
pass=Alonso95 ; Bind password
; Configuration Table
[config]
;
; additionalFilter - This specifies an additional set of criteria to be used
; when querying the LDAP server.
;
additionalFilter=(objectClass=AstConfig)
;
; 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 = AstConfigFilename
category = AstConfigCategory
variable_name = AstConfigVariableName
variable_value = AstConfigVariableValue
cat_metric = AstConfigCategoryMetric
commented = AstConfigCommented
;
; Extensions Table
;
[extensions]
context = AstExtensionContext
exten = AstExtensionExten
priority = AstExtensionPriority
app = AstExtensionApplication
appdata = AstExtensionApplicationData
additionalFilter=(objectClass=AstExtension)
;
; Sip Users Table
;
[sip]
attribute = name => telephoneNumber
attribute = callerid => telephoneNumber
attribute = context => info
attribute = fullcontact => facsimileTelephoneNumber
attribute = host => ipPhone
attribute = mailbox => homePhone
attribute = md5secret => realmedPassword
attribute = nat => mobile
attribute = qualify => pager
un extrait de la CLI
Code:
new-host-2*CLI> realtime show ldap status
Connected to 'ldap://192.168.1.15:389', baseDN dc=voip,dc=local with username cn=Administrateur,dc=voip,dc=local for 8 minutes, 28 seconds.
Lorsque je m'identifie sur mon x-lite, dois-je rentrer l'@ip de mon serveur asterisk ou bien LDAP?
Merci
PS:@ ip asterisk : 192.168.1.14
@ ip LDAP: 192.168.1.15
client x-lite situé sur @ip 192.168.1.11