Freepbx 13 Openldap integration

Hello, I’m trying to integrate Asterisk & Freepbx with Openldap for the users authentication. I’ve loaded the asterisk schema in the /etc/ldap/schema directory and I’ve been editing the following configuration files:

res_ldap.conf
extconfig.conf
sip.conf
extensions.conf
modules.conf

I see the following message in the asterisk cli:

servuspruebas1*CLI> realtime show ldap status
Connected to ‘ldap://localhost:389’, baseDN dc=inf with username cn=admin,dc=inf for 1 hours, 37 minutes, 29 seconds.

But I can’t authenticate with the ldap users. That does not work

I asked in Asterisk forums and I was told I needed to do it through the GUI of Freepbx.

Is there any way to do this?

If somebody know this, It would be helpful to me. Sorry, my english is bad. Thanks!

There is no interface for this in the GUI. What are you trying to achieve.

I have an ubuntu server with Asterisk v13.6.0 & Freepbx 13 and also an openldap server. I want to authenticate users via LDAP. I have advanced a little. I have made some progress. I have made some modifications in the configuration files and I can show the users of ldap server in the asterisk cli, but I don’t register users in softphone clients. I have to load ldifs to store the extensions and users data in de ldap database. I wanted to know if I could do this with freepbx… There are not documentation for this version. I will continue trying… Thanks you very much for the reports! :smile:

servuspruebas1*CLI> sip show peer maria load

  • Name : maria
    Description :
    Realtime peer: Yes, cached
    Secret :
    MD5Secret :
    Remote Secret:
    Context : default
    Record On feature : automon
    Record Off feature : automon
    Subscr.Cont. :
    Language :
    Tonezone :
    AMA flags : Unknown
    Transfer mode: open
    CallingPres : Presentation Allowed, Not Screened
    Callgroup :
    Pickupgroup :
    Named Callgr :
    Nam. Pickupgr:
    MOH Suggest :
    Mailbox :
    VM Extension : *97
    LastMsgsSent : 0/0
    Call limit : 0
    Max forwards : 0
    Dynamic : Yes
    Callerid : “” <2002>
    MaxCallBR : 384 kbps
    Expire : -1
    Insecure : no
    Force rport : Yes
    Symmetric RTP: Yes
    ACL : No
    DirectMedACL : No
    T.38 support : No
    T.38 EC mode : Unknown
    T.38 MaxDtgrm: 4294967295
    DirectMedia : No
    PromiscRedir : No
    User=Phone : No
    Video Support: No
    Text Support : No
    Ign SDP ver : No
    Trust RPID : No
    Send RPID : No
    Path support : No
    Path : N/A
    TrustIDOutbnd: Legacy
    Subscriptions: Yes
    Overlap dial : Yes
    DTMFmode : rfc2833
    Timer T1 : 500
    Timer B : 32000
    ToHost :
    Addr->IP : (null)
    Defaddr->IP : (null)
    Prim.Transp. : UDP
    Allowed.Trsp : UDP
    Def. Username:
    SIP Options : (none)
    Codecs : (ulaw|alaw|gsm|g726)
    Auto-Framing : No
    Status : Unmonitored
    Useragent :
    Reg. Contact :
    Qualify Freq : 60000 ms
    Keepalive : 0 ms
    Sess-Timers : Accept
    Sess-Refresh : uas
    Sess-Expires : 1800 secs
    Min-Sess : 90 secs
    RTP Engine : asterisk
    Parkinglot :
    Use Reason : No
    Encryption : No

FreePBX does not support the LDAP Asterisk Module.